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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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"
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 "policy/proto/device_management_backend.pb.h" 14 #include "policy/proto/device_management_backend.pb.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 virtual void Init() OVERRIDE; 24 virtual void Init() override;
25 virtual void Shutdown() OVERRIDE; 25 virtual void Shutdown() override;
26 26
27 virtual void StartEnrollment( 27 virtual void StartEnrollment(
28 enterprise_management::PolicyData::ManagementMode management_mode, 28 enterprise_management::PolicyData::ManagementMode management_mode,
29 DeviceManagementService* device_management_service, 29 DeviceManagementService* device_management_service,
30 const std::string& auth_token, 30 const std::string& auth_token,
31 bool is_auto_enrollment, 31 bool is_auto_enrollment,
32 const AllowedDeviceModes& allowed_modes, 32 const AllowedDeviceModes& allowed_modes,
33 const EnrollmentCallback& enrollment_callback) OVERRIDE; 33 const EnrollmentCallback& enrollment_callback) override;
34 34
35 bool was_start_enrollment_called() { 35 bool was_start_enrollment_called() {
36 return was_start_enrollment_called_; 36 return was_start_enrollment_called_;
37 } 37 }
38 38
39 void set_enrollment_status(EnrollmentStatus status) { 39 void set_enrollment_status(EnrollmentStatus status) {
40 enrollment_status_ = status; 40 enrollment_status_ = status;
41 } 41 }
42 42
43 private: 43 private:
44 bool was_start_enrollment_called_; 44 bool was_start_enrollment_called_;
45 EnrollmentStatus enrollment_status_; 45 EnrollmentStatus enrollment_status_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyInitializer); 47 DISALLOW_COPY_AND_ASSIGN(FakeDeviceCloudPolicyInitializer);
48 }; 48 };
49 49
50 } // namespace policy 50 } // namespace policy
51 51
52 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H _ 52 #endif // CHROME_BROWSER_CHROMEOS_POLICY_FAKE_DEVICE_CLOUD_POLICY_INITIALIZER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698