| 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/policy/device_cloud_policy_manager_chromeos.h" | 5 #include "chrome/browser/policy/device_cloud_policy_manager_chromeos.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 } | 48 } |
| 49 | 49 |
| 50 virtual void TearDown() OVERRIDE { | 50 virtual void TearDown() OVERRIDE { |
| 51 manager_.Shutdown(); | 51 manager_.Shutdown(); |
| 52 DeviceSettingsTestBase::TearDown(); | 52 DeviceSettingsTestBase::TearDown(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 scoped_ptr<chromeos::CryptohomeLibrary> cryptohome_library_; | 55 scoped_ptr<chromeos::CryptohomeLibrary> cryptohome_library_; |
| 56 EnterpriseInstallAttributes install_attributes_; | 56 EnterpriseInstallAttributes install_attributes_; |
| 57 | 57 |
| 58 TestingPrefService local_state_; | 58 TestingPrefServiceSimple local_state_; |
| 59 MockDeviceManagementService device_management_service_; | 59 MockDeviceManagementService device_management_service_; |
| 60 | 60 |
| 61 DeviceCloudPolicyStoreChromeOS* store_; | 61 DeviceCloudPolicyStoreChromeOS* store_; |
| 62 DeviceCloudPolicyManagerChromeOS manager_; | 62 DeviceCloudPolicyManagerChromeOS manager_; |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOSTest); | 65 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOSTest); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 TEST_F(DeviceCloudPolicyManagerChromeOSTest, FreshDevice) { | 68 TEST_F(DeviceCloudPolicyManagerChromeOSTest, FreshDevice) { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 } | 316 } |
| 317 | 317 |
| 318 TEST_F(DeviceCloudPolicyManagerChromeOSEnrollmentTest, LoadError) { | 318 TEST_F(DeviceCloudPolicyManagerChromeOSEnrollmentTest, LoadError) { |
| 319 loaded_blob_.clear(); | 319 loaded_blob_.clear(); |
| 320 expected_enrollment_status_ = EnrollmentStatus::STATUS_STORE_ERROR; | 320 expected_enrollment_status_ = EnrollmentStatus::STATUS_STORE_ERROR; |
| 321 expected_store_status_ = CloudPolicyStore::STATUS_LOAD_ERROR; | 321 expected_store_status_ = CloudPolicyStore::STATUS_LOAD_ERROR; |
| 322 } | 322 } |
| 323 | 323 |
| 324 } // namespace | 324 } // namespace |
| 325 } // namespace policy | 325 } // namespace policy |
| OLD | NEW |