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

Unified Diff: components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc

Issue 233423002: Don't upload extension IDs in the cloud policy protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: send a PolicyFetchRequest for extensions Created 6 years, 8 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: components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc
diff --git a/components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc b/components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc
index 9c1dd1137e416a89666ad9bd8eef6e2e523119a1..2cd3440ef8a0124a55297508dde4c401ac4c2c1c 100644
--- a/components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc
+++ b/components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc
@@ -165,11 +165,7 @@ class ComponentCloudPolicyServiceTest : public testing::Test {
// Also initialize the refresh scheduler, so that calls to
// core()->RefreshSoon() trigger a FetchPolicy() call on the mock |client_|.
- // Expect the initial refresh now, if the store doesn't have policy (if it
- // does then the CloudPolicyRefreshScheduler won't start refreshing until
- // invalidations are available, or a timeout elapses).
Joao da Silva 2014/04/24 18:45:20 In case you wonder, this was logging "unexpected c
- if (!store_.has_policy())
- EXPECT_CALL(*client_, FetchPolicy());
+ EXPECT_CALL(*client_, FetchPolicy());
core_.StartRefreshScheduler();
RunUntilIdle();
Mock::VerifyAndClearExpectations(client_);
@@ -492,7 +488,7 @@ TEST_F(ComponentCloudPolicyServiceTest, SignInAfterStartup) {
}
TEST_F(ComponentCloudPolicyServiceTest, SignOut) {
- // Initialize everthing and serve policy for a component.
+ // Initialize everything and serve policy for a component.
PopulateCache();
LoadStore();
InitializeRegistry();

Powered by Google App Engine
This is Rietveld 408576698