diff options
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 bb3ae2d..31d0ba4 100644 --- a/remoting/host/host_mock_objects.h +++ b/remoting/host/host_mock_objects.h @@ -8,6 +8,7 @@ #include "remoting/host/capturer.h" #include "remoting/host/curtain.h" #include "remoting/host/chromoting_host_context.h" +#include "remoting/host/client_session.h" #include "testing/gmock/include/gmock/gmock.h" namespace remoting { @@ -54,6 +55,20 @@ class MockChromotingHostContext : public ChromotingHostContext { DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); }; +class MockClientSessionEventHandler : public ClientSession::EventHandler { + public: + MockClientSessionEventHandler(); + virtual ~MockClientSessionEventHandler(); + + MOCK_METHOD1(LocalLoginSucceeded, + void(scoped_refptr<protocol::ConnectionToClient>)); + MOCK_METHOD1(LocalLoginFailed, + void(scoped_refptr<protocol::ConnectionToClient>)); + + private: + DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); +}; + } // namespace remoting #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |