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_store_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" | 12 #include "chrome/browser/chromeos/cros/mock_cryptohome_library.h" |
| 13 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" |
13 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" | 14 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" |
14 #include "chrome/browser/policy/enterprise_install_attributes.h" | |
15 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 15 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
16 #include "policy/policy_constants.h" | 16 #include "policy/policy_constants.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace policy { | 19 namespace policy { |
20 | 20 |
21 class DeviceCloudPolicyStoreChromeOSTest | 21 class DeviceCloudPolicyStoreChromeOSTest |
22 : public chromeos::DeviceSettingsTestBase { | 22 : public chromeos::DeviceSettingsTestBase { |
23 protected: | 23 protected: |
24 DeviceCloudPolicyStoreChromeOSTest() | 24 DeviceCloudPolicyStoreChromeOSTest() |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 TEST_F(DeviceCloudPolicyStoreChromeOSTest, InstallInitialPolicyNotEnterprise) { | 189 TEST_F(DeviceCloudPolicyStoreChromeOSTest, InstallInitialPolicyNotEnterprise) { |
190 PrepareNewSigningKey(); | 190 PrepareNewSigningKey(); |
191 ResetToNonEnterprise(); | 191 ResetToNonEnterprise(); |
192 store_->InstallInitialPolicy(device_policy_.policy()); | 192 store_->InstallInitialPolicy(device_policy_.policy()); |
193 FlushDeviceSettings(); | 193 FlushDeviceSettings(); |
194 ExpectFailure(CloudPolicyStore::STATUS_BAD_STATE); | 194 ExpectFailure(CloudPolicyStore::STATUS_BAD_STATE); |
195 } | 195 } |
196 | 196 |
197 } // namespace policy | 197 } // namespace policy |
OLD | NEW |