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

Unified Diff: third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp

Issue 2645043003: Use InitializeBlinkFuzzTest instead of ScopedUnittestsEnvironmentSetup. (Closed)
Patch Set: Created 3 years, 11 months 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/platform/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/platform/mhtml/MHTMLFuzzer.cpp
diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp b/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp
index 6557948241129daba0f80e4b4aeba94c298f96d8..a9c134adcc242307418423da9ddb53bcbee9f677 100644
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp
@@ -6,10 +6,7 @@
#include "platform/heap/Handle.h"
#include "platform/mhtml/ArchiveResource.h"
#include "platform/mhtml/MHTMLParser.h"
-#include "platform/testing/TestingPlatformSupport.h"
-#include "wtf/Assertions.h"
-#include "wtf/Compiler.h"
-#include <memory>
+#include "platform/testing/BlinkFuzzerTestSupport.h"
#include <stddef.h>
#include <stdint.h>
@@ -33,11 +30,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/platform/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698