| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() |
| 115 : fake_cryptohome_client_(new chromeos::FakeCryptohomeClient()), | 115 : fake_cryptohome_client_(new chromeos::FakeCryptohomeClient()), |
| 116 state_keys_broker_(&fake_session_manager_client_, | 116 state_keys_broker_(&fake_session_manager_client_), |
| 117 base::ThreadTaskRunnerHandle::Get()), | |
| 118 store_(NULL) { | 117 store_(NULL) { |
| 119 fake_statistics_provider_.SetMachineStatistic( | 118 fake_statistics_provider_.SetMachineStatistic( |
| 120 chromeos::system::kSerialNumberKey, "test_sn"); | 119 chromeos::system::kSerialNumberKey, "test_sn"); |
| 121 fake_statistics_provider_.SetMachineStatistic( | 120 fake_statistics_provider_.SetMachineStatistic( |
| 122 chromeos::system::kHardwareClassKey, "test_hw"); | 121 chromeos::system::kHardwareClassKey, "test_hw"); |
| 123 std::vector<std::string> state_keys; | 122 std::vector<std::string> state_keys; |
| 124 state_keys.push_back("1"); | 123 state_keys.push_back("1"); |
| 125 state_keys.push_back("2"); | 124 state_keys.push_back("2"); |
| 126 state_keys.push_back("3"); | 125 state_keys.push_back("3"); |
| 127 fake_session_manager_client_.set_server_backed_state_keys(state_keys); | 126 fake_session_manager_client_.set_server_backed_state_keys(state_keys); |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 DeviceCloudPolicyManagerChromeOSEnrollmentTest, | 821 DeviceCloudPolicyManagerChromeOSEnrollmentTest, |
| 823 ::testing::Values(false, true)); | 822 ::testing::Values(false, true)); |
| 824 | 823 |
| 825 INSTANTIATE_TEST_CASE_P( | 824 INSTANTIATE_TEST_CASE_P( |
| 826 Cert, | 825 Cert, |
| 827 DeviceCloudPolicyManagerChromeOSEnrollmentBlankSystemSaltTest, | 826 DeviceCloudPolicyManagerChromeOSEnrollmentBlankSystemSaltTest, |
| 828 ::testing::Values(false, true)); | 827 ::testing::Values(false, true)); |
| 829 | 828 |
| 830 } // namespace | 829 } // namespace |
| 831 } // namespace policy | 830 } // namespace policy |
| OLD | NEW |