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( |