OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/policy/core/common/policy_test_utils.h" | 5 #include "components/policy/core/common/policy_test_utils.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "build/build_config.h" |
16 #include "components/policy/core/common/policy_bundle.h" | 17 #include "components/policy/core/common/policy_bundle.h" |
17 | 18 |
18 #if defined(OS_IOS) || defined(OS_MACOSX) | 19 #if defined(OS_IOS) || defined(OS_MACOSX) |
19 #include <CoreFoundation/CoreFoundation.h> | 20 #include <CoreFoundation/CoreFoundation.h> |
20 | 21 |
21 #include "base/mac/scoped_cftyperef.h" | 22 #include "base/mac/scoped_cftyperef.h" |
22 #endif | 23 #endif |
23 | 24 |
24 namespace policy { | 25 namespace policy { |
25 | 26 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 << " \"scope\": " << e.scope << "," << std::endl | 230 << " \"scope\": " << e.scope << "," << std::endl |
230 << " \"value\": " << value | 231 << " \"value\": " << value |
231 << "}"; | 232 << "}"; |
232 return os; | 233 return os; |
233 } | 234 } |
234 | 235 |
235 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns) { | 236 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns) { |
236 os << ns.domain << "/" << ns.component_id; | 237 os << ns.domain << "/" << ns.component_id; |
237 return os; | 238 return os; |
238 } | 239 } |
OLD | NEW |