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 <CoreFoundation/CoreFoundation.h> | 5 #include <CoreFoundation/CoreFoundation.h> |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/callback.h" | 7 #include "base/callback.h" |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
10 #include "base/mac/scoped_cftyperef.h" | 9 #include "base/mac/scoped_cftyperef.h" |
| 10 #include "base/macros.h" |
11 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "components/policy/core/common/async_policy_provider.h" | 13 #include "components/policy/core/common/async_policy_provider.h" |
14 #include "components/policy/core/common/configuration_policy_provider_test.h" | 14 #include "components/policy/core/common/configuration_policy_provider_test.h" |
15 #include "components/policy/core/common/external_data_fetcher.h" | 15 #include "components/policy/core/common/external_data_fetcher.h" |
16 #include "components/policy/core/common/policy_bundle.h" | 16 #include "components/policy/core/common/policy_bundle.h" |
17 #include "components/policy/core/common/policy_loader_mac.h" | 17 #include "components/policy/core/common/policy_loader_mac.h" |
18 #include "components/policy/core/common/policy_map.h" | 18 #include "components/policy/core/common/policy_map.h" |
19 #include "components/policy/core/common/policy_test_utils.h" | 19 #include "components/policy/core/common/policy_test_utils.h" |
20 #include "components/policy/core/common/policy_types.h" | 20 #include "components/policy/core/common/policy_types.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 .Set(test_keys::kKeyString, | 192 .Set(test_keys::kKeyString, |
193 POLICY_LEVEL_RECOMMENDED, | 193 POLICY_LEVEL_RECOMMENDED, |
194 POLICY_SCOPE_USER, | 194 POLICY_SCOPE_USER, |
195 POLICY_SOURCE_PLATFORM, | 195 POLICY_SOURCE_PLATFORM, |
196 new base::StringValue("string value"), | 196 new base::StringValue("string value"), |
197 NULL); | 197 NULL); |
198 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); | 198 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); |
199 } | 199 } |
200 | 200 |
201 } // namespace policy | 201 } // namespace policy |
OLD | NEW |