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

Unified Diff: remoting/host/host_mock_objects.h

Issue 12594009: Converted LocalInputMonitor into a SessionController instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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/desktop_session_agent.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_mock_objects.h
diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
index 04aaaa77438e6b765175fb7fcceef3e384ddacfd..690dc056461913f948aba423c44e4edb4ed21150 100644
--- a/remoting/host/host_mock_objects.h
+++ b/remoting/host/host_mock_objects.h
@@ -14,7 +14,6 @@
#include "remoting/host/disconnect_window.h"
#include "remoting/host/host_status_observer.h"
#include "remoting/host/input_injector.h"
-#include "remoting/host/local_input_monitor.h"
#include "remoting/host/screen_controls.h"
#include "remoting/host/screen_resolution.h"
#include "remoting/proto/control.pb.h"
@@ -53,16 +52,6 @@ class MockDisconnectWindow : public DisconnectWindow {
MOCK_METHOD0(Hide, void());
};
-class MockLocalInputMonitor : public LocalInputMonitor {
- public:
- MockLocalInputMonitor();
- virtual ~MockLocalInputMonitor();
-
- MOCK_METHOD2(Start, void(MouseMoveObserver* mouse_move_observer,
- const base::Closure& disconnect_callback));
- MOCK_METHOD0(Stop, void());
-};
-
class MockContinueWindow : public ContinueWindow {
public:
MockContinueWindow();
@@ -73,6 +62,20 @@ class MockContinueWindow : public ContinueWindow {
MOCK_METHOD0(Hide, void());
};
+class MockClientSessionControl : public ClientSessionControl {
+ public:
+ MockClientSessionControl();
+ virtual ~MockClientSessionControl();
+
+ MOCK_CONST_METHOD0(client_jid, const std::string&());
+ MOCK_METHOD0(DisconnectSession, void());
+ MOCK_METHOD1(OnLocalMouseMoved, void(const SkIPoint&));
+ MOCK_METHOD1(SetDisableInputs, void(bool));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl);
+};
+
class MockClientSessionEventHandler : public ClientSession::EventHandler {
public:
MockClientSessionEventHandler();
« no previous file with comments | « remoting/host/desktop_session_agent.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698