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

Unified Diff: remoting/host/policy_hack/mock_policy_callback.h

Issue 10804040: [Chromoting] Refactor the host policy watcher so that policies can easily be added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for Windows. Created 8 years, 5 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 | « remoting/host/policy_hack/fake_policy_watcher.cc ('k') | remoting/host/policy_hack/mock_policy_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/policy_hack/mock_policy_callback.h
diff --git a/remoting/host/policy_hack/mock_policy_callback.h b/remoting/host/policy_hack/mock_policy_callback.h
new file mode 100644
index 0000000000000000000000000000000000000000..2ae9b0ddeecc194c2685e45f2664b504cf44fd94
--- /dev/null
+++ b/remoting/host/policy_hack/mock_policy_callback.h
@@ -0,0 +1,31 @@
+// 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 REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
+#define REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/values.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace remoting {
+namespace policy_hack {
+
+class MockPolicyCallback {
+ public:
+ MockPolicyCallback();
+ virtual ~MockPolicyCallback();
+
+ MOCK_METHOD1(OnPolicyUpdatePtr, void(const base::DictionaryValue* policies));
+ void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockPolicyCallback);
+};
+
+} // namespace policy_hack
+} // namespace remoting
+
+#endif // REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
« no previous file with comments | « remoting/host/policy_hack/fake_policy_watcher.cc ('k') | remoting/host/policy_hack/mock_policy_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698