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

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

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes 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_POLICY_SERVICE_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_MOCK_POLICY_SERVICE_H_
6 #define CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_MOCK_POLICY_SERVICE_H_
7 7
8 #include "chrome/browser/policy/policy_service.h" 8 #include "components/policy/core/common/policy_service.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 namespace policy { 11 namespace policy {
12 12
13 class MockPolicyServiceObserver : public PolicyService::Observer { 13 class MockPolicyServiceObserver : public PolicyService::Observer {
14 public: 14 public:
15 MockPolicyServiceObserver(); 15 MockPolicyServiceObserver();
16 virtual ~MockPolicyServiceObserver(); 16 virtual ~MockPolicyServiceObserver();
17 17
18 MOCK_METHOD3(OnPolicyUpdated, void(const PolicyNamespace&, 18 MOCK_METHOD3(OnPolicyUpdated, void(const PolicyNamespace&,
(...skipping 10 matching lines...) Expand all
29 MOCK_METHOD2(AddObserver, void(PolicyDomain, Observer*)); 29 MOCK_METHOD2(AddObserver, void(PolicyDomain, Observer*));
30 MOCK_METHOD2(RemoveObserver, void(PolicyDomain, Observer*)); 30 MOCK_METHOD2(RemoveObserver, void(PolicyDomain, Observer*));
31 31
32 MOCK_CONST_METHOD1(GetPolicies, const PolicyMap&(const PolicyNamespace&)); 32 MOCK_CONST_METHOD1(GetPolicies, const PolicyMap&(const PolicyNamespace&));
33 MOCK_CONST_METHOD1(IsInitializationComplete, bool(PolicyDomain domain)); 33 MOCK_CONST_METHOD1(IsInitializationComplete, bool(PolicyDomain domain));
34 MOCK_METHOD1(RefreshPolicies, void(const base::Closure&)); 34 MOCK_METHOD1(RefreshPolicies, void(const base::Closure&));
35 }; 35 };
36 36
37 } // namespace policy 37 } // namespace policy
38 38
39 #endif // CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_ 39 #endif // COMPONENTS_POLICY_CORE_COMMON_MOCK_POLICY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698