Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/policy/test_utils.h

Issue 23532033: policy: Add ostream operator overloads to policy types for testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/policy/test_utils.cc » ('j') | chrome/browser/policy/test_utils.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/test_utils.cc » ('j') | chrome/browser/policy/test_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698