Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / policy / fake_device_cloud_policy_initializer.h
blob179048f2d5ffb24520ef760270fbf60d9367569c
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_
8 #include <string>
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"
16 namespace policy {
18 class DeviceManagementService;
20 class FakeDeviceCloudPolicyInitializer : public DeviceCloudPolicyInitializer {
21 public:
22 FakeDeviceCloudPolicyInitializer();
24 void Init() override;
25 void Shutdown() override;
27 void StartEnrollment(
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;
44 private:
45 bool was_start_enrollment_called_;
46 EnrollmentStatus enrollment_status_;
48 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyInitializer);
51 } // namespace policy
53 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H_