| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 using mojo::Array; | 29 using mojo::Array; |
| 30 using mojo::AxNode; | 30 using mojo::AxNode; |
| 31 using mojo::AxNodePtr; | 31 using mojo::AxNodePtr; |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 class TestWebFrameClient : public WebFrameClient { | 35 class TestWebFrameClient : public WebFrameClient { |
| 36 public: | 36 public: |
| 37 ~TestWebFrameClient() override {} | 37 ~TestWebFrameClient() override {} |
| 38 void didStopLoading() override { base::MessageLoop::current()->Quit(); } | 38 void didStopLoading() override { |
| 39 base::MessageLoop::current()->QuitWhenIdle(); |
| 40 } |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 class TestWebViewClient : public WebViewClient { | 43 class TestWebViewClient : public WebViewClient { |
| 42 public: | 44 public: |
| 43 bool allowsBrokenNullLayerTreeView() const override { return true; } | 45 bool allowsBrokenNullLayerTreeView() const override { return true; } |
| 44 virtual ~TestWebViewClient() {} | 46 virtual ~TestWebViewClient() {} |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 class AxProviderImplTest : public testing::Test { | 49 class AxProviderImplTest : public testing::Test { |
| 48 public: | 50 public: |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 "", | 185 "", |
| 184 "")); | 186 "")); |
| 185 } | 187 } |
| 186 } | 188 } |
| 187 | 189 |
| 188 // TODO(aa): Test bounds. | 190 // TODO(aa): Test bounds. |
| 189 // TODO(aa): Test sibling ordering of foo/bar/baz. | 191 // TODO(aa): Test sibling ordering of foo/bar/baz. |
| 190 | 192 |
| 191 view->close(); | 193 view->close(); |
| 192 } | 194 } |
| OLD | NEW |