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

Unified Diff: chrome/browser/policy/mock_policy_service.h

Issue 10916235: Record policy usage statistics every 24 hours. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed compilation Created 8 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
Index: chrome/browser/policy/mock_policy_service.h
diff --git a/chrome/browser/policy/mock_policy_service.h b/chrome/browser/policy/mock_policy_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..c3847a49be211135fc0d6a05d0b56deab9f51263
--- /dev/null
+++ b/chrome/browser/policy/mock_policy_service.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 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_MOCK_POLICY_SERVICE_H_
+#define CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_
+
+#include "chrome/browser/policy/policy_service.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace policy {
+
+class MockPolicyService : public PolicyService {
+ public:
+ MockPolicyService();
+ ~MockPolicyService();
+
+ MOCK_METHOD2(AddObserver, void(PolicyDomain, Observer*));
+ MOCK_METHOD2(RemoveObserver, void(PolicyDomain, Observer*));
+ MOCK_CONST_METHOD2(GetPolicies, const PolicyMap&(PolicyDomain,
+ const std::string&));
+ MOCK_CONST_METHOD0(IsInitializationComplete, bool(void));
+ MOCK_METHOD1(RefreshPolicies, void(const base::Closure&));
+};
+
+} // namespace policy
+
+#endif // CHROME_BROWSER_POLICY_MOCK_POLICY_SERVICE_H_
« no previous file with comments | « chrome/browser/policy/cloud_policy_refresh_scheduler_unittest.cc ('k') | chrome/browser/policy/mock_policy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698