Index: third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp |
diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp |
index 58d3b118b974651147e0ef212096a32aec398144..a53f973c8a505f12674a60f2d31bf454b27ef23a 100644 |
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp |
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp |
@@ -14,14 +14,12 @@ |
#include "platform/wtf/text/WTFString.h" |
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
+ static blink::BlinkFuzzerTestSupport test_support = |
+ blink::BlinkFuzzerTestSupport(); |
WTF::Vector<WTF::String> messages; |
+ // TODO(csharrison): Be smarter about parsing this origin for performance. |
RefPtr<blink::SecurityOrigin> origin = |
blink::SecurityOrigin::CreateFromString("https://example.com/"); |
blink::ParseFeaturePolicy(WTF::String(data, size), origin.Get(), &messages); |
return 0; |
} |
- |
-extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) { |
- blink::InitializeBlinkFuzzTest(argc, argv); |
- return 0; |
-} |