OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_manager_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 class TestingDeviceCloudPolicyManagerChromeOS | 94 class TestingDeviceCloudPolicyManagerChromeOS |
95 : public DeviceCloudPolicyManagerChromeOS { | 95 : public DeviceCloudPolicyManagerChromeOS { |
96 public: | 96 public: |
97 TestingDeviceCloudPolicyManagerChromeOS( | 97 TestingDeviceCloudPolicyManagerChromeOS( |
98 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> store, | 98 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> store, |
99 const scoped_refptr<base::SequencedTaskRunner>& task_runner, | 99 const scoped_refptr<base::SequencedTaskRunner>& task_runner, |
100 ServerBackedStateKeysBroker* state_keys_broker) | 100 ServerBackedStateKeysBroker* state_keys_broker) |
101 : DeviceCloudPolicyManagerChromeOS(std::move(store), | 101 : DeviceCloudPolicyManagerChromeOS(std::move(store), |
102 task_runner, | 102 task_runner, |
103 state_keys_broker) { | 103 state_keys_broker) { |
104 set_component_policy_disabled_for_testing(true); | 104 set_is_component_policy_enabled_for_testing(false); |
105 } | 105 } |
106 | 106 |
107 ~TestingDeviceCloudPolicyManagerChromeOS() override {} | 107 ~TestingDeviceCloudPolicyManagerChromeOS() override {} |
108 }; | 108 }; |
109 | 109 |
110 class DeviceCloudPolicyManagerChromeOSTest | 110 class DeviceCloudPolicyManagerChromeOSTest |
111 : public chromeos::DeviceSettingsTestBase, | 111 : public chromeos::DeviceSettingsTestBase, |
112 public DeviceCloudPolicyManagerChromeOS::Observer { | 112 public DeviceCloudPolicyManagerChromeOS::Observer { |
113 protected: | 113 protected: |
114 DeviceCloudPolicyManagerChromeOSTest() | 114 DeviceCloudPolicyManagerChromeOSTest() |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 DeviceCloudPolicyManagerChromeOSEnrollmentTest, | 821 DeviceCloudPolicyManagerChromeOSEnrollmentTest, |
822 ::testing::Values(false, true)); | 822 ::testing::Values(false, true)); |
823 | 823 |
824 INSTANTIATE_TEST_CASE_P( | 824 INSTANTIATE_TEST_CASE_P( |
825 Cert, | 825 Cert, |
826 DeviceCloudPolicyManagerChromeOSEnrollmentBlankSystemSaltTest, | 826 DeviceCloudPolicyManagerChromeOSEnrollmentBlankSystemSaltTest, |
827 ::testing::Values(false, true)); | 827 ::testing::Values(false, true)); |
828 | 828 |
829 } // namespace | 829 } // namespace |
830 } // namespace policy | 830 } // namespace policy |
OLD | NEW |