OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/html_viewer/ax_provider_impl.h" | 5 #include "components/html_viewer/ax_provider_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "components/html_viewer/blink_platform_impl.h" | 9 #include "components/html_viewer/blink_platform_impl.h" |
10 #include "components/scheduler/renderer/renderer_scheduler.h" | 10 #include "components/scheduler/renderer/renderer_scheduler.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual ~TestWebViewClient() {} | 44 virtual ~TestWebViewClient() {} |
45 }; | 45 }; |
46 | 46 |
47 class AxProviderImplTest : public testing::Test { | 47 class AxProviderImplTest : public testing::Test { |
48 public: | 48 public: |
49 AxProviderImplTest() | 49 AxProviderImplTest() |
50 : message_loop_(new base::MessageLoopForUI()), | 50 : message_loop_(new base::MessageLoopForUI()), |
51 renderer_scheduler_(scheduler::RendererScheduler::Create()) { | 51 renderer_scheduler_(scheduler::RendererScheduler::Create()) { |
52 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) | 52 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) |
53 gin::V8Initializer::LoadV8Snapshot(); | 53 gin::V8Initializer::LoadV8Snapshot(); |
| 54 gin::V8Initializer::LoadV8Natives(); |
54 #endif | 55 #endif |
55 blink::initialize( | 56 blink::initialize( |
56 new html_viewer::BlinkPlatformImpl(nullptr, renderer_scheduler_.get())); | 57 new html_viewer::BlinkPlatformImpl(nullptr, renderer_scheduler_.get())); |
57 } | 58 } |
58 | 59 |
59 ~AxProviderImplTest() override { | 60 ~AxProviderImplTest() override { |
60 renderer_scheduler_->Shutdown(); | 61 renderer_scheduler_->Shutdown(); |
61 message_loop_.reset(); | 62 message_loop_.reset(); |
62 blink::shutdown(); | 63 blink::shutdown(); |
63 } | 64 } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 "", | 189 "", |
189 "")); | 190 "")); |
190 } | 191 } |
191 } | 192 } |
192 | 193 |
193 // TODO(aa): Test bounds. | 194 // TODO(aa): Test bounds. |
194 // TODO(aa): Test sibling ordering of foo/bar/baz. | 195 // TODO(aa): Test sibling ordering of foo/bar/baz. |
195 | 196 |
196 view->close(); | 197 view->close(); |
197 } | 198 } |
OLD | NEW |