| 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 "mojo/services/html_viewer/ax_provider_impl.h" | 5 #include "mojo/services/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 "gin/public/isolate_holder.h" | 9 #include "gin/public/isolate_holder.h" |
| 10 #include "mojo/services/html_viewer/blink_platform_impl.h" | 10 #include "mojo/services/html_viewer/blink_platform_impl.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 class AxProviderImplTest : public testing::Test { | 46 class AxProviderImplTest : public testing::Test { |
| 47 public: | 47 public: |
| 48 AxProviderImplTest() { | 48 AxProviderImplTest() { |
| 49 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) | 49 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) |
| 50 gin::IsolateHolder::LoadV8Snapshot(); | 50 gin::IsolateHolder::LoadV8Snapshot(); |
| 51 #endif | 51 #endif |
| 52 blink::initialize(new html_viewer::BlinkPlatformImpl()); | 52 blink::initialize(new html_viewer::BlinkPlatformImpl()); |
| 53 } | 53 } |
| 54 | 54 |
| 55 virtual ~AxProviderImplTest() override { blink::shutdown(); } | 55 ~AxProviderImplTest() override { blink::shutdown(); } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 base::MessageLoopForUI message_loop; | 58 base::MessageLoopForUI message_loop; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 struct NodeCatcher { | 61 struct NodeCatcher { |
| 62 void OnNodes(Array<AxNodePtr> nodes) { this->nodes = nodes.Pass(); } | 62 void OnNodes(Array<AxNodePtr> nodes) { this->nodes = nodes.Pass(); } |
| 63 Array<AxNodePtr> nodes; | 63 Array<AxNodePtr> nodes; |
| 64 }; | 64 }; |
| 65 | 65 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 "", | 169 "", |
| 170 "")); | 170 "")); |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 | 173 |
| 174 // TODO(aa): Test bounds. | 174 // TODO(aa): Test bounds. |
| 175 // TODO(aa): Test sibling ordering of foo/bar/baz. | 175 // TODO(aa): Test sibling ordering of foo/bar/baz. |
| 176 | 176 |
| 177 view->close(); | 177 view->close(); |
| 178 } | 178 } |
| OLD | NEW |