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 <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "remoting/protocol/session_plugin.h" | 12 #include "remoting/protocol/session_plugin.h" |
13 #include "remoting/protocol/video_stream.h" | 13 #include "remoting/protocol/video_stream.h" |
| 14 #include "remoting/signaling/signaling_address.h" |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 namespace protocol { | 17 namespace protocol { |
17 | 18 |
18 MockAuthenticator::MockAuthenticator() {} | 19 MockAuthenticator::MockAuthenticator() {} |
19 | |
20 MockAuthenticator::~MockAuthenticator() {} | 20 MockAuthenticator::~MockAuthenticator() {} |
21 | 21 |
22 MockConnectionToClientEventHandler::MockConnectionToClientEventHandler() {} | 22 MockConnectionToClientEventHandler::MockConnectionToClientEventHandler() {} |
23 | |
24 MockConnectionToClientEventHandler::~MockConnectionToClientEventHandler() {} | 23 MockConnectionToClientEventHandler::~MockConnectionToClientEventHandler() {} |
25 | 24 |
26 MockClipboardStub::MockClipboardStub() {} | 25 MockClipboardStub::MockClipboardStub() {} |
27 | |
28 MockClipboardStub::~MockClipboardStub() {} | 26 MockClipboardStub::~MockClipboardStub() {} |
29 | 27 |
30 MockInputStub::MockInputStub() {} | 28 MockInputStub::MockInputStub() {} |
31 | |
32 MockInputStub::~MockInputStub() {} | 29 MockInputStub::~MockInputStub() {} |
33 | 30 |
34 MockHostStub::MockHostStub() {} | 31 MockHostStub::MockHostStub() {} |
35 | |
36 MockHostStub::~MockHostStub() {} | 32 MockHostStub::~MockHostStub() {} |
37 | 33 |
38 MockClientStub::MockClientStub() {} | 34 MockClientStub::MockClientStub() {} |
39 | |
40 MockClientStub::~MockClientStub() {} | 35 MockClientStub::~MockClientStub() {} |
41 | 36 |
42 MockCursorShapeStub::MockCursorShapeStub() {} | 37 MockCursorShapeStub::MockCursorShapeStub() {} |
43 | |
44 MockCursorShapeStub::~MockCursorShapeStub() {} | 38 MockCursorShapeStub::~MockCursorShapeStub() {} |
45 | 39 |
46 MockVideoStub::MockVideoStub() {} | 40 MockVideoStub::MockVideoStub() {} |
47 | |
48 MockVideoStub::~MockVideoStub() {} | 41 MockVideoStub::~MockVideoStub() {} |
49 | 42 |
50 MockSession::MockSession() {} | 43 MockSession::MockSession() {} |
51 | |
52 MockSession::~MockSession() {} | 44 MockSession::~MockSession() {} |
53 | 45 |
54 MockSessionManager::MockSessionManager() {} | 46 MockSessionManager::MockSessionManager() {} |
55 | |
56 MockSessionManager::~MockSessionManager() {} | 47 MockSessionManager::~MockSessionManager() {} |
57 | 48 |
58 MockPairingRegistryDelegate::MockPairingRegistryDelegate() { | 49 MockPairingRegistryDelegate::MockPairingRegistryDelegate() {} |
59 } | 50 MockPairingRegistryDelegate::~MockPairingRegistryDelegate() {} |
60 | |
61 MockPairingRegistryDelegate::~MockPairingRegistryDelegate() { | |
62 } | |
63 | 51 |
64 std::unique_ptr<base::ListValue> MockPairingRegistryDelegate::LoadAll() { | 52 std::unique_ptr<base::ListValue> MockPairingRegistryDelegate::LoadAll() { |
65 std::unique_ptr<base::ListValue> result(new base::ListValue()); | 53 std::unique_ptr<base::ListValue> result(new base::ListValue()); |
66 for (Pairings::const_iterator i = pairings_.begin(); i != pairings_.end(); | 54 for (Pairings::const_iterator i = pairings_.begin(); i != pairings_.end(); |
67 ++i) { | 55 ++i) { |
68 result->Append(i->second.ToValue()); | 56 result->Append(i->second.ToValue()); |
69 } | 57 } |
70 return result; | 58 return result; |
71 } | 59 } |
72 | 60 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void SynchronousPairingRegistry::PostTask( | 93 void SynchronousPairingRegistry::PostTask( |
106 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 94 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
107 const tracked_objects::Location& from_here, | 95 const tracked_objects::Location& from_here, |
108 const base::Closure& task) { | 96 const base::Closure& task) { |
109 DCHECK(task_runner->BelongsToCurrentThread()); | 97 DCHECK(task_runner->BelongsToCurrentThread()); |
110 task.Run(); | 98 task.Run(); |
111 } | 99 } |
112 | 100 |
113 } // namespace protocol | 101 } // namespace protocol |
114 } // namespace remoting | 102 } // namespace remoting |
OLD | NEW |