Index: remoting/host/host_mock_objects.h |
diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h |
index 31d0ba45a4d6ee47b1dd1fcd5ad823196858c259..58d63818e5b647a1414ee6f64bf3df46ec09bb45 100644 |
--- a/remoting/host/host_mock_objects.h |
+++ b/remoting/host/host_mock_objects.h |
@@ -9,6 +9,8 @@ |
#include "remoting/host/curtain.h" |
#include "remoting/host/chromoting_host_context.h" |
#include "remoting/host/client_session.h" |
+#include "remoting/host/event_executor.h" |
+#include "remoting/host/user_authenticator.h" |
#include "testing/gmock/include/gmock/gmock.h" |
namespace remoting { |
@@ -69,6 +71,32 @@ class MockClientSessionEventHandler : public ClientSession::EventHandler { |
DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
}; |
+class MockEventExecutor : public EventExecutor { |
+ public: |
+ MockEventExecutor(); |
+ virtual ~MockEventExecutor(); |
+ |
+ MOCK_METHOD2(InjectKeyEvent, void(const protocol::KeyEvent* event, |
+ Task* done)); |
+ MOCK_METHOD2(InjectMouseEvent, void(const protocol::MouseEvent* event, |
+ Task* done)); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); |
+}; |
+ |
+class MockUserAuthenticator : public UserAuthenticator { |
+ public: |
+ MockUserAuthenticator(); |
+ virtual ~MockUserAuthenticator(); |
+ |
+ MOCK_METHOD2(Authenticate, bool(const std::string& username, |
+ const std::string& password)); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
+}; |
+ |
} // namespace remoting |
#endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |