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

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

Issue 5153002: Use a service to create device management backends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 10 years, 1 month 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) 2010 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 "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
9 10
10 namespace policy { 11 namespace policy {
11 12
12 // Mock classes for the various DeviceManagementBackend delegates that allow to 13 // Mock classes for the various DeviceManagementBackend delegates that allow to
13 // capture callbacks using gmock. 14 // capture callbacks using gmock.
14 class DeviceRegisterResponseDelegateMock 15 class DeviceRegisterResponseDelegateMock
15 : public DeviceManagementBackend::DeviceRegisterResponseDelegate { 16 : public DeviceManagementBackend::DeviceRegisterResponseDelegate {
16 public: 17 public:
17 MOCK_METHOD1(HandleRegisterResponse, void(const em::DeviceRegisterResponse&)); 18 MOCK_METHOD1(HandleRegisterResponse, void(const em::DeviceRegisterResponse&));
(...skipping 11 matching lines...) Expand all
29 class DevicePolicyResponseDelegateMock 30 class DevicePolicyResponseDelegateMock
30 : public DeviceManagementBackend::DevicePolicyResponseDelegate { 31 : public DeviceManagementBackend::DevicePolicyResponseDelegate {
31 public: 32 public:
32 MOCK_METHOD1(HandlePolicyResponse, void(const em::DevicePolicyResponse&)); 33 MOCK_METHOD1(HandlePolicyResponse, void(const em::DevicePolicyResponse&));
33 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error)); 34 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
34 }; 35 };
35 36
36 } // namespace policy 37 } // namespace policy
37 38
38 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_ 39 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698