Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
|
Mattias Nissler (ping if slow)
2013/09/03 15:31:50
Note that this file only gets linked into browser_
dconnelly
2013/09/04 17:43:02
Done.
| |
| 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 CHROME_BROWSER_POLICY_TEST_UTILS_H_ | 5 #ifndef CHROME_BROWSER_POLICY_TEST_UTILS_H_ |
| 6 #define CHROME_BROWSER_POLICY_TEST_UTILS_H_ | 6 #define CHROME_BROWSER_POLICY_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <ostream> | |
| 9 | |
| 10 #include "chrome/browser/policy/policy_map.h" | |
| 11 #include "chrome/browser/policy/policy_service.h" | |
| 12 | |
| 8 namespace policy { | 13 namespace policy { |
| 9 | 14 |
| 10 class PolicyService; | 15 class PolicyBundle; |
| 16 struct PolicyNamespace; | |
| 11 | 17 |
| 12 // Returns true if |service| is not serving any policies. Otherwise logs the | 18 // Returns true if |service| is not serving any policies. Otherwise logs the |
| 13 // current policies and returns false. | 19 // current policies and returns false. |
| 14 bool PolicyServiceIsEmpty(const PolicyService* service); | 20 bool PolicyServiceIsEmpty(const PolicyService* service); |
| 15 | 21 |
| 16 } // namespace policy | 22 } // namespace policy |
| 17 | 23 |
| 24 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle); | |
| 25 std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain); | |
| 26 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies); | |
| 27 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e); | |
| 28 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns); | |
| 29 | |
| 18 #endif // CHROME_BROWSER_POLICY_TEST_UTILS_H_ | 30 #endif // CHROME_BROWSER_POLICY_TEST_UTILS_H_ |
| OLD | NEW |