OLD | NEW |
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Create fake sessions. | 112 // Create fake sessions. |
113 host_session_ = new FakeSession(); | 113 host_session_ = new FakeSession(); |
114 owned_client_session_.reset(new FakeSession()); | 114 owned_client_session_.reset(new FakeSession()); |
115 client_session_ = owned_client_session_.get(); | 115 client_session_ = owned_client_session_.get(); |
116 | 116 |
117 // Create Connection objects. | 117 // Create Connection objects. |
118 if (is_using_webrtc()) { | 118 if (is_using_webrtc()) { |
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(), 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(), 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 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 stats.client_stats.time_received); | 433 stats.client_stats.time_received); |
434 EXPECT_TRUE(stats.client_stats.time_received <= | 434 EXPECT_TRUE(stats.client_stats.time_received <= |
435 stats.client_stats.time_decoded); | 435 stats.client_stats.time_decoded); |
436 EXPECT_TRUE(stats.client_stats.time_decoded <= | 436 EXPECT_TRUE(stats.client_stats.time_decoded <= |
437 stats.client_stats.time_rendered); | 437 stats.client_stats.time_rendered); |
438 EXPECT_TRUE(stats.client_stats.time_rendered <= finish_time); | 438 EXPECT_TRUE(stats.client_stats.time_rendered <= finish_time); |
439 } | 439 } |
440 | 440 |
441 } // namespace protocol | 441 } // namespace protocol |
442 } // namespace remoting | 442 } // namespace remoting |
OLD | NEW |