| Index: third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp b/third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp
|
| index e631cea35356d7aa1b9e27f01c6d1533efbd71c5..ed227cb408f171a1078148f94c6e0e8bd2823df7 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp
|
| @@ -4,8 +4,8 @@
|
|
|
| #include "core/html/parser/TextResourceDecoderForFuzzing.h"
|
|
|
| +#include "platform/testing/BlinkFuzzerTestSupport.h"
|
| #include "platform/testing/FuzzedDataProvider.h"
|
| -#include "platform/testing/TestingPlatformSupport.h"
|
| #include <algorithm>
|
|
|
| namespace blink {
|
| @@ -26,11 +26,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
| }
|
|
|
| extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
|
| - // Intentional leak - no need to do cleanup as explained in
|
| - // "Initialization/Cleanup" section of testing/libfuzzer/efficient_fuzzer.md
|
| - DEFINE_STATIC_LOCAL(blink::ScopedUnittestsEnvironmentSetup, testSetup,
|
| - (*argc, *argv));
|
| - ALLOW_UNUSED_LOCAL(testSetup);
|
| -
|
| + blink::InitializeBlinkFuzzTest(argc, argv);
|
| return 0;
|
| }
|
|
|