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(scoped_ptr<Session> session, | |
14 HostStub* host_stub) | |
15 : session_(session.Pass()), host_stub_(host_stub) {} | |
16 | |
17 MockConnectionToClient::~MockConnectionToClient() {} | |
18 | |
19 MockConnectionToClientEventHandler::MockConnectionToClientEventHandler() {} | 13 MockConnectionToClientEventHandler::MockConnectionToClientEventHandler() {} |
20 | 14 |
21 MockConnectionToClientEventHandler::~MockConnectionToClientEventHandler() {} | 15 MockConnectionToClientEventHandler::~MockConnectionToClientEventHandler() {} |
22 | 16 |
23 MockClipboardStub::MockClipboardStub() {} | 17 MockClipboardStub::MockClipboardStub() {} |
24 | 18 |
25 MockClipboardStub::~MockClipboardStub() {} | 19 MockClipboardStub::~MockClipboardStub() {} |
26 | 20 |
27 MockInputStub::MockInputStub() {} | 21 MockInputStub::MockInputStub() {} |
28 | 22 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void SynchronousPairingRegistry::PostTask( | 98 void SynchronousPairingRegistry::PostTask( |
105 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 99 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
106 const tracked_objects::Location& from_here, | 100 const tracked_objects::Location& from_here, |
107 const base::Closure& task) { | 101 const base::Closure& task) { |
108 DCHECK(task_runner->BelongsToCurrentThread()); | 102 DCHECK(task_runner->BelongsToCurrentThread()); |
109 task.Run(); | 103 task.Run(); |
110 } | 104 } |
111 | 105 |
112 } // namespace protocol | 106 } // namespace protocol |
113 } // namespace remoting | 107 } // namespace remoting |
OLD | NEW |