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

Unified Diff: remoting/host/host_mock_objects.h

Issue 11028128: [Chromoting] Request the daemon to open a terminal once a connection has been accepted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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_connector.h ('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 e87c94d757f44d5e57e4c19ec97e5c6504b0b2c4..8d6d1e28d16e97ad5a349d1a212e198196861478 100644
--- a/remoting/host/host_mock_objects.h
+++ b/remoting/host/host_mock_objects.h
@@ -10,6 +10,8 @@
#include "remoting/host/chromoting_host_context.h"
#include "remoting/host/client_session.h"
#include "remoting/host/continue_window.h"
+#include "remoting/host/desktop_environment.h"
+#include "remoting/host/desktop_environment_factory.h"
#include "remoting/host/disconnect_window.h"
#include "remoting/host/event_executor.h"
#include "remoting/host/host_status_observer.h"
@@ -119,6 +121,19 @@ class MockClientSessionEventHandler : public ClientSession::EventHandler {
DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
};
+class MockDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
+ public:
+ MockDesktopEnvironmentFactory();
+ virtual ~MockDesktopEnvironmentFactory();
+
+ MOCK_METHOD1(CreatePtr, DesktopEnvironment*(ClientSession* client));
+
+ virtual scoped_ptr<DesktopEnvironment> Create(ClientSession* client) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockDesktopEnvironmentFactory);
+};
+
class MockEventExecutor : public EventExecutor {
public:
MockEventExecutor();
« no previous file with comments | « remoting/host/desktop_session_connector.h ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698