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

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

Issue 8741014: Added auto-enrollment request support to the device_management_backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 9 years 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) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/policy/device_management_backend.h" 9 #include "chrome/browser/policy/device_management_backend.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 26 matching lines...) Expand all
37 class DevicePolicyResponseDelegateMock 37 class DevicePolicyResponseDelegateMock
38 : public DeviceManagementBackend::DevicePolicyResponseDelegate { 38 : public DeviceManagementBackend::DevicePolicyResponseDelegate {
39 public: 39 public:
40 DevicePolicyResponseDelegateMock(); 40 DevicePolicyResponseDelegateMock();
41 virtual ~DevicePolicyResponseDelegateMock(); 41 virtual ~DevicePolicyResponseDelegateMock();
42 42
43 MOCK_METHOD1(HandlePolicyResponse, void(const em::DevicePolicyResponse&)); 43 MOCK_METHOD1(HandlePolicyResponse, void(const em::DevicePolicyResponse&));
44 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error)); 44 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
45 }; 45 };
46 46
47 class DeviceAutoEnrollmentResponseDelegateMock
48 : public DeviceManagementBackend::DeviceAutoEnrollmentResponseDelegate {
49 public:
50 DeviceAutoEnrollmentResponseDelegateMock();
51 virtual ~DeviceAutoEnrollmentResponseDelegateMock();
52
53 MOCK_METHOD1(HandleAutoEnrollmentResponse,
54 void(const em::DeviceAutoEnrollmentResponse&));
55 MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
56 };
57
47 } // namespace policy 58 } // namespace policy
48 59
49 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_ 60 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_management_backend_impl.cc ('k') | chrome/browser/policy/device_management_backend_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698