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

Unified Diff: chrome/browser/policy/cros_user_policy_cache_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/cros_user_policy_cache_unittest.cc
diff --git a/chrome/browser/policy/cros_user_policy_cache_unittest.cc b/chrome/browser/policy/cros_user_policy_cache_unittest.cc
index 316955ce4e9add3fb45af2c0dd254d2c7b3eb0d7..88ad5765d8128b7217d50683d36c2c449f9ddc39 100644
--- a/chrome/browser/policy/cros_user_policy_cache_unittest.cc
+++ b/chrome/browser/policy/cros_user_policy_cache_unittest.cc
@@ -119,7 +119,7 @@ TEST_F(CrosUserPolicyCacheTest, InitAndSetPolicy) {
.WillOnce(InvokeCallbackArgument<0>(std::string()));
cache.Load();
- loop_.RunAllPending();
+ loop_.RunUntilIdle();
EXPECT_TRUE(cache.IsReady());
EXPECT_TRUE(data_store_->token_cache_loaded());
@@ -139,7 +139,7 @@ TEST_F(CrosUserPolicyCacheTest, InitAndSetPolicy) {
.WillOnce(InvokeCallbackArgument<0>(serialized_response));
EXPECT_TRUE(cache.SetPolicy(response));
- loop_.RunAllPending();
+ loop_.RunUntilIdle();
EXPECT_EQ(1U, cache.policy()->size());
const PolicyMap::Entry* entry = cache.policy()->Get(key::kShowHomeButton);
@@ -174,7 +174,7 @@ TEST_F(CrosUserPolicyCacheTest, Migration) {
.WillOnce(InvokeCallbackArgument<0>(std::string()));
cache.Load();
- loop_.RunAllPending();
+ loop_.RunUntilIdle();
EXPECT_TRUE(cache.IsReady());
EXPECT_TRUE(data_store_->token_cache_loaded());

Powered by Google App Engine
This is Rietveld 408576698