OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/policy/core/common/async_policy_provider.h" | 5 #include "components/policy/core/common/async_policy_provider.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "components/policy/core/common/async_policy_loader.h" | 13 #include "components/policy/core/common/async_policy_loader.h" |
13 #include "components/policy/core/common/external_data_fetcher.h" | 14 #include "components/policy/core/common/external_data_fetcher.h" |
14 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 15 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
15 #include "components/policy/core/common/policy_types.h" | 16 #include "components/policy/core/common/policy_types.h" |
16 #include "components/policy/core/common/schema_registry.h" | 17 #include "components/policy/core/common/schema_registry.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 EXPECT_CALL(observer, OnUpdatePolicy(provider_.get())).Times(0); | 220 EXPECT_CALL(observer, OnUpdatePolicy(provider_.get())).Times(0); |
220 provider_->Shutdown(); | 221 provider_->Shutdown(); |
221 loop_.RunUntilIdle(); | 222 loop_.RunUntilIdle(); |
222 Mock::VerifyAndClearExpectations(&observer); | 223 Mock::VerifyAndClearExpectations(&observer); |
223 | 224 |
224 provider_->RemoveObserver(&observer); | 225 provider_->RemoveObserver(&observer); |
225 provider_.reset(); | 226 provider_.reset(); |
226 } | 227 } |
227 | 228 |
228 } // namespace policy | 229 } // namespace policy |
OLD | NEW |