| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_ |
| #define CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_ |
| |
| #include "chrome/browser/policy/policy_service.h" |
| #include "testing/gmock/include/gmock/gmock.h" |
| |
| namespace policy { |
| |
| class MockPolicyService : public PolicyService { |
| public: |
| MockPolicyService(); |
| ~MockPolicyService(); |
| |
| MOCK_METHOD2(AddObserver, void(PolicyDomain, Observer*)); |
| MOCK_METHOD2(RemoveObserver, void(PolicyDomain, Observer*)); |
| MOCK_CONST_METHOD2(GetPolicies, const PolicyMap&(PolicyDomain, |
| const std::string&)); |
| MOCK_CONST_METHOD0(IsInitializationComplete, bool(void)); |
| MOCK_METHOD1(RefreshPolicies, void(const base::Closure&)); |
| }; |
| |
| } // namespace policy |
| |
| #endif // CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_ |