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

Unified Diff: third_party/WebKit/Source/platform/testing/BlinkFuzzerTestSupport.cpp

Issue 2900373002: Remove LLVMFuzzerInitialize from many Blink fuzzers (Closed)
Patch Set: Created 3 years, 7 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/testing/BlinkFuzzerTestSupport.h ('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/testing/BlinkFuzzerTestSupport.cpp
diff --git a/third_party/WebKit/Source/platform/testing/BlinkFuzzerTestSupport.cpp b/third_party/WebKit/Source/platform/testing/BlinkFuzzerTestSupport.cpp
index 23d25823f341e2151bcfb6a859369593deaf1078..5900be4d58f6bdb257f2f73486deb496174ab01a 100644
--- a/third_party/WebKit/Source/platform/testing/BlinkFuzzerTestSupport.cpp
+++ b/third_party/WebKit/Source/platform/testing/BlinkFuzzerTestSupport.cpp
@@ -12,7 +12,10 @@
namespace blink {
-void InitializeBlinkFuzzTest(int* argc, char*** argv) {
+BlinkFuzzerTestSupport::BlinkFuzzerTestSupport()
+ : BlinkFuzzerTestSupport(0, nullptr) {}
+
+BlinkFuzzerTestSupport::BlinkFuzzerTestSupport(int argc, char** argv) {
// Note: we don't tear anything down here after an iteration of the fuzzer
// is complete, this is for efficiency. We rerun the fuzzer with the same
// environment as the previous iteration.
@@ -20,11 +23,13 @@ void InitializeBlinkFuzzTest(int* argc, char*** argv) {
CHECK(base::i18n::InitializeICU());
- base::CommandLine::Init(*argc, *argv);
+ base::CommandLine::Init(argc, argv);
content::SetUpBlinkTestEnvironment();
blink::SchemeRegistry::Initialize();
}
+BlinkFuzzerTestSupport::~BlinkFuzzerTestSupport() = default;
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/testing/BlinkFuzzerTestSupport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698