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

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

Issue 2329303002: Delete obsolete AllowedDeviceModes enrollment parameter. (Closed)
Patch Set: Fix tests. Created 4 years, 3 months 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"
(...skipping 10 matching lines...) Expand all
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 void StartEnrollment( 27 void StartEnrollment(
28 DeviceManagementService* device_management_service, 28 DeviceManagementService* device_management_service,
29 const EnrollmentConfig& enrollment_config, 29 const EnrollmentConfig& enrollment_config,
30 const std::string& auth_token, 30 const std::string& auth_token,
31 const AllowedDeviceModes& allowed_modes,
32 const EnrollmentCallback& enrollment_callback) override; 31 const EnrollmentCallback& enrollment_callback) override;
33 32
34 bool was_start_enrollment_called() { 33 bool was_start_enrollment_called() {
35 return was_start_enrollment_called_; 34 return was_start_enrollment_called_;
36 } 35 }
37 36
38 void set_enrollment_status(EnrollmentStatus status) { 37 void set_enrollment_status(EnrollmentStatus status) {
39 enrollment_status_ = status; 38 enrollment_status_ = status;
40 } 39 }
41 40
42 private: 41 private:
43 bool was_start_enrollment_called_; 42 bool was_start_enrollment_called_;
44 EnrollmentStatus enrollment_status_; 43 EnrollmentStatus enrollment_status_;
45 44
46 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyInitializer); 45 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyInitializer);
47 }; 46 };
48 47
49 } // namespace policy 48 } // namespace policy
50 49
51 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H _ 50 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698