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

Unified Diff: remoting/client/client_status_logger_unittest.cc

Issue 2082363002: Remove calls to deprecated MessageLoop methods in remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing include 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
« no previous file with comments | « remoting/base/auto_thread_unittest.cc ('k') | remoting/host/daemon_process_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/client_status_logger_unittest.cc
diff --git a/remoting/client/client_status_logger_unittest.cc b/remoting/client/client_status_logger_unittest.cc
index 145a0175b3e295a15997f382dfa0564d93c16484..e7348a64d3610d4aa4278e3b384a46807e2bad48 100644
--- a/remoting/client/client_status_logger_unittest.cc
+++ b/remoting/client/client_status_logger_unittest.cc
@@ -5,6 +5,7 @@
#include "remoting/client/client_status_logger.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "remoting/protocol/performance_tracker.h"
#include "remoting/signaling/mock_signal_strategy.h"
#include "remoting/signaling/server_log_entry_unittest.h"
@@ -101,7 +102,7 @@ TEST_F(ClientStatusLoggerTest, LogStateChange) {
// which removes the listener and terminates the test.
client_status_logger_->SetSignalingStateForTest(SignalStrategy::CONNECTED);
client_status_logger_->SetSignalingStateForTest(SignalStrategy::DISCONNECTED);
- message_loop_.Run();
+ base::RunLoop().Run();
}
TEST_F(ClientStatusLoggerTest, LogStateChangeError) {
@@ -123,7 +124,7 @@ TEST_F(ClientStatusLoggerTest, LogStateChangeError) {
client_status_logger_->SetSignalingStateForTest(SignalStrategy::CONNECTED);
client_status_logger_->SetSignalingStateForTest(SignalStrategy::DISCONNECTED);
- message_loop_.Run();
+ base::RunLoop().Run();
}
TEST_F(ClientStatusLoggerTest, LogStatistics) {
@@ -146,7 +147,7 @@ TEST_F(ClientStatusLoggerTest, LogStatistics) {
client_status_logger_->SetSignalingStateForTest(SignalStrategy::CONNECTED);
client_status_logger_->SetSignalingStateForTest(SignalStrategy::DISCONNECTED);
- message_loop_.Run();
+ base::RunLoop().Run();
}
} // namespace remoting
« no previous file with comments | « remoting/base/auto_thread_unittest.cc ('k') | remoting/host/daemon_process_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698