CSP http_parser => Add tests.
Follow up for: https://chromium-review.googlesource.com/c/chromium/src/+/2134246 The CSP parser implemented by: services/network/public/content_security_policy/ is already tested and fuzzed. Blink reuses it for parsing responses built from a service worker. This patch tests it. The parser is already tested, so we just need to check the conversion from/to blink types is not missing any attributes. Of course, this doesn't prevent future attributes from being missed. An attempt to have something 'future-proof' has been made here: https://chromium-review.googlesource.com/c/chromium/src/+/2126933 but it has been withdrawned. Bug: 1063832 Change-Id: Id4da82e0dc34ce3b7062a74668c8a5c8215893bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139718Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#757781}
Showing
Please register or sign in to comment