| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
| 9 #include "remoting/host/capturer.h" | 9 #include "remoting/host/capturer.h" |
| 10 #include "remoting/host/curtain.h" | 10 #include "remoting/host/curtain.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 private: | 114 private: |
| 115 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 115 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 class MockEventExecutor : public EventExecutor { | 118 class MockEventExecutor : public EventExecutor { |
| 119 public: | 119 public: |
| 120 MockEventExecutor(); | 120 MockEventExecutor(); |
| 121 virtual ~MockEventExecutor(); | 121 virtual ~MockEventExecutor(); |
| 122 | 122 |
| 123 MOCK_METHOD1(InjectClipboardEvent, |
| 124 void(const protocol::ClipboardEvent& event)); |
| 123 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); | 125 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); |
| 124 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); | 126 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); |
| 125 | 127 |
| 126 private: | 128 private: |
| 127 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); | 129 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); |
| 128 }; | 130 }; |
| 129 | 131 |
| 130 class MockUserAuthenticator : public UserAuthenticator { | 132 class MockUserAuthenticator : public UserAuthenticator { |
| 131 public: | 133 public: |
| 132 MockUserAuthenticator(); | 134 MockUserAuthenticator(); |
| 133 virtual ~MockUserAuthenticator(); | 135 virtual ~MockUserAuthenticator(); |
| 134 | 136 |
| 135 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 137 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
| 136 const std::string& password)); | 138 const std::string& password)); |
| 137 | 139 |
| 138 private: | 140 private: |
| 139 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 141 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
| 140 }; | 142 }; |
| 141 | 143 |
| 142 } // namespace remoting | 144 } // namespace remoting |
| 143 | 145 |
| 144 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 146 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |