Index: chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc |
diff --git a/chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc b/chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc |
index e28787453e76acdabafa1e6e9e6f95505b9504a9..b905a56925a2df38bfb1171e37262f7100ee4862 100644 |
--- a/chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc |
+++ b/chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc |
@@ -49,7 +49,7 @@ class BrowsingDataQuotaHelperTest : public testing::Test { |
helper_ = NULL; |
quota_manager_ = NULL; |
quota_info_.clear(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
} |
protected: |
@@ -132,7 +132,7 @@ class BrowsingDataQuotaHelperTest : public testing::Test { |
TEST_F(BrowsingDataQuotaHelperTest, Empty) { |
StartFetching(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_TRUE(fetching_completed()); |
EXPECT_TRUE(quota_info().empty()); |
} |
@@ -147,7 +147,7 @@ TEST_F(BrowsingDataQuotaHelperTest, FetchData) { |
RegisterClient(kOrigins, arraysize(kOrigins)); |
StartFetching(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_TRUE(fetching_completed()); |
std::set<QuotaInfo> expected, actual; |
@@ -175,7 +175,7 @@ TEST_F(BrowsingDataQuotaHelperTest, IgnoreExtensionsAndDevTools) { |
RegisterClient(kOrigins, arraysize(kOrigins)); |
StartFetching(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_TRUE(fetching_completed()); |
std::set<QuotaInfo> expected, actual; |
@@ -191,16 +191,16 @@ TEST_F(BrowsingDataQuotaHelperTest, RevokeHostQuota) { |
SetPersistentHostQuota(kHost1, 1); |
SetPersistentHostQuota(kHost2, 10); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
RevokeHostQuota(kHost1); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
GetPersistentHostQuota(kHost1); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_EQ(0, quota()); |
GetPersistentHostQuota(kHost2); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_EQ(10, quota()); |
} |