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 #include "remoting/protocol/protocol_mock_objects.h" | 5 #include "remoting/protocol/protocol_mock_objects.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 | 9 |
10 namespace remoting { | 10 namespace remoting { |
11 namespace protocol { | 11 namespace protocol { |
12 | 12 |
13 MockConnectionToClient::MockConnectionToClient(Session* session, | 13 MockConnectionToClient::MockConnectionToClient(Session* session, |
14 HostStub* host_stub) | 14 HostStub* host_stub) |
15 : ConnectionToClient(session), | 15 : ConnectionToClient(session), |
16 clipboard_stub_(nullptr), | 16 clipboard_stub_(nullptr), |
17 host_stub_(host_stub), | 17 host_stub_(host_stub), |
18 input_stub_(nullptr), | 18 input_stub_(nullptr), |
19 video_feedback_stub_(nullptr) { | 19 video_feedback_stub_(nullptr) { |
20 } | 20 } |
21 | 21 |
22 MockConnectionToClient::~MockConnectionToClient() {} | 22 MockConnectionToClient::~MockConnectionToClient() {} |
23 | 23 |
24 MockConnectionToClientEventHandler::MockConnectionToClientEventHandler() {} | 24 MockConnectionToClientEventHandler::MockConnectionToClientEventHandler() {} |
25 | 25 |
26 MockConnectionToClientEventHandler::~MockConnectionToClientEventHandler() {} | 26 MockConnectionToClientEventHandler::~MockConnectionToClientEventHandler() {} |
27 | 27 |
| 28 MockConnectionToHost::MockConnectionToHost() {} |
| 29 |
| 30 MockConnectionToHost::~MockConnectionToHost() {} |
| 31 |
| 32 void MockConnectionToHost::Connect( |
| 33 SignalStrategy* signal_strategy, |
| 34 scoped_ptr<TransportFactory> transport_factory, |
| 35 scoped_ptr<Authenticator> authenticator, |
| 36 const std::string& host_jid, |
| 37 HostEventCallback* event_callback) { |
| 38 ConnectPtr(signal_strategy, |
| 39 transport_factory.get(), |
| 40 authenticator.get(), |
| 41 host_jid, |
| 42 event_callback); |
| 43 } |
| 44 |
28 MockClipboardStub::MockClipboardStub() {} | 45 MockClipboardStub::MockClipboardStub() {} |
29 | 46 |
30 MockClipboardStub::~MockClipboardStub() {} | 47 MockClipboardStub::~MockClipboardStub() {} |
31 | 48 |
32 MockInputStub::MockInputStub() {} | 49 MockInputStub::MockInputStub() {} |
33 | 50 |
34 MockInputStub::~MockInputStub() {} | 51 MockInputStub::~MockInputStub() {} |
35 | 52 |
36 MockHostStub::MockHostStub() {} | 53 MockHostStub::MockHostStub() {} |
37 | 54 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void SynchronousPairingRegistry::PostTask( | 126 void SynchronousPairingRegistry::PostTask( |
110 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 127 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
111 const tracked_objects::Location& from_here, | 128 const tracked_objects::Location& from_here, |
112 const base::Closure& task) { | 129 const base::Closure& task) { |
113 DCHECK(task_runner->BelongsToCurrentThread()); | 130 DCHECK(task_runner->BelongsToCurrentThread()); |
114 task.Run(); | 131 task.Run(); |
115 } | 132 } |
116 | 133 |
117 } // namespace protocol | 134 } // namespace protocol |
118 } // namespace remoting | 135 } // namespace remoting |
OLD | NEW |