| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_STORE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_STORE_H_ |
| 6 #define CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_STORE_H_ | 6 #define CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_STORE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/policy/configuration_policy_store_interface.h" | 14 #include "chrome/browser/policy/configuration_policy_store_interface.h" |
| 15 #include "chrome/browser/policy/policy_map.h" | 15 #include "chrome/browser/policy/policy_map.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 | 17 |
| 18 namespace policy { | 18 namespace policy { |
| 19 | 19 |
| 20 // Mock ConfigurationPolicyStore implementation that records values for policy | 20 // Mock ConfigurationPolicyStore implementation that records values for policy |
| 21 // settings as they get set. | 21 // settings as they get set. |
| 22 class MockConfigurationPolicyStore : public ConfigurationPolicyStoreInterface { | 22 class MockConfigurationPolicyStore : public ConfigurationPolicyStoreInterface { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 PolicyMap policy_map_; | 37 PolicyMap policy_map_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(MockConfigurationPolicyStore); | 39 DISALLOW_COPY_AND_ASSIGN(MockConfigurationPolicyStore); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace policy | 42 } // namespace policy |
| 43 | 43 |
| 44 #endif // CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_STORE_H_ | 44 #endif // CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_STORE_H_ |
| OLD | NEW |