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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/policy/test_utils.cc » ('j') | chrome/browser/policy/test_utils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/test_utils.h
diff --git a/chrome/browser/policy/test_utils.h b/chrome/browser/policy/test_utils.h
index bdb278316a1ce8f59f818226ae79a48a193297d8..c1281238aed80d97bdb06b7c2ab4ff248bf51bee 100644
--- a/chrome/browser/policy/test_utils.h
+++ b/chrome/browser/policy/test_utils.h
@@ -5,9 +5,15 @@
#ifndef CHROME_BROWSER_POLICY_TEST_UTILS_H_
#define CHROME_BROWSER_POLICY_TEST_UTILS_H_
+#include <ostream>
+
+#include "chrome/browser/policy/policy_map.h"
+#include "chrome/browser/policy/policy_service.h"
+
namespace policy {
-class PolicyService;
+class PolicyBundle;
+struct PolicyNamespace;
// Returns true if |service| is not serving any policies. Otherwise logs the
// current policies and returns false.
@@ -15,4 +21,10 @@ bool PolicyServiceIsEmpty(const PolicyService* service);
} // namespace policy
+std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle);
+std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain);
+std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies);
+std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e);
+std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns);
+
#endif // CHROME_BROWSER_POLICY_TEST_UTILS_H_
« 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