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

Side by Side Diff: chrome/browser/chromeos/login/mock_signed_settings_helper.h

Issue 10824112: Move Chrome OS device settings stuff to chrome/browser/chromeos/settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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_CHROMEOS_LOGIN_MOCK_SIGNED_SETTINGS_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SIGNED_SETTINGS_HELPER_H_
7
8 #include "base/basictypes.h"
9 #include "chrome/browser/chromeos/login/signed_settings_helper.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace chromeos {
13
14 class MockSignedSettingsHelper : public chromeos::SignedSettingsHelper {
15 public:
16 MockSignedSettingsHelper();
17 virtual ~MockSignedSettingsHelper();
18
19 MOCK_METHOD2(StartStorePolicyOp,
20 void(const enterprise_management::PolicyFetchResponse&,
21 SignedSettingsHelper::StorePolicyCallback));
22 MOCK_METHOD1(StartRetrievePolicyOp,
23 void(SignedSettingsHelper::RetrievePolicyCallback));
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(MockSignedSettingsHelper);
27 };
28
29 ACTION_P(MockSignedSettingsHelperStorePolicy, status_code) {
30 arg1.Run(status_code);
31 }
32
33 ACTION_P2(MockSignedSettingsHelperRetrievePolicy, status_code, policy) {
34 arg0.Run(status_code, policy);
35 }
36
37 } // namespace chromeos
38
39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_SIGNED_SETTINGS_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_ownership_service.cc ('k') | chrome/browser/chromeos/login/mock_signed_settings_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698