Index: chrome/browser/net/predictor_unittest.cc |
diff --git a/chrome/browser/net/predictor_unittest.cc b/chrome/browser/net/predictor_unittest.cc |
index c379c17c61b9b9c7f0880bc0dca2d2867ba8129e..93d3554b90d535ba4650056db620f89ac235c61c 100644 |
--- a/chrome/browser/net/predictor_unittest.cc |
+++ b/chrome/browser/net/predictor_unittest.cc |
@@ -138,7 +138,7 @@ TEST_F(PredictorTest, ShutdownWhenResolutionIsPendingTest) { |
testing_master.Shutdown(); |
// Clean up after ourselves. |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
} |
TEST_F(PredictorTest, SingleLookupTest) { |
@@ -158,7 +158,7 @@ TEST_F(PredictorTest, SingleLookupTest) { |
EXPECT_TRUE(testing_master.WasFound(goog)); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_GT(testing_master.peak_pending_lookups(), names.size() / 2); |
EXPECT_LE(testing_master.peak_pending_lookups(), names.size()); |
@@ -203,7 +203,7 @@ TEST_F(PredictorTest, ConcurrentLookupTest) { |
EXPECT_FALSE(testing_master.WasFound(bad1)); |
EXPECT_FALSE(testing_master.WasFound(bad2)); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_FALSE(testing_master.WasFound(bad1)); |
EXPECT_FALSE(testing_master.WasFound(bad2)); |
@@ -232,7 +232,7 @@ TEST_F(PredictorTest, MassiveConcurrentLookupTest) { |
WaitForResolution(&testing_master, names); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_LE(testing_master.peak_pending_lookups(), names.size()); |
EXPECT_LE(testing_master.peak_pending_lookups(), |