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

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

Issue 22493010: policy: load JSON schema into domain descriptor at start time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comments and clean up includes Created 7 years, 3 months 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 (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 CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_
6 #define CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_ 6 #define CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_
7 7
8 #include "chrome/browser/policy/policy_domain_descriptor.h" 8 #include "chrome/browser/policy/policy_domain_descriptor.h"
9 #include "chrome/browser/policy/policy_service.h" 9 #include "chrome/browser/policy/policy_service.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 14 matching lines...) Expand all
25 class MockPolicyService : public PolicyService { 25 class MockPolicyService : public PolicyService {
26 public: 26 public:
27 MockPolicyService(); 27 MockPolicyService();
28 virtual ~MockPolicyService(); 28 virtual ~MockPolicyService();
29 29
30 MOCK_METHOD2(AddObserver, void(PolicyDomain, Observer*)); 30 MOCK_METHOD2(AddObserver, void(PolicyDomain, Observer*));
31 MOCK_METHOD2(RemoveObserver, void(PolicyDomain, Observer*)); 31 MOCK_METHOD2(RemoveObserver, void(PolicyDomain, Observer*));
32 32
33 MOCK_METHOD1(RegisterPolicyDomain, 33 MOCK_METHOD1(RegisterPolicyDomain,
34 void(scoped_refptr<const PolicyDomainDescriptor>)); 34 void(scoped_refptr<const PolicyDomainDescriptor>));
35 MOCK_METHOD1(InitialRegisterPolicyDomain,
36 void(scoped_refptr<const PolicyDomainDescriptor>));
35 37
36 MOCK_CONST_METHOD1(GetPolicies, const PolicyMap&(const PolicyNamespace&)); 38 MOCK_CONST_METHOD1(GetPolicies, const PolicyMap&(const PolicyNamespace&));
37 MOCK_CONST_METHOD1(GetPolicyDomainDescriptor, 39 MOCK_CONST_METHOD1(GetPolicyDomainDescriptor,
38 scoped_refptr<const PolicyDomainDescriptor>(PolicyDomain)); 40 scoped_refptr<const PolicyDomainDescriptor>(PolicyDomain));
39 MOCK_CONST_METHOD1(IsInitializationComplete, bool(PolicyDomain domain)); 41 MOCK_CONST_METHOD1(IsInitializationComplete, bool(PolicyDomain domain));
40 MOCK_METHOD1(RefreshPolicies, void(const base::Closure&)); 42 MOCK_METHOD1(RefreshPolicies, void(const base::Closure&));
41 }; 43 };
42 44
43 } // namespace policy 45 } // namespace policy
44 46
45 #endif // CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_ 47 #endif // CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698