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

Side by Side Diff: chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.h

Issue 769703003: SetManagementSettings() is moved to OwnerSettingsServiceChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/chromeos/policy/device_cloud_policy_initializer.h" 12 #include "chrome/browser/chromeos/policy/device_cloud_policy_initializer.h"
13 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h" 13 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h"
14 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 14 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
15 15
16 namespace policy { 16 namespace policy {
17 17
18 class DeviceManagementService; 18 class DeviceManagementService;
19 19
20 class FakeDeviceCloudPolicyInitializer : public DeviceCloudPolicyInitializer { 20 class FakeDeviceCloudPolicyInitializer : public DeviceCloudPolicyInitializer {
21 public: 21 public:
22 FakeDeviceCloudPolicyInitializer(); 22 FakeDeviceCloudPolicyInitializer();
23 23
24 void Init() override; 24 void Init() override;
25 void Shutdown() override; 25 void Shutdown() override;
26 26
27 virtual void StartEnrollment( 27 virtual void StartEnrollment(
28 ManagementMode management_mode, 28 ManagementMode management_mode,
29 DeviceManagementService* device_management_service, 29 DeviceManagementService* device_management_service,
30 chromeos::OwnerSettingsServiceChromeOS* owner_settings_service,
30 const std::string& auth_token, 31 const std::string& auth_token,
31 bool is_auto_enrollment, 32 bool is_auto_enrollment,
32 const AllowedDeviceModes& allowed_modes, 33 const AllowedDeviceModes& allowed_modes,
33 const EnrollmentCallback& enrollment_callback) override; 34 const EnrollmentCallback& enrollment_callback) override;
34 35
35 bool was_start_enrollment_called() { 36 bool was_start_enrollment_called() {
36 return was_start_enrollment_called_; 37 return was_start_enrollment_called_;
37 } 38 }
38 39
39 void set_enrollment_status(EnrollmentStatus status) { 40 void set_enrollment_status(EnrollmentStatus status) {
40 enrollment_status_ = status; 41 enrollment_status_ = status;
41 } 42 }
42 43
43 private: 44 private:
44 bool was_start_enrollment_called_; 45 bool was_start_enrollment_called_;
45 EnrollmentStatus enrollment_status_; 46 EnrollmentStatus enrollment_status_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyInitializer); 48 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyInitializer);
48 }; 49 };
49 50
50 } // namespace policy 51 } // namespace policy
51 52
52 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H _ 53 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698