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

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

Issue 6056008: Move lots of GMock stuff out of line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright junk Created 9 years, 11 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DEVICE_MANAGEMENT_BACKEND_MOCK_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_
7 7
8 #include "chrome/browser/policy/device_management_backend.h" 8 #include "chrome/browser/policy/device_management_backend.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 // Mock classes for the various DeviceManagementBackend delegates that allow to 13 // Mock classes for the various DeviceManagementBackend delegates that allow to
14 // capture callbacks using gmock. 14 // capture callbacks using gmock.
15 class DeviceRegisterResponseDelegateMock 15 class DeviceRegisterResponseDelegateMock
16 : public DeviceManagementBackend::DeviceRegisterResponseDelegate { 16 : public DeviceManagementBackend::DeviceRegisterResponseDelegate {
17 public: 17 public:
18 DeviceRegisterResponseDelegateMock();
Nico 2011/01/05 01:14:14 whoa, implicit constructors / destructors count as
19 virtual ~DeviceRegisterResponseDelegateMock();
20
18 MOCK_METHOD1(HandleRegisterResponse, void(const em::DeviceRegisterResponse&)); 21 MOCK_METHOD1(HandleRegisterResponse, void(const em::DeviceRegisterResponse&));
19 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error)); 22 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
20 }; 23 };
21 24
22 class DeviceUnregisterResponseDelegateMock 25 class DeviceUnregisterResponseDelegateMock
23 : public DeviceManagementBackend::DeviceUnregisterResponseDelegate { 26 : public DeviceManagementBackend::DeviceUnregisterResponseDelegate {
24 public: 27 public:
28 DeviceUnregisterResponseDelegateMock();
29 virtual ~DeviceUnregisterResponseDelegateMock();
30
25 MOCK_METHOD1(HandleUnregisterResponse, 31 MOCK_METHOD1(HandleUnregisterResponse,
26 void(const em::DeviceUnregisterResponse&)); 32 void(const em::DeviceUnregisterResponse&));
27 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error)); 33 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
28 }; 34 };
29 35
30 class DevicePolicyResponseDelegateMock 36 class DevicePolicyResponseDelegateMock
31 : public DeviceManagementBackend::DevicePolicyResponseDelegate { 37 : public DeviceManagementBackend::DevicePolicyResponseDelegate {
32 public: 38 public:
39 DevicePolicyResponseDelegateMock();
40 virtual ~DevicePolicyResponseDelegateMock();
41
33 MOCK_METHOD1(HandlePolicyResponse, void(const em::DevicePolicyResponse&)); 42 MOCK_METHOD1(HandlePolicyResponse, void(const em::DevicePolicyResponse&));
34 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error)); 43 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
35 }; 44 };
36 45
37 } // namespace policy 46 } // namespace policy
38 47
39 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_ 48 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/device_management_backend_mock.cc » ('j') | chrome/browser/sync/engine/read_node_mock.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698