Chromium Code Reviews| Index: components/webcrypto/fuzzer_support.cc |
| diff --git a/components/webcrypto/fuzzer_support.cc b/components/webcrypto/fuzzer_support.cc |
| index 6b1d49596cf11225a9554288e3d1070af348a040..a025fe53bfd10a9a99d3db2f5df44e416153dbad 100644 |
| --- a/components/webcrypto/fuzzer_support.cc |
| +++ b/components/webcrypto/fuzzer_support.cc |
| @@ -7,25 +7,27 @@ |
| #include "base/command_line.h" |
| #include "base/lazy_instance.h" |
| #include "base/numerics/safe_conversions.h" |
| -#include "components/test_runner/test_common.h" |
| #include "components/webcrypto/algorithm_dispatch.h" |
| #include "components/webcrypto/crypto_data.h" |
| #include "components/webcrypto/status.h" |
| +#include "third_party/WebKit/public/platform/Platform.h" |
| #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
| +#include "third_party/WebKit/public/web/WebKit.h" |
| namespace webcrypto { |
| namespace { |
| // This mock is used to initialize blink. |
| -class InitOnce { |
| +class InitOnce : NON_EXPORTED_BASE(public blink::Platform) { |
| public: |
| InitOnce() { |
| // EnsureBlinkInitialized() depends on the command line singleton being |
|
eroman
2016/08/11 17:55:36
Please update or remove this comment (now refers t
jam
2016/08/11 19:12:29
Done.
|
| // initialized. |
| base::CommandLine::Init(0, nullptr); |
| - test_runner::EnsureBlinkInitialized(); |
| + blink::Platform::initialize(this); |
| } |
| + ~InitOnce() override {} |
| }; |
| base::LazyInstance<InitOnce>::Leaky g_once = LAZY_INSTANCE_INITIALIZER; |