Index: chrome/browser/policy/test_utils.h |
diff --git a/chrome/browser/policy/test_utils.h b/chrome/browser/policy/test_utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bdb278316a1ce8f59f818226ae79a48a193297d8 |
--- /dev/null |
+++ b/chrome/browser/policy/test_utils.h |
@@ -0,0 +1,18 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_POLICY_TEST_UTILS_H_ |
+#define CHROME_BROWSER_POLICY_TEST_UTILS_H_ |
+ |
+namespace policy { |
+ |
+class PolicyService; |
+ |
+// Returns true if |service| is not serving any policies. Otherwise logs the |
+// current policies and returns false. |
+bool PolicyServiceIsEmpty(const PolicyService* service); |
+ |
+} // namespace policy |
+ |
+#endif // CHROME_BROWSER_POLICY_TEST_UTILS_H_ |