1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H_
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "chrome/browser/chromeos/policy/device_cloud_policy_initializer.h"
13 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h"
14 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
18 class DeviceManagementService
;
20 class FakeDeviceCloudPolicyInitializer
: public DeviceCloudPolicyInitializer
{
22 FakeDeviceCloudPolicyInitializer();
25 void Shutdown() override
;
28 ManagementMode management_mode
,
29 DeviceManagementService
* device_management_service
,
30 chromeos::OwnerSettingsServiceChromeOS
* owner_settings_service
,
31 const EnrollmentConfig
& enrollment_config
,
32 const std::string
& auth_token
,
33 const AllowedDeviceModes
& allowed_modes
,
34 const EnrollmentCallback
& enrollment_callback
) override
;
36 bool was_start_enrollment_called() {
37 return was_start_enrollment_called_
;
40 void set_enrollment_status(EnrollmentStatus status
) {
41 enrollment_status_
= status
;
45 bool was_start_enrollment_called_
;
46 EnrollmentStatus enrollment_status_
;
48 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyInitializer
);
53 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H_