Chromium Code Reviews| 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(); |