Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Side by Side Diff: components/html_viewer/ax_provider_impl_unittest.cc

Issue 1402553002: Don't use base::MessageLoop::{Quit,QuitClosure} in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « components/history/core/test/history_backend_db_base_test.cc ('k') | components/nacl/broker/nacl_broker_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698