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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_initializer_unittest.cc

Issue 2230533002: Delete dead consumer enrollment code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 #include "chrome/browser/chromeos/policy/device_cloud_policy_initializer.h" 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_initializer.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/chromeos/policy/enrollment_config.h" 9 #include "chrome/browser/chromeos/policy/enrollment_config.h"
10 #include "chrome/browser/chromeos/policy/server_backed_device_state.h" 10 #include "chrome/browser/chromeos/policy/server_backed_device_state.h"
(...skipping 16 matching lines...) Expand all
27 : enable_zero_touch_flag(flag), auth_mechanism(auth) {} 27 : enable_zero_touch_flag(flag), auth_mechanism(auth) {}
28 }; 28 };
29 29
30 class DeviceCloudPolicyInitializerTest 30 class DeviceCloudPolicyInitializerTest
31 : public testing::TestWithParam<ZeroTouchParam> { 31 : public testing::TestWithParam<ZeroTouchParam> {
32 protected: 32 protected:
33 DeviceCloudPolicyInitializerTest() 33 DeviceCloudPolicyInitializerTest()
34 : device_cloud_policy_initializer_(&local_state_, 34 : device_cloud_policy_initializer_(&local_state_,
35 nullptr, 35 nullptr,
36 nullptr, 36 nullptr,
37 nullptr,
38 &install_attributes_, 37 &install_attributes_,
39 nullptr, 38 nullptr,
40 nullptr, 39 nullptr,
41 nullptr) { 40 nullptr) {
42 chrome::RegisterLocalState(local_state_.registry()); 41 chrome::RegisterLocalState(local_state_.registry());
43 statistics_provider_.SetMachineStatistic("serial_number", "fake-serial"); 42 statistics_provider_.SetMachineStatistic("serial_number", "fake-serial");
44 } 43 }
45 44
46 void SetupZeroTouchFlag(); 45 void SetupZeroTouchFlag();
47 46
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 DeviceCloudPolicyInitializerTest, 177 DeviceCloudPolicyInitializerTest,
179 ::testing::Values( 178 ::testing::Values(
180 ZeroTouchParam(nullptr, // No flag set. 179 ZeroTouchParam(nullptr, // No flag set.
181 EnrollmentConfig::AUTH_MECHANISM_INTERACTIVE), 180 EnrollmentConfig::AUTH_MECHANISM_INTERACTIVE),
182 ZeroTouchParam("", // Flag set without a set value. 181 ZeroTouchParam("", // Flag set without a set value.
183 EnrollmentConfig::AUTH_MECHANISM_BEST_AVAILABLE), 182 EnrollmentConfig::AUTH_MECHANISM_BEST_AVAILABLE),
184 ZeroTouchParam("forced", 183 ZeroTouchParam("forced",
185 EnrollmentConfig::AUTH_MECHANISM_ATTESTATION))); 184 EnrollmentConfig::AUTH_MECHANISM_ATTESTATION)));
186 185
187 } // namespace policy 186 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698