| 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( | 13 MockConnectionToClient::MockConnectionToClient(Session* session, |
| 14 Session* session, | 14 HostStub* host_stub) |
| 15 HostStub* host_stub) | 15 : ConnectionToClient(session), |
| 16 : ConnectionToClient(session) { | 16 clipboard_stub_(nullptr), |
| 17 set_host_stub(host_stub); | 17 host_stub_(host_stub), |
| 18 input_stub_(nullptr) { |
| 18 } | 19 } |
| 19 | 20 |
| 20 MockConnectionToClient::~MockConnectionToClient() {} | 21 MockConnectionToClient::~MockConnectionToClient() {} |
| 21 | 22 |
| 22 MockConnectionToClientEventHandler::MockConnectionToClientEventHandler() {} | 23 MockConnectionToClientEventHandler::MockConnectionToClientEventHandler() {} |
| 23 | 24 |
| 24 MockConnectionToClientEventHandler::~MockConnectionToClientEventHandler() {} | 25 MockConnectionToClientEventHandler::~MockConnectionToClientEventHandler() {} |
| 25 | 26 |
| 26 MockClipboardStub::MockClipboardStub() {} | 27 MockClipboardStub::MockClipboardStub() {} |
| 27 | 28 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 void SynchronousPairingRegistry::PostTask( | 108 void SynchronousPairingRegistry::PostTask( |
| 108 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 109 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 109 const tracked_objects::Location& from_here, | 110 const tracked_objects::Location& from_here, |
| 110 const base::Closure& task) { | 111 const base::Closure& task) { |
| 111 DCHECK(task_runner->BelongsToCurrentThread()); | 112 DCHECK(task_runner->BelongsToCurrentThread()); |
| 112 task.Run(); | 113 task.Run(); |
| 113 } | 114 } |
| 114 | 115 |
| 115 } // namespace protocol | 116 } // namespace protocol |
| 116 } // namespace remoting | 117 } // namespace remoting |
| OLD | NEW |