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

Unified Diff: chrome/browser/policy/cloud_policy_controller_unittest.cc

Issue 7147015: Move user cloud policy to BrowserProcess (was 6979011) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed Mattias' comments Created 9 years, 6 months 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/cloud_policy_controller_unittest.cc
diff --git a/chrome/browser/policy/cloud_policy_controller_unittest.cc b/chrome/browser/policy/cloud_policy_controller_unittest.cc
index a008a1e99c21449fb5c2f9e6b8513afd75333405..3c69677cb989f53f493649a4979eea5c5d92b9f5 100644
--- a/chrome/browser/policy/cloud_policy_controller_unittest.cc
+++ b/chrome/browser/policy/cloud_policy_controller_unittest.cc
@@ -102,12 +102,10 @@ class CloudPolicyControllerTest : public testing::Test {
}
void ExpectHasSpdyPolicy() {
- MockConfigurationPolicyStore store;
- EXPECT_CALL(store, Apply(_, _)).Times(AtLeast(1));
- cache_->GetManagedPolicyProvider()->Provide(&store);
FundamentalValue expected(true);
- ASSERT_TRUE(store.Get(kPolicyDisableSpdy) != NULL);
- EXPECT_TRUE(store.Get(kPolicyDisableSpdy)->Equals(&expected));
+ const PolicyMap* policy_map = cache_->policy(
+ CloudPolicyCacheBase::POLICY_LEVEL_MANDATORY);
+ ASSERT_TRUE(Value::Equals(&expected, policy_map->Get(kPolicyDisableSpdy)));
}
void SetupIdentityStrategy(

Powered by Google App Engine
This is Rietveld 408576698