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

Unified Diff: chromeos/dbus/gsm_sms_client_unittest.cc

Issue 2314853004: Remove calls to deprecated MessageLoop methods in chromeos. (Closed)
Patch Set: Created 4 years, 3 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: chromeos/dbus/gsm_sms_client_unittest.cc
diff --git a/chromeos/dbus/gsm_sms_client_unittest.cc b/chromeos/dbus/gsm_sms_client_unittest.cc
index 0f8baecb9a68a8d435924b1f3af03827e31d017d..80c9a41e290457b704502d8590076c701bfd821a 100644
--- a/chromeos/dbus/gsm_sms_client_unittest.cc
+++ b/chromeos/dbus/gsm_sms_client_unittest.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/values.h"
#include "dbus/message.h"
@@ -207,7 +208,7 @@ TEST_F(GsmSMSClientTest, SmsReceived) {
base::Unretained(&handler)));
// Run the message loop to run the signal connection result callback.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Send signal.
dbus::Signal signal(modemmanager::kModemManagerSMSInterface,
@@ -240,7 +241,7 @@ TEST_F(GsmSMSClientTest, Delete) {
base::Unretained(&callback)));
// Run the message loop.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
TEST_F(GsmSMSClientTest, Get) {
@@ -280,7 +281,7 @@ TEST_F(GsmSMSClientTest, Get) {
base::Bind(&MockGetCallback::Run, base::Unretained(&callback)));
// Run the message loop.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
TEST_F(GsmSMSClientTest, List) {
@@ -323,7 +324,7 @@ TEST_F(GsmSMSClientTest, List) {
base::Unretained(&callback)));
// Run the message loop.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698