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

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

Issue 1390753002: Implement AudioReceiveStream::GetStats(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: merge master Created 5 years, 2 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/test/call_test.h ('k') | webrtc/test/fake_voice_engine.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/test/call_test.h" 10 #include "webrtc/test/call_test.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 void CallTest::CreateSenderCall(const Call::Config& config) { 84 void CallTest::CreateSenderCall(const Call::Config& config) {
85 sender_call_.reset(Call::Create(config)); 85 sender_call_.reset(Call::Create(config));
86 } 86 }
87 87
88 void CallTest::CreateReceiverCall(const Call::Config& config) { 88 void CallTest::CreateReceiverCall(const Call::Config& config) {
89 receiver_call_.reset(Call::Create(config)); 89 receiver_call_.reset(Call::Create(config));
90 } 90 }
91 91
92 void CallTest::DestroyCalls() {
93 sender_call_.reset(nullptr);
94 receiver_call_.reset(nullptr);
95 }
96
92 void CallTest::CreateSendConfig(size_t num_streams, 97 void CallTest::CreateSendConfig(size_t num_streams,
93 Transport* send_transport) { 98 Transport* send_transport) {
94 assert(num_streams <= kNumSsrcs); 99 assert(num_streams <= kNumSsrcs);
95 send_config_ = VideoSendStream::Config(send_transport); 100 send_config_ = VideoSendStream::Config(send_transport);
96 send_config_.encoder_settings.encoder = &fake_encoder_; 101 send_config_.encoder_settings.encoder = &fake_encoder_;
97 send_config_.encoder_settings.payload_name = "FAKE"; 102 send_config_.encoder_settings.payload_name = "FAKE";
98 send_config_.encoder_settings.payload_type = kFakeSendPayloadType; 103 send_config_.encoder_settings.payload_type = kFakeSendPayloadType;
99 send_config_.rtp.extensions.push_back( 104 send_config_.rtp.extensions.push_back(
100 RtpExtension(RtpExtension::kAbsSendTime, kAbsSendTimeExtensionId)); 105 RtpExtension(RtpExtension::kAbsSendTime, kAbsSendTimeExtensionId));
101 encoder_config_.streams = test::CreateVideoStreams(num_streams); 106 encoder_config_.streams = test::CreateVideoStreams(num_streams);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 const FakeNetworkPipe::Config& config) 239 const FakeNetworkPipe::Config& config)
235 : BaseTest(timeout_ms, config) { 240 : BaseTest(timeout_ms, config) {
236 } 241 }
237 242
238 bool EndToEndTest::ShouldCreateReceivers() const { 243 bool EndToEndTest::ShouldCreateReceivers() const {
239 return true; 244 return true;
240 } 245 }
241 246
242 } // namespace test 247 } // namespace test
243 } // namespace webrtc 248 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/call_test.h ('k') | webrtc/test/fake_voice_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698