| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "platform/testing/BlinkFuzzerTestSupport.h" |
| 6 |
| 7 #include "base/at_exit.h" |
| 8 #include "base/command_line.h" |
| 9 #include "mojo/edk/embedder/embedder.h" |
| 10 #include "platform/weborigin/SchemeRegistry.h" |
| 11 #include <content/test/blink_test_environment.h> |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 void InitializeBlinkFuzzTest(int* argc, char ***argv) |
| 16 { |
| 17 // 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 |
| 19 // environment as the previous iteration. |
| 20 base::AtExitManager atExit; |
| 21 |
| 22 mojo::edk::Init(); |
| 23 base::CommandLine::Init(*argc, *argv); |
| 24 |
| 25 content::SetUpBlinkTestEnvironment(); |
| 26 |
| 27 blink::SchemeRegistry::initialize(); |
| 28 } |
| 29 |
| 30 } // namespace blink |
| OLD | NEW |