OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MOCK_CONFIGURATION_POLICY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_ |
6 #define CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_ | 6 #define CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/policy/configuration_policy_provider.h" | 9 #include "chrome/browser/policy/configuration_policy_provider.h" |
10 #include "chrome/browser/policy/schema_registry.h" | |
11 #include "components/policy/core/common/policy_map.h" | 10 #include "components/policy/core/common/policy_map.h" |
| 11 #include "components/policy/core/common/schema_registry.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 | 13 |
14 namespace policy { | 14 namespace policy { |
15 | 15 |
16 // Mock ConfigurationPolicyProvider implementation that supplies canned | 16 // Mock ConfigurationPolicyProvider implementation that supplies canned |
17 // values for polices. | 17 // values for polices. |
18 // TODO(joaodasilva, mnissler): introduce an implementation that non-policy | 18 // TODO(joaodasilva, mnissler): introduce an implementation that non-policy |
19 // code can use that doesn't require the usual boilerplate. | 19 // code can use that doesn't require the usual boilerplate. |
20 // http://crbug.com/242087 | 20 // http://crbug.com/242087 |
21 class MockConfigurationPolicyProvider : public ConfigurationPolicyProvider { | 21 class MockConfigurationPolicyProvider : public ConfigurationPolicyProvider { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 public: | 57 public: |
58 MockConfigurationPolicyObserver(); | 58 MockConfigurationPolicyObserver(); |
59 virtual ~MockConfigurationPolicyObserver(); | 59 virtual ~MockConfigurationPolicyObserver(); |
60 | 60 |
61 MOCK_METHOD1(OnUpdatePolicy, void(ConfigurationPolicyProvider*)); | 61 MOCK_METHOD1(OnUpdatePolicy, void(ConfigurationPolicyProvider*)); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace policy | 64 } // namespace policy |
65 | 65 |
66 #endif // CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_ | 66 #endif // CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_ |
OLD | NEW |