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

Unified Diff: chromeos/network/host_resolver_impl_chromeos_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/host_resolver_impl_chromeos_unittest.cc
diff --git a/chromeos/network/host_resolver_impl_chromeos_unittest.cc b/chromeos/network/host_resolver_impl_chromeos_unittest.cc
index 3b02ac154f85d61c836c6dfdf6abaf32db90d993..176d12274f3b96ea0ac924d2ef21394746d78059 100644
--- a/chromeos/network/host_resolver_impl_chromeos_unittest.cc
+++ b/chromeos/network/host_resolver_impl_chromeos_unittest.cc
@@ -61,14 +61,10 @@ class HostResolverImplChromeOSTest : public testing::Test {
SetDefaultIPConfigs(default_device->path());
// Create the host resolver from the IO message loop.
- io_message_loop_.PostTask(
+ io_message_loop_.task_runner()->PostTask(
FROM_HERE,
base::Bind(&HostResolverImplChromeOSTest::InitializeHostResolver,
base::Unretained(this)));
- io_message_loop_.RunUntilIdle();
-
- // Run the main message loop to create the network observer and initialize
- // the ip address values.
base::RunLoop().RunUntilIdle();
}
@@ -83,7 +79,7 @@ class HostResolverImplChromeOSTest : public testing::Test {
io_message_loop_.task_runner()->PostTask(
FROM_HERE, base::Bind(&HostResolverImplChromeOSTest::Resolve,
base::Unretained(this), info));
- io_message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
return result_;
}

Powered by Google App Engine
This is Rietveld 408576698