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

Unified Diff: ui/aura/window_event_dispatcher_unittest.cc

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: Fix nesting observer issues with LazySchedulerMessageLoopDelegateForTests Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/window_event_dispatcher_unittest.cc
diff --git a/ui/aura/window_event_dispatcher_unittest.cc b/ui/aura/window_event_dispatcher_unittest.cc
index b13935272fd4e1a5af37c23f3b60980292fb508e..b1001a8c1e25c1888f5fefaba1c2443b168034cc 100644
--- a/ui/aura/window_event_dispatcher_unittest.cc
+++ b/ui/aura/window_event_dispatcher_unittest.cc
@@ -2084,7 +2084,7 @@ class WindowEventDispatcherTestWithMessageLoop
};
TEST_P(WindowEventDispatcherTestWithMessageLoop, EventRepostedInNonNestedLoop) {
- CHECK(!message_loop()->is_running());
+ ASSERT_FALSE(base::RunLoop::IsRunningOnCurrentThread());
// Perform the test in a callback, so that it runs after the message-loop
// starts.
message_loop()->task_runner()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698