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

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

Issue 8702009: Add device status reports to policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some now-dead code. 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_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ 5 #ifndef CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_
6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ 6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 virtual void ProcessUnregisterRequest( 34 virtual void ProcessUnregisterRequest(
35 const std::string& device_management_token, 35 const std::string& device_management_token,
36 const std::string& device_id, 36 const std::string& device_id,
37 const em::DeviceUnregisterRequest& request, 37 const em::DeviceUnregisterRequest& request,
38 DeviceUnregisterResponseDelegate* delegate) OVERRIDE; 38 DeviceUnregisterResponseDelegate* delegate) OVERRIDE;
39 virtual void ProcessPolicyRequest( 39 virtual void ProcessPolicyRequest(
40 const std::string& device_management_token, 40 const std::string& device_management_token,
41 const std::string& device_id, 41 const std::string& device_id,
42 CloudPolicyDataStore::UserAffiliation affiliation, 42 CloudPolicyDataStore::UserAffiliation affiliation,
43 const em::DevicePolicyRequest& request, 43 const em::DevicePolicyRequest& request,
44 const em::DeviceStatusReportRequest* device_status,
44 DevicePolicyResponseDelegate* delegate) OVERRIDE; 45 DevicePolicyResponseDelegate* delegate) OVERRIDE;
45 virtual void ProcessAutoEnrollmentRequest( 46 virtual void ProcessAutoEnrollmentRequest(
46 const std::string& device_id, 47 const std::string& device_id,
47 const em::DeviceAutoEnrollmentRequest& request, 48 const em::DeviceAutoEnrollmentRequest& request,
48 DeviceAutoEnrollmentResponseDelegate* delegate) OVERRIDE; 49 DeviceAutoEnrollmentResponseDelegate* delegate) OVERRIDE;
49 50
50 private: 51 private:
51 DeviceManagementBackend* backend_; // weak 52 DeviceManagementBackend* backend_; // weak
52 DISALLOW_COPY_AND_ASSIGN(ProxyDeviceManagementBackend); 53 DISALLOW_COPY_AND_ASSIGN(ProxyDeviceManagementBackend);
53 }; 54 };
(...skipping 30 matching lines...) Expand all
84 85
85 // Use this to make StartJob send a faked response to the job immediately. 86 // Use this to make StartJob send a faked response to the job immediately.
86 ACTION_P4(MockDeviceManagementServiceRespondToJob, status, response_code, 87 ACTION_P4(MockDeviceManagementServiceRespondToJob, status, response_code,
87 cookies, data) { 88 cookies, data) {
88 arg0->HandleResponse(status, response_code, cookies, data); 89 arg0->HandleResponse(status, response_code, cookies, data);
89 } 90 }
90 91
91 } // namespace policy 92 } // namespace policy
92 93
93 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ 94 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_device_management_backend.h ('k') | chrome/browser/policy/mock_device_management_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698