Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: components/policy/core/common/mock_configuration_policy_provider.h

Issue 101163003: Move ConfigurationPolicyProvider to components/policy/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename target Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_MOCK_CONFIGURATION_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_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 "components/policy/core/common/configuration_policy_provider.h"
10 #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" 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.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 : public ConfigurationPolicyProvider::Observer { 56 : public ConfigurationPolicyProvider::Observer {
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 // COMPONENTS_POLICY_CORE_COMMON_MOCK_CONFIGURATION_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698