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