diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 04:16:28 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 04:16:28 +0000 |
commit | 819047947b8cead99fe9ca81bcbb181f744fc5a5 (patch) | |
tree | 19bf7f44a19b7ca09d5bb2a91305b45dba979574 /remoting/host/host_mock_objects.h | |
parent | 6aad7dc0fd39b04af7a5dd3ab0007955bbf3d238 (diff) | |
download | chromium_src-819047947b8cead99fe9ca81bcbb181f744fc5a5.zip chromium_src-819047947b8cead99fe9ca81bcbb181f744fc5a5.tar.gz chromium_src-819047947b8cead99fe9ca81bcbb181f744fc5a5.tar.bz2 |
[Chromoting] Request the daemon to open a terminal once a connection has been accepted.
Opening a terminal will invoke (once this functionality is in place) the desktop integration code. The latter will pass a client end of the IPC channel back to the desktop environment object.
BUG=134694
Review URL: https://chromiumcodereview.appspot.com/11028128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/host_mock_objects.h')
-rw-r--r-- | remoting/host/host_mock_objects.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h index e87c94d..8d6d1e2 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(); |