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

Unified Diff: chromeos/network/prohibited_technologies_handler_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/network/prohibited_technologies_handler_unittest.cc
diff --git a/chromeos/network/prohibited_technologies_handler_unittest.cc b/chromeos/network/prohibited_technologies_handler_unittest.cc
index 24ab2f1f15188371a6526c0ad8584b648a3e6518..04292c69dad3809455f2ebc5de6b76e9e10e3662 100644
--- a/chromeos/network/prohibited_technologies_handler_unittest.cc
+++ b/chromeos/network/prohibited_technologies_handler_unittest.cc
@@ -144,7 +144,7 @@ TEST_F(ProhibitedTechnologiesHandlerTest,
network_state_handler_->IsTechnologyEnabled(NetworkTypePattern::WiFi()));
EXPECT_TRUE(network_state_handler_->IsTechnologyEnabled(
NetworkTypePattern::Cellular()));
-};
+}
TEST_F(ProhibitedTechnologiesHandlerTest,
ProhibitedTechnologiesNotAllowedUserSession) {
@@ -173,7 +173,7 @@ TEST_F(ProhibitedTechnologiesHandlerTest,
NetworkTypePattern::WiFi(), true, network_handler::ErrorCallback());
network_state_handler_->SetTechnologyEnabled(
NetworkTypePattern::Cellular(), true, network_handler::ErrorCallback());
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_FALSE(
network_state_handler_->IsTechnologyEnabled(NetworkTypePattern::WiFi()));
EXPECT_FALSE(network_state_handler_->IsTechnologyEnabled(
@@ -185,11 +185,11 @@ TEST_F(ProhibitedTechnologiesHandlerTest,
NetworkTypePattern::WiFi(), true, network_handler::ErrorCallback());
network_state_handler_->SetTechnologyEnabled(
NetworkTypePattern::Cellular(), true, network_handler::ErrorCallback());
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_FALSE(
network_state_handler_->IsTechnologyEnabled(NetworkTypePattern::WiFi()));
EXPECT_TRUE(network_state_handler_->IsTechnologyEnabled(
NetworkTypePattern::Cellular()));
-};
+}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698