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

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

Issue 12220060: Load policy before signin completes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT. Created 7 years, 10 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/user_cloud_policy_store_unittest.cc
diff --git a/chrome/browser/policy/user_cloud_policy_store_unittest.cc b/chrome/browser/policy/user_cloud_policy_store_unittest.cc
index 0143bf1de7ab4d8fee4a289d1c709c3972028326..ec651e9e5b6018460d259490367ec66da962ddb4 100644
--- a/chrome/browser/policy/user_cloud_policy_store_unittest.cc
+++ b/chrome/browser/policy/user_cloud_policy_store_unittest.cc
@@ -66,14 +66,12 @@ class UserCloudPolicyStoreTest : public testing::Test {
// Verifies that store_->policy_map() has the appropriate entries.
void VerifyPolicyMap(CloudPolicyStore* store) {
- EXPECT_EQ(1U, store->policy_map().size());
+ EXPECT_EQ(2U, store->policy_map().size());
const PolicyMap::Entry* entry =
store->policy_map().Get(key::kShowHomeButton);
ASSERT_TRUE(entry);
EXPECT_TRUE(base::FundamentalValue(true).Equals(entry->value));
-
- // SyncDisabled policy should be filtered out.
- ASSERT_FALSE(store->policy_map().Get(key::kSyncDisabled));
+ ASSERT_TRUE(store->policy_map().Get(key::kSyncDisabled));
}
// Install an expectation on |observer_| for an error code.
« no previous file with comments | « chrome/browser/policy/user_cloud_policy_store.cc ('k') | chrome/browser/policy/user_policy_signin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698