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

Unified Diff: content/browser/gamepad/gamepad_provider_unittest.cc

Issue 2082343002: Remove calls to deprecated MessageLoop methods in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Created 4 years, 6 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: content/browser/gamepad/gamepad_provider_unittest.cc
diff --git a/content/browser/gamepad/gamepad_provider_unittest.cc b/content/browser/gamepad/gamepad_provider_unittest.cc
index e9675d6d9f7f4dedb5d0b036ee66945f8e8d8d38..19ec02b48dd4d83e6d7f24f0ea42847b01793113 100644
--- a/content/browser/gamepad/gamepad_provider_unittest.cc
+++ b/content/browser/gamepad/gamepad_provider_unittest.cc
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "base/run_loop.h"
#include "build/build_config.h"
#include "content/browser/gamepad/gamepad_data_fetcher.h"
#include "content/browser/gamepad/gamepad_test_helpers.h"
@@ -89,7 +90,7 @@ TEST_F(GamepadProviderTest, MAYBE_PollingAccess) {
GamepadProvider* provider = CreateProvider(test_data);
provider->Resume();
- message_loop().RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
mock_data_fetcher_->WaitForDataRead();
@@ -145,7 +146,7 @@ TEST_F(GamepadProviderTest, UserGesture) {
mock_data_fetcher_->WaitForDataReadAndCallbacksIssued();
// It should not have issued our callback.
- message_loop().RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_FALSE(listener.has_user_gesture());
// Set a button down and wait for it to be read twice.
@@ -153,7 +154,7 @@ TEST_F(GamepadProviderTest, UserGesture) {
mock_data_fetcher_->WaitForDataReadAndCallbacksIssued();
// It should have issued our callback.
- message_loop().RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_TRUE(listener.has_user_gesture());
}

Powered by Google App Engine
This is Rietveld 408576698