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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 private: | 113 private: |
114 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 114 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
115 }; | 115 }; |
116 | 116 |
117 class MockEventExecutor : public EventExecutor { | 117 class MockEventExecutor : public EventExecutor { |
118 public: | 118 public: |
119 MockEventExecutor(); | 119 MockEventExecutor(); |
120 virtual ~MockEventExecutor(); | 120 virtual ~MockEventExecutor(); |
121 | 121 |
| 122 MOCK_METHOD1(InjectClipboardEvent, |
| 123 void(const protocol::ClipboardEvent& event)); |
122 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); | 124 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); |
123 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); | 125 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); |
124 | 126 |
125 private: | 127 private: |
126 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); | 128 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); |
127 }; | 129 }; |
128 | 130 |
129 class MockUserAuthenticator : public UserAuthenticator { | 131 class MockUserAuthenticator : public UserAuthenticator { |
130 public: | 132 public: |
131 MockUserAuthenticator(); | 133 MockUserAuthenticator(); |
132 virtual ~MockUserAuthenticator(); | 134 virtual ~MockUserAuthenticator(); |
133 | 135 |
134 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 136 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
135 const std::string& password)); | 137 const std::string& password)); |
136 | 138 |
137 private: | 139 private: |
138 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 140 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
139 }; | 141 }; |
140 | 142 |
141 } // namespace remoting | 143 } // namespace remoting |
142 | 144 |
143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 145 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |