| OLD | NEW |
| (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 #include "chrome/browser/policy/mock_device_management_service_old.h" | |
| 6 | |
| 7 namespace em = enterprise_management; | |
| 8 | |
| 9 namespace policy { | |
| 10 | |
| 11 ProxyDeviceManagementBackend::ProxyDeviceManagementBackend( | |
| 12 DeviceManagementBackend* backend) | |
| 13 : backend_(backend) { | |
| 14 } | |
| 15 ProxyDeviceManagementBackend::~ProxyDeviceManagementBackend() {} | |
| 16 | |
| 17 void ProxyDeviceManagementBackend::ProcessRegisterRequest( | |
| 18 const std::string& gaia_auth_token, | |
| 19 const std::string& oauth_token, | |
| 20 const std::string& device_id, | |
| 21 const em::DeviceRegisterRequest& request, | |
| 22 DeviceRegisterResponseDelegate* delegate) { | |
| 23 backend_->ProcessRegisterRequest(gaia_auth_token, oauth_token, | |
| 24 device_id, request, delegate); | |
| 25 } | |
| 26 | |
| 27 void ProxyDeviceManagementBackend::ProcessUnregisterRequest( | |
| 28 const std::string& device_management_token, | |
| 29 const std::string& device_id, | |
| 30 const em::DeviceUnregisterRequest& request, | |
| 31 DeviceUnregisterResponseDelegate* delegate) { | |
| 32 backend_->ProcessUnregisterRequest(device_management_token, device_id, | |
| 33 request, delegate); | |
| 34 } | |
| 35 | |
| 36 void ProxyDeviceManagementBackend::ProcessPolicyRequest( | |
| 37 const std::string& device_management_token, | |
| 38 const std::string& device_id, | |
| 39 CloudPolicyDataStore::UserAffiliation affiliation, | |
| 40 const em::DevicePolicyRequest& request, | |
| 41 const em::DeviceStatusReportRequest* device_status, | |
| 42 DevicePolicyResponseDelegate* delegate) { | |
| 43 backend_->ProcessPolicyRequest(device_management_token, device_id, | |
| 44 affiliation, request, device_status, | |
| 45 delegate); | |
| 46 } | |
| 47 | |
| 48 void ProxyDeviceManagementBackend::ProcessAutoEnrollmentRequest( | |
| 49 const std::string& device_id, | |
| 50 const em::DeviceAutoEnrollmentRequest& request, | |
| 51 DeviceAutoEnrollmentResponseDelegate* delegate) { | |
| 52 backend_->ProcessAutoEnrollmentRequest(device_id, request, delegate); | |
| 53 } | |
| 54 | |
| 55 MockDeviceManagementServiceOld::MockDeviceManagementServiceOld() | |
| 56 : DeviceManagementService("") {} | |
| 57 | |
| 58 MockDeviceManagementServiceOld::~MockDeviceManagementServiceOld() {} | |
| 59 | |
| 60 } // namespace policy | |
| OLD | NEW |