| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_POLICY_POLICY_TEST_UTILS_H_ | |
| 6 #define CHROME_BROWSER_POLICY_POLICY_TEST_UTILS_H_ | |
| 7 | |
| 8 #include <ostream> | |
| 9 | |
| 10 #include "chrome/browser/policy/policy_map.h" | |
| 11 #include "chrome/browser/policy/policy_service.h" | |
| 12 #include "chrome/browser/policy/policy_types.h" | |
| 13 | |
| 14 namespace policy { | |
| 15 | |
| 16 class PolicyBundle; | |
| 17 struct PolicyNamespace; | |
| 18 | |
| 19 // Returns true if |service| is not serving any policies. Otherwise logs the | |
| 20 // current policies and returns false. | |
| 21 bool PolicyServiceIsEmpty(const PolicyService* service); | |
| 22 | |
| 23 } // namespace policy | |
| 24 | |
| 25 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle); | |
| 26 std::ostream& operator<<(std::ostream& os, policy::PolicyScope scope); | |
| 27 std::ostream& operator<<(std::ostream& os, policy::PolicyLevel level); | |
| 28 std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain); | |
| 29 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies); | |
| 30 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e); | |
| 31 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns); | |
| 32 | |
| 33 #endif // CHROME_BROWSER_POLICY_POLICY_TEST_UTILS_H_ | |
| OLD | NEW |