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_policy_cache.h" | 5 #include "chrome/browser/policy/device_policy_cache.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/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
13 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 13 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
14 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" | 14 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" |
15 #include "chrome/browser/policy/cloud_policy_data_store.h" | 15 #include "chrome/browser/policy/cloud_policy_data_store.h" |
16 #include "chrome/browser/policy/enterprise_install_attributes.h" | 16 #include "chrome/browser/policy/enterprise_install_attributes.h" |
17 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 17 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
18 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 18 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
19 #include "content/public/test/test_browser_thread.h" | |
20 #include "policy/policy_constants.h" | 19 #include "policy/policy_constants.h" |
21 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
23 | 22 |
24 using ::testing::Mock; | 23 using ::testing::Mock; |
25 | 24 |
26 namespace em = enterprise_management; | 25 namespace em = enterprise_management; |
27 | 26 |
28 namespace policy { | 27 namespace policy { |
29 | 28 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 device_settings_test_helper_.set_policy_blob(device_policy_.GetBlob()); | 227 device_settings_test_helper_.set_policy_blob(device_policy_.GetBlob()); |
229 Startup(); | 228 Startup(); |
230 | 229 |
231 StringValue expected_config(fake_config); | 230 StringValue expected_config(fake_config); |
232 EXPECT_TRUE( | 231 EXPECT_TRUE( |
233 Value::Equals(&expected_config, | 232 Value::Equals(&expected_config, |
234 GetPolicy(key::kDeviceOpenNetworkConfiguration))); | 233 GetPolicy(key::kDeviceOpenNetworkConfiguration))); |
235 } | 234 } |
236 | 235 |
237 } // namespace policy | 236 } // namespace policy |
OLD | NEW |