| OLD | NEW |
| 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 "content/test/fuzzer/fuzzer_support.h" | 5 #include "content/test/fuzzer/fuzzer_support.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/feature_list.h" | 9 #include "base/feature_list.h" |
| 10 #include "base/i18n/icu_util.h" | 10 #include "base/i18n/icu_util.h" |
| 11 #include "content/common/navigation_params.h" | 11 #include "content/common/navigation_params.h" |
| 12 #include "content/renderer/render_view_impl.h" | 12 #include "content/renderer/render_view_impl.h" |
| 13 #include "content/test/test_render_frame.h" | 13 #include "content/test/test_render_frame.h" |
| 14 #include "gin/v8_initializer.h" | 14 #include "gin/v8_initializer.h" |
| 15 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" |
| 15 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 16 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 16 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 void RenderViewTestAdapter::SetUp() { | 20 void RenderViewTestAdapter::SetUp() { |
| 21 RenderViewTest::SetUp(); | 21 RenderViewTest::SetUp(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 Env::Env() { | 24 Env::Env() { |
| 25 base::CommandLine::Init(0, nullptr); | 25 base::CommandLine::Init(0, nullptr); |
| 26 base::FeatureList::InitializeInstance(std::string(), std::string()); | 26 base::FeatureList::InitializeInstance(std::string(), std::string()); |
| 27 base::i18n::InitializeICU(); | 27 base::i18n::InitializeICU(); |
| 28 | 28 |
| 29 blink::WebRuntimeFeatures::EnableExperimentalFeatures(true); | 29 blink::WebRuntimeFeatures::EnableExperimentalFeatures(true); |
| 30 blink::WebRuntimeFeatures::EnableTestOnlyFeatures(true); | 30 blink::WebRuntimeFeatures::EnableTestOnlyFeatures(true); |
| 31 | 31 |
| 32 gin::V8Initializer::LoadV8Snapshot(); | 32 gin::V8Initializer::LoadV8Snapshot(); |
| 33 gin::V8Initializer::LoadV8Natives(); | 33 gin::V8Initializer::LoadV8Natives(); |
| 34 gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode, | 34 gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode, |
| 35 gin::IsolateHolder::kStableV8Extras, | 35 gin::IsolateHolder::kStableV8Extras, |
| 36 gin::ArrayBufferAllocator::SharedInstance()); | 36 gin::ArrayBufferAllocator::SharedInstance()); |
| 37 | 37 |
| 38 adapter.reset(new RenderViewTestAdapter()); | 38 adapter.reset(new RenderViewTestAdapter()); |
| 39 adapter->SetUp(); | 39 adapter->SetUp(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 Env::~Env() { | 42 Env::~Env() { |
| 43 LOG(FATAL) << "NOT SUPPORTED"; | 43 LOG(FATAL) << "NOT SUPPORTED"; |
| 44 } | 44 } |
| 45 } // namespace content | 45 } // namespace content |
| OLD | NEW |