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

Unified Diff: remoting/host/setup/mock_daemon_controller.h

Issue 14979008: unittests for Chromoting native messaging host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some clang-format fixes Created 7 years, 7 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: remoting/host/setup/mock_daemon_controller.h
diff --git a/remoting/host/setup/mock_daemon_controller.h b/remoting/host/setup/mock_daemon_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..6118fd9d274216952e30f3cdbe008a06d520b02e
--- /dev/null
+++ b/remoting/host/setup/mock_daemon_controller.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
Sergey Ulanov 2013/05/18 01:59:31 nit: 2013
Lambros 2013/05/22 21:42:18 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_SETUP_MOCK_DAEMON_CONTROLLER_H_
+#define REMOTING_HOST_SETUP_MOCK_DAEMON_CONTROLLER_H_
+
+#include "base/basictypes.h"
+#include "remoting/host/setup/daemon_controller.h"
+
+namespace remoting {
+
+class MockDaemonController : public DaemonController {
Sergey Ulanov 2013/05/18 01:59:31 This class is used in only one place, so maybe mov
Lambros 2013/05/22 21:42:18 Moved mock class into unittest.cc. I'm not sure if
+ public:
+ MockDaemonController();
+ virtual ~MockDaemonController();
+
+ virtual State GetState() OVERRIDE;
+ virtual void GetConfig(const GetConfigCallback& callback) OVERRIDE;
+ virtual void SetConfigAndStart(scoped_ptr<base::DictionaryValue> config,
+ bool consent,
+ const CompletionCallback& callback) OVERRIDE;
+ virtual void UpdateConfig(scoped_ptr<base::DictionaryValue> config,
+ const CompletionCallback& callback) OVERRIDE;
+ virtual void Stop(const CompletionCallback& callback) OVERRIDE;
+ virtual void SetWindow(void* window_handle) OVERRIDE;
+ virtual void GetVersion(const GetVersionCallback& callback) OVERRIDE;
+ virtual void GetUsageStatsConsent(
+ const GetUsageStatsConsentCallback& callback) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockDaemonController);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_SETUP_MOCK_DAEMON_CONTROLLER_H_
« no previous file with comments | « no previous file | remoting/host/setup/mock_daemon_controller.cc » ('j') | remoting/host/setup/native_messaging_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698