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

Unified Diff: components/exo/gamepad_unittest.cc

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)
Patch Set: Undid a change on an if condition in exo::Surface::CommitSurfaceHierarchy() Created 4 years 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: components/exo/gamepad_unittest.cc
diff --git a/components/exo/gamepad_unittest.cc b/components/exo/gamepad_unittest.cc
index 34a7e165bd818587e15d054ae9ff1a129252887f..7d17bfd34dd877bcaf64b76fa3987a6d0e1f5fa1 100644
--- a/components/exo/gamepad_unittest.cc
+++ b/components/exo/gamepad_unittest.cc
@@ -62,6 +62,7 @@ class GamepadTest : public test::ExoTestBase {
// Process tasks until polling is shut down.
polling_task_runner_->RunPendingTasks();
polling_task_runner_ = nullptr;
+ base::RunLoop().RunUntilIdle();
}
void SetDataAndPostToDelegate(const blink::WebGamepads& new_data) {
@@ -70,6 +71,7 @@ class GamepadTest : public test::ExoTestBase {
// Run one polling cycle, which will post a task to the origin task runner.
polling_task_runner_->RunPendingTasks();
// Run origin task runner to invoke delegate.
+
base::RunLoop().RunUntilIdle();
}
@@ -116,6 +118,7 @@ TEST_F(GamepadTest, OnStateChange) {
SetDataAndPostToDelegate(all_disconnected);
DestroyGamepad(&delegate);
+ RunAllPendingInMessageLoop();
}
TEST_F(GamepadTest, OnAxis) {

Powered by Google App Engine
This is Rietveld 408576698