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

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

Issue 2254673002: Remove dependency on AudioStub in ConnectionToClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 3 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/connection_to_client.h ('k') | remoting/protocol/fake_connection_to_client.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <utility> 5 #include <utility>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 host_connection_.reset(new WebrtcConnectionToClient( 119 host_connection_.reset(new WebrtcConnectionToClient(
120 base::WrapUnique(host_session_), 120 base::WrapUnique(host_session_),
121 TransportContext::ForTests(protocol::TransportRole::SERVER), 121 TransportContext::ForTests(protocol::TransportRole::SERVER),
122 message_loop_.task_runner())); 122 message_loop_.task_runner()));
123 client_connection_.reset(new WebrtcConnectionToHost()); 123 client_connection_.reset(new WebrtcConnectionToHost());
124 124
125 } else { 125 } else {
126 host_connection_.reset(new IceConnectionToClient( 126 host_connection_.reset(new IceConnectionToClient(
127 base::WrapUnique(host_session_), 127 base::WrapUnique(host_session_),
128 TransportContext::ForTests(protocol::TransportRole::SERVER), 128 TransportContext::ForTests(protocol::TransportRole::SERVER),
129 message_loop_.task_runner())); 129 message_loop_.task_runner(), message_loop_.task_runner()));
130 client_connection_.reset(new IceConnectionToHost()); 130 client_connection_.reset(new IceConnectionToHost());
131 } 131 }
132 132
133 // Setup host side. 133 // Setup host side.
134 host_connection_->SetEventHandler(&host_event_handler_); 134 host_connection_->SetEventHandler(&host_event_handler_);
135 host_connection_->set_clipboard_stub(&host_clipboard_stub_); 135 host_connection_->set_clipboard_stub(&host_clipboard_stub_);
136 host_connection_->set_host_stub(&host_stub_); 136 host_connection_->set_host_stub(&host_stub_);
137 host_connection_->set_input_stub(&host_input_stub_); 137 host_connection_->set_input_stub(&host_input_stub_);
138 138
139 // Setup client side. 139 // Setup client side.
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 stats.client_stats.time_received); 440 stats.client_stats.time_received);
441 EXPECT_TRUE(stats.client_stats.time_received <= 441 EXPECT_TRUE(stats.client_stats.time_received <=
442 stats.client_stats.time_decoded); 442 stats.client_stats.time_decoded);
443 EXPECT_TRUE(stats.client_stats.time_decoded <= 443 EXPECT_TRUE(stats.client_stats.time_decoded <=
444 stats.client_stats.time_rendered); 444 stats.client_stats.time_rendered);
445 EXPECT_TRUE(stats.client_stats.time_rendered <= finish_time); 445 EXPECT_TRUE(stats.client_stats.time_rendered <= finish_time);
446 } 446 }
447 447
448 } // namespace protocol 448 } // namespace protocol
449 } // namespace remoting 449 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/connection_to_client.h ('k') | remoting/protocol/fake_connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698