OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_POLICY_DUMMY_CLOUD_POLICY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DUMMY_CLOUD_POLICY_PROVIDER_H_ |
6 #define CHROME_BROWSER_POLICY_DUMMY_CLOUD_POLICY_PROVIDER_H_ | 6 #define CHROME_BROWSER_POLICY_DUMMY_CLOUD_POLICY_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "base/observer_list.h" |
9 #include "chrome/browser/policy/cloud_policy_provider.h" | 10 #include "chrome/browser/policy/cloud_policy_provider.h" |
10 | 11 |
11 namespace policy { | 12 namespace policy { |
12 | 13 |
13 // A cloud policy provider for tests, that provides 0 policies, but always | 14 // A cloud policy provider for tests, that provides 0 policies, but always |
14 // reports that it is initialized. | 15 // reports that it is initialized. |
15 class DummyCloudPolicyProvider : public CloudPolicyProvider { | 16 class DummyCloudPolicyProvider : public CloudPolicyProvider { |
16 public: | 17 public: |
17 explicit DummyCloudPolicyProvider(const PolicyDefinitionList* policy_list); | 18 explicit DummyCloudPolicyProvider(const PolicyDefinitionList* policy_list); |
18 virtual ~DummyCloudPolicyProvider(); | 19 virtual ~DummyCloudPolicyProvider(); |
(...skipping 12 matching lines...) Expand all Loading... |
31 ConfigurationPolicyProvider::Observer* observer) OVERRIDE; | 32 ConfigurationPolicyProvider::Observer* observer) OVERRIDE; |
32 | 33 |
33 ObserverList<ConfigurationPolicyProvider::Observer, true> observer_list_; | 34 ObserverList<ConfigurationPolicyProvider::Observer, true> observer_list_; |
34 | 35 |
35 DISALLOW_COPY_AND_ASSIGN(DummyCloudPolicyProvider); | 36 DISALLOW_COPY_AND_ASSIGN(DummyCloudPolicyProvider); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace policy | 39 } // namespace policy |
39 | 40 |
40 #endif // CHROME_BROWSER_POLICY_DUMMY_CLOUD_POLICY_PROVIDER_H_ | 41 #endif // CHROME_BROWSER_POLICY_DUMMY_CLOUD_POLICY_PROVIDER_H_ |
OLD | NEW |