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

Unified Diff: chrome/browser/policy/policy_loader_mac_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/policy/policy_loader_mac_unittest.cc
diff --git a/chrome/browser/policy/policy_loader_mac_unittest.cc b/chrome/browser/policy/policy_loader_mac_unittest.cc
index 4e454b0c357a0cb86a3b3817606268f22527e401..d5cfde35437a2a4d419b5f467adfb29aca38a872 100644
--- a/chrome/browser/policy/policy_loader_mac_unittest.cc
+++ b/chrome/browser/policy/policy_loader_mac_unittest.cc
@@ -261,7 +261,7 @@ TEST_F(PolicyLoaderMacTest, Invalid) {
// Make the provider read the updated |prefs_|.
provider_.RefreshPolicies();
- loop_.RunAllPending();
+ loop_.RunUntilIdle();
const PolicyBundle kEmptyBundle;
EXPECT_TRUE(provider_.policies().Equals(kEmptyBundle));
}
@@ -276,7 +276,7 @@ TEST_F(PolicyLoaderMacTest, TestNonForcedValue) {
// Make the provider read the updated |prefs_|.
provider_.RefreshPolicies();
- loop_.RunAllPending();
+ loop_.RunUntilIdle();
PolicyBundle expected_bundle;
expected_bundle.Get(POLICY_DOMAIN_CHROME, "")
.Set(test_policy_definitions::kKeyString, POLICY_LEVEL_RECOMMENDED,
« no previous file with comments | « chrome/browser/policy/logging_work_scheduler_unittest.cc ('k') | chrome/browser/policy/policy_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698