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

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

Issue 1463293002: Replace MockConnectionToClient with FakeConnectionToClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_RejectAuthenticatingClient
Patch Set: Created 5 years 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/remoting_test.gypi » ('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 "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
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
OLDNEW
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/remoting_test.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698