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

Side by Side Diff: chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 8 years 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_subsystem_unittest.cc ('k') | chrome/browser/policy/device_status_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698