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

Side by Side Diff: chrome/browser/policy/mock_configuration_policy_provider.h

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct 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 | Annotate | Revision Log
OLDNEW
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/policy_map.h"
11 #include "chrome/browser/policy/schema_registry.h" 10 #include "chrome/browser/policy/schema_registry.h"
11 #include "components/policy/core/common/policy_map.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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698