| 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 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 // Returns true if |service| is not serving any policies. Otherwise logs the | 47 // Returns true if |service| is not serving any policies. Otherwise logs the |
| 48 // current policies and returns false. | 48 // current policies and returns false. |
| 49 bool PolicyServiceIsEmpty(const PolicyService* service); | 49 bool PolicyServiceIsEmpty(const PolicyService* service); |
| 50 | 50 |
| 51 #if defined(OS_IOS) || defined(OS_MACOSX) | 51 #if defined(OS_IOS) || defined(OS_MACOSX) |
| 52 | 52 |
| 53 // Converts a base::Value to the equivalent CFPropertyListRef. | 53 // Converts a base::Value to the equivalent CFPropertyListRef. |
| 54 // The returned value is owned by the caller. | 54 // The returned value is owned by the caller. |
| 55 CFPropertyListRef ValueToProperty(const base::Value* value); | 55 CFPropertyListRef ValueToProperty(const base::Value& value); |
| 56 | 56 |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 } // namespace policy | 59 } // namespace policy |
| 60 | 60 |
| 61 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle); | 61 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle); |
| 62 std::ostream& operator<<(std::ostream& os, policy::PolicyScope scope); | 62 std::ostream& operator<<(std::ostream& os, policy::PolicyScope scope); |
| 63 std::ostream& operator<<(std::ostream& os, policy::PolicyLevel level); | 63 std::ostream& operator<<(std::ostream& os, policy::PolicyLevel level); |
| 64 std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain); | 64 std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain); |
| 65 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies); | 65 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies); |
| 66 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e); | 66 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e); |
| 67 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns); | 67 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns); |
| 68 | 68 |
| 69 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_ | 69 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_ |
| OLD | NEW |