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

Unified Diff: chrome/test/base/view_event_test_base.cc

Issue 8585015: Implement ui_controls for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no mask for xsendevent Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/view_event_test_base.cc
diff --git a/chrome/test/base/view_event_test_base.cc b/chrome/test/base/view_event_test_base.cc
index af68770f8d4d710d7b1f182b6a0cb181db5346aa..a7ffd00e037aba40753251e178612135a8bf95ae 100644
--- a/chrome/test/base/view_event_test_base.cc
+++ b/chrome/test/base/view_event_test_base.cc
@@ -88,8 +88,7 @@ void ViewEventTestBase::TearDown() {
DestroyWindow(window_->GetNativeWindow());
#else
window_->Close();
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
- ui_test_utils::RunMessageLoop();
+ ui_test_utils::RunAllPendingInMessageLoop();
#endif
window_ = NULL;
}
@@ -134,7 +133,7 @@ void ViewEventTestBase::StartMessageLoopAndRunTest() {
#endif
// Flush any pending events to make sure we start with a clean slate.
- MessageLoop::current()->RunAllPending();
+ ui_test_utils::RunAllPendingInMessageLoop();
// Schedule a task that starts the test. Need to do this as we're going to
// run the message loop.
@@ -142,7 +141,7 @@ void ViewEventTestBase::StartMessageLoopAndRunTest() {
FROM_HERE,
base::Bind(&ViewEventTestBase::DoTestOnMessageLoop, this));
- MessageLoop::current()->Run();
+ ui_test_utils::RunMessageLoop();
}
gfx::Size ViewEventTestBase::GetPreferredSize() {
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698