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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 class MockEventExecutor : public EventExecutor { | 121 class MockEventExecutor : public EventExecutor { |
122 public: | 122 public: |
123 MockEventExecutor(); | 123 MockEventExecutor(); |
124 virtual ~MockEventExecutor(); | 124 virtual ~MockEventExecutor(); |
125 | 125 |
126 MOCK_METHOD1(InjectClipboardEvent, | 126 MOCK_METHOD1(InjectClipboardEvent, |
127 void(const protocol::ClipboardEvent& event)); | 127 void(const protocol::ClipboardEvent& event)); |
128 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); | 128 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); |
129 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); | 129 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); |
130 MOCK_METHOD0(OnSessionStarted, void()); | |
131 MOCK_METHOD0(OnSessionFinished, void()); | 130 MOCK_METHOD0(OnSessionFinished, void()); |
132 | 131 |
| 132 void OnSessionStarted(scoped_ptr<protocol::ClipboardStub> client_clipboard); |
| 133 |
133 private: | 134 private: |
134 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); | 135 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); |
135 }; | 136 }; |
136 | 137 |
137 class MockUserAuthenticator : public UserAuthenticator { | 138 class MockUserAuthenticator : public UserAuthenticator { |
138 public: | 139 public: |
139 MockUserAuthenticator(); | 140 MockUserAuthenticator(); |
140 virtual ~MockUserAuthenticator(); | 141 virtual ~MockUserAuthenticator(); |
141 | 142 |
142 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 143 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
143 const std::string& password)); | 144 const std::string& password)); |
144 | 145 |
145 private: | 146 private: |
146 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 147 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace remoting | 150 } // namespace remoting |
150 | 151 |
151 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 152 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |