diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 12:37:57 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 12:37:57 +0000 |
commit | b8f50cec7ae39a4776b0b424fe5489f84192010a (patch) | |
tree | e0ae2436ffb6bbbd124085fb6ac542f38d6651c4 /chrome/browser/net/predictor_unittest.cc | |
parent | 63b054d3f3947d1e396821afb348ea0437fd0ec3 (diff) | |
download | chromium_src-b8f50cec7ae39a4776b0b424fe5489f84192010a.zip chromium_src-b8f50cec7ae39a4776b0b424fe5489f84192010a.tar.gz chromium_src-b8f50cec7ae39a4776b0b424fe5489f84192010a.tar.bz2 |
chrome/browser: Update calls from RunAllPending() to RunUntilIdle().
RunAllPending() is deprecated and we should switch to RunUntilIdle().
BUG=131220
TBR=ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11413050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/predictor_unittest.cc')
-rw-r--r-- | chrome/browser/net/predictor_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/net/predictor_unittest.cc b/chrome/browser/net/predictor_unittest.cc index c379c17..93d3554 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(), |