1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/policy/mock_device_management_service.h"
namespace policy {
ProxyDeviceManagementBackend::ProxyDeviceManagementBackend(
DeviceManagementBackend* backend)
: backend_(backend) {
}
ProxyDeviceManagementBackend::~ProxyDeviceManagementBackend() {}
void ProxyDeviceManagementBackend::ProcessRegisterRequest(
const std::string& gaia_auth_token,
const std::string& oauth_token,
const std::string& device_id,
const em::DeviceRegisterRequest& request,
DeviceRegisterResponseDelegate* delegate) {
backend_->ProcessRegisterRequest(gaia_auth_token, oauth_token,
device_id, request, delegate);
}
void ProxyDeviceManagementBackend::ProcessUnregisterRequest(
const std::string& device_management_token,
const std::string& device_id,
const em::DeviceUnregisterRequest& request,
DeviceUnregisterResponseDelegate* delegate) {
backend_->ProcessUnregisterRequest(device_management_token, device_id,
request, delegate);
}
void ProxyDeviceManagementBackend::ProcessPolicyRequest(
const std::string& device_management_token,
const std::string& device_id,
CloudPolicyDataStore::UserAffiliation affiliation,
const em::DevicePolicyRequest& request,
DevicePolicyResponseDelegate* delegate) {
backend_->ProcessPolicyRequest(device_management_token, device_id,
affiliation, request, delegate);
}
MockDeviceManagementService::MockDeviceManagementService()
: DeviceManagementService("") {}
MockDeviceManagementService::~MockDeviceManagementService() {}
} // namespace policy
|