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

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

Issue 10092010: Add CloudPolicyService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_STORE_H_
6 #define CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_STORE_H_
7 #pragma once
8
9 #include "chrome/browser/policy/cloud_policy_store.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace policy {
13
14 class MockCloudPolicyStore : public CloudPolicyStore {
15 public:
16 MockCloudPolicyStore() {}
Joao da Silva 2012/05/22 22:01:44 Clang says this complex ctor must be out-of-line,
Mattias Nissler (ping if slow) 2012/05/24 10:12:25 Done.
17
18 MOCK_METHOD1(Store, void(const enterprise_management::PolicyFetchResponse&));
19 MOCK_METHOD0(Load, void(void));
20
21 // Publish the protected members.
22 using CloudPolicyStore::NotifyStoreLoaded;
23 using CloudPolicyStore::NotifyStoreError;
24
25 using CloudPolicyStore::policy_map_;
26 using CloudPolicyStore::policy_;
27 using CloudPolicyStore::status_;
28 };
29
30 } // namespace policy
31
32 #endif // CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698