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

Side by Side Diff: webrtc/test/call_test.cc

Issue 2165743003: Variable audio bitrate. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 years, 4 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 | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | webrtc/test/mock_voe_channel_proxy.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 /* 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
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
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
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | webrtc/test/mock_voe_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698