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/test/call_test.h" | 10 #include "webrtc/test/call_test.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |