OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #include "webrtc/base/checks.h" | 10 #include "webrtc/base/checks.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 if (test->ShouldCreateReceivers()) { | 55 if (test->ShouldCreateReceivers()) { |
56 Call::Config recv_config(test->GetReceiverCallConfig()); | 56 Call::Config recv_config(test->GetReceiverCallConfig()); |
57 if (num_audio_streams_ > 0) { | 57 if (num_audio_streams_ > 0) { |
58 AudioState::Config audio_state_config; | 58 AudioState::Config audio_state_config; |
59 audio_state_config.voice_engine = voe_recv_.voice_engine; | 59 audio_state_config.voice_engine = voe_recv_.voice_engine; |
60 recv_config.audio_state = AudioState::Create(audio_state_config); | 60 recv_config.audio_state = AudioState::Create(audio_state_config); |
61 } | 61 } |
62 CreateReceiverCall(recv_config); | 62 CreateReceiverCall(recv_config); |
63 } | 63 } |
64 test->OnCallsCreated(sender_call_.get(), receiver_call_.get()); | 64 test->OnCallsCreated(sender_call_.get(), receiver_call_.get()); |
| 65 receive_transport_.reset(test->CreateReceiveTransport()); |
65 send_transport_.reset(test->CreateSendTransport(sender_call_.get())); | 66 send_transport_.reset(test->CreateSendTransport(sender_call_.get())); |
66 receive_transport_.reset(test->CreateReceiveTransport()); | |
67 | 67 |
68 if (test->ShouldCreateReceivers()) { | 68 if (test->ShouldCreateReceivers()) { |
69 send_transport_->SetReceiver(receiver_call_->Receiver()); | 69 send_transport_->SetReceiver(receiver_call_->Receiver()); |
70 receive_transport_->SetReceiver(sender_call_->Receiver()); | 70 receive_transport_->SetReceiver(sender_call_->Receiver()); |
71 } else { | 71 } else { |
72 // Sender-only call delivers to itself. | 72 // Sender-only call delivers to itself. |
73 send_transport_->SetReceiver(sender_call_->Receiver()); | 73 send_transport_->SetReceiver(sender_call_->Receiver()); |
74 receive_transport_->SetReceiver(nullptr); | 74 receive_transport_->SetReceiver(nullptr); |
75 } | 75 } |
76 | 76 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 | 430 |
431 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { | 431 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { |
432 } | 432 } |
433 | 433 |
434 bool EndToEndTest::ShouldCreateReceivers() const { | 434 bool EndToEndTest::ShouldCreateReceivers() const { |
435 return true; | 435 return true; |
436 } | 436 } |
437 | 437 |
438 } // namespace test | 438 } // namespace test |
439 } // namespace webrtc | 439 } // namespace webrtc |
OLD | NEW |