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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc

Issue 11413050: chrome/browser: Update calls from RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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: chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc b/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
index b653873aff3dd4885baf81113240a8966bb7fa7a..2c84b4f563e1f6f5cd831a414cb1a578addd2076 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
@@ -43,7 +43,7 @@ class RulesRegistryServiceTest : public testing::Test {
virtual void TearDown() OVERRIDE {
// Make sure that deletion traits of all registries are executed.
- message_loop.RunAllPending();
+ message_loop.RunUntilIdle();
}
protected:
@@ -89,7 +89,7 @@ TEST_F(RulesRegistryServiceTest, TestConstructionAndMultiThreading) {
base::Bind(&VerifyNumberOfRules,
registry_service.GetRulesRegistry("io"), 1));
- message_loop.RunAllPending();
+ message_loop.RunUntilIdle();
// Test extension unloading.
@@ -105,7 +105,7 @@ TEST_F(RulesRegistryServiceTest, TestConstructionAndMultiThreading) {
base::Bind(&VerifyNumberOfRules,
registry_service.GetRulesRegistry("io"), 0));
- message_loop.RunAllPending();
+ message_loop.RunUntilIdle();
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698