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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 bool allowsBrokenNullLayerTreeView() const override { return true; } | 43 bool allowsBrokenNullLayerTreeView() const override { return true; } |
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 : renderer_scheduler_(scheduler::RendererScheduler::Create()) { | 50 : renderer_scheduler_(scheduler::RendererScheduler::Create()) { |
51 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) | 51 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) |
52 gin::V8Initializer::LoadV8Snapshot(); | 52 gin::V8Initializer::LoadV8Snapshot(); |
| 53 gin::V8Initializer::LoadV8Natives(); |
53 #endif | 54 #endif |
54 blink::initialize( | 55 blink::initialize( |
55 new html_viewer::BlinkPlatformImpl(nullptr, renderer_scheduler_.get())); | 56 new html_viewer::BlinkPlatformImpl(nullptr, renderer_scheduler_.get())); |
56 } | 57 } |
57 | 58 |
58 ~AxProviderImplTest() override { blink::shutdown(); } | 59 ~AxProviderImplTest() override { blink::shutdown(); } |
59 | 60 |
60 private: | 61 private: |
61 base::MessageLoopForUI message_loop; | 62 base::MessageLoopForUI message_loop; |
62 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_; | 63 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 "", | 184 "", |
184 "")); | 185 "")); |
185 } | 186 } |
186 } | 187 } |
187 | 188 |
188 // TODO(aa): Test bounds. | 189 // TODO(aa): Test bounds. |
189 // TODO(aa): Test sibling ordering of foo/bar/baz. | 190 // TODO(aa): Test sibling ordering of foo/bar/baz. |
190 | 191 |
191 view->close(); | 192 view->close(); |
192 } | 193 } |
OLD | NEW |