| 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) {
|
|
|