Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp

Issue 2465213002: TextResourceDecoderFuzzer should use blink::InitializeBlinkFuzzTest (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698