Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: remoting/protocol/protocol_mock_objects.cc

Issue 2798393007: Use SignalingAddress in SignalStrategy insterface. (Closed)
Patch Set: header Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/session_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/session_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698