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

Side by Side Diff: third_party/WebKit/Source/platform/testing/BlinkFuzzerTestSupport.cpp

Issue 2453933003: Centralize mojo edk initialization path for some unit tests. (Closed)
Patch Set: Revert change of third_party/WebKit/Source/platform/testing/DEPS 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/testing/BlinkFuzzerTestSupport.h" 5 #include "platform/testing/BlinkFuzzerTestSupport.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/i18n/icu_util.h" 9 #include "base/i18n/icu_util.h"
10 #include "mojo/edk/embedder/embedder.h"
11 #include "platform/weborigin/SchemeRegistry.h" 10 #include "platform/weborigin/SchemeRegistry.h"
12 #include <content/test/blink_test_environment.h> 11 #include <content/test/blink_test_environment.h>
13 12
14 namespace blink { 13 namespace blink {
15 14
16 void InitializeBlinkFuzzTest(int* argc, char*** argv) { 15 void InitializeBlinkFuzzTest(int* argc, char*** argv) {
17 // Note: we don't tear anything down here after an iteration of the fuzzer 16 // Note: we don't tear anything down here after an iteration of the fuzzer
18 // is complete, this is for efficiency. We rerun the fuzzer with the same 17 // is complete, this is for efficiency. We rerun the fuzzer with the same
19 // environment as the previous iteration. 18 // environment as the previous iteration.
20 base::AtExitManager atExit; 19 base::AtExitManager atExit;
21 20
22 CHECK(base::i18n::InitializeICU()); 21 CHECK(base::i18n::InitializeICU());
23 22
24 mojo::edk::Init();
25 base::CommandLine::Init(*argc, *argv); 23 base::CommandLine::Init(*argc, *argv);
26 24
27 content::SetUpBlinkTestEnvironment(); 25 content::SetUpBlinkTestEnvironment();
28 26
29 blink::SchemeRegistry::initialize(); 27 blink::SchemeRegistry::initialize();
30 } 28 }
31 29
32 } // namespace blink 30 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698