blob: 8fa3a572e93032a77560cb453a055da6a7439aa7 [file] [log] [blame]
pbos@webrtc.org5ab75672013-12-16 12:24:44 +00001/*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10#include <functional>
11#include <list>
kwibergb25345e2016-03-12 06:10:44 -080012#include <memory>
pbos@webrtc.org5ab75672013-12-16 12:24:44 +000013#include <string>
14
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020015#include "call/call.h"
Artem Titovdd2eebe2018-08-20 13:27:45 +020016#include "call/fake_network_pipe.h"
17#include "call/simulated_network.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020018#include "rtc_base/checks.h"
19#include "rtc_base/event.h"
20#include "rtc_base/logging.h"
21#include "rtc_base/thread_annotations.h"
22#include "test/call_test.h"
23#include "test/direct_transport.h"
24#include "test/encoder_settings.h"
25#include "test/fake_decoder.h"
26#include "test/fake_encoder.h"
27#include "test/frame_generator_capturer.h"
28#include "test/gtest.h"
pbos@webrtc.org5ab75672013-12-16 12:24:44 +000029
30namespace webrtc {
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000031namespace {
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +020032// Note: If you consider to re-use this class, think twice and instead consider
Peter Boström7c704b82015-12-04 16:13:05 +010033// writing tests that don't depend on the logging system.
34class LogObserver {
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000035 public:
Peter Boström7c704b82015-12-04 16:13:05 +010036 LogObserver() { rtc::LogMessage::AddLogToStream(&callback_, rtc::LS_INFO); }
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000037
Peter Boström7c704b82015-12-04 16:13:05 +010038 ~LogObserver() { rtc::LogMessage::RemoveLogToStream(&callback_); }
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000039
40 void PushExpectedLogLine(const std::string& expected_log_line) {
41 callback_.PushExpectedLogLine(expected_log_line);
42 }
43
Peter Boström5811a392015-12-10 13:02:50 +010044 bool Wait() { return callback_.Wait(); }
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000045
46 private:
Peter Boström7c704b82015-12-04 16:13:05 +010047 class Callback : public rtc::LogSink {
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000048 public:
Peter Boström7c704b82015-12-04 16:13:05 +010049 void OnLogMessage(const std::string& message) override {
Peter Boströmf2f82832015-05-01 13:00:41 +020050 rtc::CritScope lock(&crit_sect_);
Peter Boström7c704b82015-12-04 16:13:05 +010051 // Ignore log lines that are due to missing AST extensions, these are
52 // logged when we switch back from AST to TOF until the wrapping bitrate
53 // estimator gives up on using AST.
54 if (message.find("BitrateEstimator") != std::string::npos &&
55 message.find("packet is missing") == std::string::npos) {
56 received_log_lines_.push_back(message);
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000057 }
Peter Boström7c704b82015-12-04 16:13:05 +010058
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000059 int num_popped = 0;
60 while (!received_log_lines_.empty() && !expected_log_lines_.empty()) {
61 std::string a = received_log_lines_.front();
62 std::string b = expected_log_lines_.front();
63 received_log_lines_.pop_front();
64 expected_log_lines_.pop_front();
65 num_popped++;
Peter Boström7c704b82015-12-04 16:13:05 +010066 EXPECT_TRUE(a.find(b) != std::string::npos) << a << " != " << b;
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000067 }
Benjamin Wright41f9f2c2019-03-13 18:03:29 -070068 if (expected_log_lines_.empty()) {
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000069 if (num_popped > 0) {
Peter Boström5811a392015-12-10 13:02:50 +010070 done_.Set();
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000071 }
72 return;
73 }
74 }
75
Peter Boström5811a392015-12-10 13:02:50 +010076 bool Wait() { return done_.Wait(test::CallTest::kDefaultTimeoutMs); }
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000077
78 void PushExpectedLogLine(const std::string& expected_log_line) {
Peter Boströmf2f82832015-05-01 13:00:41 +020079 rtc::CritScope lock(&crit_sect_);
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000080 expected_log_lines_.push_back(expected_log_line);
81 }
82
83 private:
84 typedef std::list<std::string> Strings;
Peter Boströmf2f82832015-05-01 13:00:41 +020085 rtc::CriticalSection crit_sect_;
danilchapa37de392017-09-09 04:17:22 -070086 Strings received_log_lines_ RTC_GUARDED_BY(crit_sect_);
87 Strings expected_log_lines_ RTC_GUARDED_BY(crit_sect_);
Peter Boström5811a392015-12-10 13:02:50 +010088 rtc::Event done_;
andresp@webrtc.orgb941fe82014-07-07 08:50:48 +000089 };
90
91 Callback callback_;
92};
93} // namespace
pbos@webrtc.org5ab75672013-12-16 12:24:44 +000094
95static const int kTOFExtensionId = 4;
96static const int kASTExtensionId = 5;
97
pbos@webrtc.org994d0b72014-06-27 08:47:52 +000098class BitrateEstimatorTest : public test::CallTest {
pbos@webrtc.org5ab75672013-12-16 12:24:44 +000099 public:
aleloi5d78e8d2016-11-08 03:44:54 -0800100 BitrateEstimatorTest() : receive_config_(nullptr) {}
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000101
Fredrik Solenberg0ccae132015-11-03 10:15:49 +0100102 virtual ~BitrateEstimatorTest() { EXPECT_TRUE(streams_.empty()); }
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000103
104 virtual void SetUp() {
eladalon413ee9a2017-08-22 04:02:52 -0700105 task_queue_.SendTask([this]() {
Sebastian Jansson8e6602f2018-07-13 10:43:20 +0200106 CreateCalls();
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000107
eladalon413ee9a2017-08-22 04:02:52 -0700108 send_transport_.reset(new test::DirectTransport(
Artem Titovdd2eebe2018-08-20 13:27:45 +0200109 &task_queue_,
Mirko Bonadei317a1f02019-09-17 17:06:18 +0200110 std::make_unique<FakeNetworkPipe>(
111 Clock::GetRealTimeClock(), std::make_unique<SimulatedNetwork>(
Artem Titov75e36472018-10-08 12:28:56 +0200112 BuiltInNetworkBehaviorConfig())),
Artem Titovdd2eebe2018-08-20 13:27:45 +0200113 sender_call_.get(), payload_type_map_));
eladalon413ee9a2017-08-22 04:02:52 -0700114 send_transport_->SetReceiver(receiver_call_->Receiver());
115 receive_transport_.reset(new test::DirectTransport(
Artem Titovdd2eebe2018-08-20 13:27:45 +0200116 &task_queue_,
Mirko Bonadei317a1f02019-09-17 17:06:18 +0200117 std::make_unique<FakeNetworkPipe>(
118 Clock::GetRealTimeClock(), std::make_unique<SimulatedNetwork>(
Artem Titov75e36472018-10-08 12:28:56 +0200119 BuiltInNetworkBehaviorConfig())),
Artem Titovdd2eebe2018-08-20 13:27:45 +0200120 receiver_call_.get(), payload_type_map_));
eladalon413ee9a2017-08-22 04:02:52 -0700121 receive_transport_->SetReceiver(sender_call_->Receiver());
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000122
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200123 VideoSendStream::Config video_send_config(send_transport_.get());
124 video_send_config.rtp.ssrcs.push_back(kVideoSendSsrcs[0]);
125 video_send_config.encoder_settings.encoder_factory =
Niels Möller4db138e2018-04-19 09:04:13 +0200126 &fake_encoder_factory_;
Jiawei Ouc2ebe212018-11-08 10:02:56 -0800127 video_send_config.encoder_settings.bitrate_allocator_factory =
128 bitrate_allocator_factory_.get();
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200129 video_send_config.rtp.payload_name = "FAKE";
130 video_send_config.rtp.payload_type = kFakeVideoSendPayloadType;
131 SetVideoSendConfig(video_send_config);
132 VideoEncoderConfig video_encoder_config;
133 test::FillEncoderConfiguration(kVideoCodecVP8, 1, &video_encoder_config);
134 SetVideoEncoderConfig(video_encoder_config);
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000135
eladalon413ee9a2017-08-22 04:02:52 -0700136 receive_config_ = VideoReceiveStream::Config(receive_transport_.get());
137 // receive_config_.decoders will be set by every stream separately.
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200138 receive_config_.rtp.remote_ssrc = GetVideoSendConfig()->rtp.ssrcs[0];
eladalon413ee9a2017-08-22 04:02:52 -0700139 receive_config_.rtp.local_ssrc = kReceiverLocalVideoSsrc;
eladalon413ee9a2017-08-22 04:02:52 -0700140 receive_config_.rtp.extensions.push_back(
141 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId));
142 receive_config_.rtp.extensions.push_back(
143 RtpExtension(RtpExtension::kAbsSendTimeUri, kASTExtensionId));
144 });
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000145 }
146
147 virtual void TearDown() {
eladalon413ee9a2017-08-22 04:02:52 -0700148 task_queue_.SendTask([this]() {
Yusuke Suzukif8d8d6d2018-05-17 22:01:13 +0900149 for (auto* stream : streams_) {
150 stream->StopSending();
151 delete stream;
eladalon413ee9a2017-08-22 04:02:52 -0700152 }
Yusuke Suzukif8d8d6d2018-05-17 22:01:13 +0900153 streams_.clear();
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000154
eladalon413ee9a2017-08-22 04:02:52 -0700155 send_transport_.reset();
156 receive_transport_.reset();
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000157
Sebastian Jansson8e6602f2018-07-13 10:43:20 +0200158 DestroyCalls();
eladalon413ee9a2017-08-22 04:02:52 -0700159 });
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000160 }
161
162 protected:
163 friend class Stream;
164
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000165 class Stream {
166 public:
aleloi5d78e8d2016-11-08 03:44:54 -0800167 explicit Stream(BitrateEstimatorTest* test)
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000168 : test_(test),
169 is_sending_receiving_(false),
pbos@webrtc.org2b4ce3a2015-03-23 13:12:24 +0000170 send_stream_(nullptr),
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000171 frame_generator_capturer_(),
Niels Möllercbcbc222018-09-28 09:07:24 +0200172 decoder_factory_(
Mirko Bonadei317a1f02019-09-17 17:06:18 +0200173 []() { return std::make_unique<test::FakeDecoder>(); }) {
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200174 test_->GetVideoSendConfig()->rtp.ssrcs[0]++;
pbos@webrtc.org6ae48c62014-06-06 10:49:19 +0000175 send_stream_ = test_->sender_call_->CreateVideoSendStream(
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200176 test_->GetVideoSendConfig()->Copy(),
177 test_->GetVideoEncoderConfig()->Copy());
178 RTC_DCHECK_EQ(1, test_->GetVideoEncoderConfig()->number_of_streams);
Danil Chapovalov81687b32019-04-18 15:39:53 +0200179 frame_generator_capturer_ =
Mirko Bonadei317a1f02019-09-17 17:06:18 +0200180 std::make_unique<test::FrameGeneratorCapturer>(
Danil Chapovalov81687b32019-04-18 15:39:53 +0200181 test->clock_,
182 test::FrameGenerator::CreateSquareGenerator(
183 kDefaultWidth, kDefaultHeight, absl::nullopt, absl::nullopt),
184 kDefaultFramerate, *test->task_queue_factory_);
185 frame_generator_capturer_->Init();
Taylor Brandstetter49fcc102018-05-16 14:20:41 -0700186 send_stream_->SetSource(frame_generator_capturer_.get(),
187 DegradationPreference::MAINTAIN_FRAMERATE);
pbos@webrtc.orga5c8d2c2014-04-24 11:13:21 +0000188 send_stream_->Start();
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000189
aleloi5d78e8d2016-11-08 03:44:54 -0800190 VideoReceiveStream::Decoder decoder;
Niels Möllercbcbc222018-09-28 09:07:24 +0200191 decoder.decoder_factory = &decoder_factory_;
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200192 decoder.payload_type = test_->GetVideoSendConfig()->rtp.payload_type;
Niels Möllercb7e1d22018-09-11 15:56:04 +0200193 decoder.video_format =
194 SdpVideoFormat(test_->GetVideoSendConfig()->rtp.payload_name);
aleloi5d78e8d2016-11-08 03:44:54 -0800195 test_->receive_config_.decoders.clear();
196 test_->receive_config_.decoders.push_back(decoder);
197 test_->receive_config_.rtp.remote_ssrc =
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200198 test_->GetVideoSendConfig()->rtp.ssrcs[0];
aleloi5d78e8d2016-11-08 03:44:54 -0800199 test_->receive_config_.rtp.local_ssrc++;
200 test_->receive_config_.renderer = &test->fake_renderer_;
201 video_receive_stream_ = test_->receiver_call_->CreateVideoReceiveStream(
202 test_->receive_config_.Copy());
203 video_receive_stream_->Start();
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000204 is_sending_receiving_ = true;
205 }
206
207 ~Stream() {
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +0200208 EXPECT_FALSE(is_sending_receiving_);
perkj9fdbda62016-09-15 09:19:20 -0700209 test_->sender_call_->DestroyVideoSendStream(send_stream_);
perkja49cbd32016-09-16 07:53:41 -0700210 frame_generator_capturer_.reset(nullptr);
pbos@webrtc.org2b4ce3a2015-03-23 13:12:24 +0000211 send_stream_ = nullptr;
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +0200212 if (video_receive_stream_) {
213 test_->receiver_call_->DestroyVideoReceiveStream(video_receive_stream_);
214 video_receive_stream_ = nullptr;
215 }
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000216 }
217
218 void StopSending() {
219 if (is_sending_receiving_) {
pbos@webrtc.orga5c8d2c2014-04-24 11:13:21 +0000220 send_stream_->Stop();
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +0200221 if (video_receive_stream_) {
222 video_receive_stream_->Stop();
223 }
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000224 is_sending_receiving_ = false;
225 }
226 }
227
228 private:
229 BitrateEstimatorTest* test_;
230 bool is_sending_receiving_;
231 VideoSendStream* send_stream_;
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +0200232 VideoReceiveStream* video_receive_stream_;
kwibergb25345e2016-03-12 06:10:44 -0800233 std::unique_ptr<test::FrameGeneratorCapturer> frame_generator_capturer_;
Niels Möllercbcbc222018-09-28 09:07:24 +0200234
235 test::FunctionVideoDecoderFactory decoder_factory_;
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000236 };
237
Peter Boström7c704b82015-12-04 16:13:05 +0100238 LogObserver receiver_log_;
kwibergb25345e2016-03-12 06:10:44 -0800239 std::unique_ptr<test::DirectTransport> send_transport_;
240 std::unique_ptr<test::DirectTransport> receive_transport_;
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000241 VideoReceiveStream::Config receive_config_;
242 std::vector<Stream*> streams_;
243};
244
Erik Språng468e62a2015-07-06 10:50:47 +0200245static const char* kAbsSendTimeLog =
246 "RemoteBitrateEstimatorAbsSendTime: Instantiating.";
247static const char* kSingleStreamLog =
248 "RemoteBitrateEstimatorSingleStream: Instantiating.";
249
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +0200250TEST_F(BitrateEstimatorTest, InstantiatesTOFPerDefaultForVideo) {
eladalon413ee9a2017-08-22 04:02:52 -0700251 task_queue_.SendTask([this]() {
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200252 GetVideoSendConfig()->rtp.extensions.push_back(
eladalon413ee9a2017-08-22 04:02:52 -0700253 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId));
254 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
255 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
256 streams_.push_back(new Stream(this));
257 });
Peter Boström5811a392015-12-10 13:02:50 +0100258 EXPECT_TRUE(receiver_log_.Wait());
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000259}
260
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +0200261TEST_F(BitrateEstimatorTest, ImmediatelySwitchToASTForVideo) {
eladalon413ee9a2017-08-22 04:02:52 -0700262 task_queue_.SendTask([this]() {
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200263 GetVideoSendConfig()->rtp.extensions.push_back(
eladalon413ee9a2017-08-22 04:02:52 -0700264 RtpExtension(RtpExtension::kAbsSendTimeUri, kASTExtensionId));
265 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
266 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
267 receiver_log_.PushExpectedLogLine("Switching to absolute send time RBE.");
268 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
269 streams_.push_back(new Stream(this));
270 });
Peter Boström5811a392015-12-10 13:02:50 +0100271 EXPECT_TRUE(receiver_log_.Wait());
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +0200272}
273
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +0200274TEST_F(BitrateEstimatorTest, SwitchesToASTForVideo) {
eladalon413ee9a2017-08-22 04:02:52 -0700275 task_queue_.SendTask([this]() {
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200276 GetVideoSendConfig()->rtp.extensions.push_back(
eladalon413ee9a2017-08-22 04:02:52 -0700277 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId));
278 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
279 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
280 streams_.push_back(new Stream(this));
281 });
Peter Boström5811a392015-12-10 13:02:50 +0100282 EXPECT_TRUE(receiver_log_.Wait());
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000283
eladalon413ee9a2017-08-22 04:02:52 -0700284 task_queue_.SendTask([this]() {
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200285 GetVideoSendConfig()->rtp.extensions[0] =
eladalon413ee9a2017-08-22 04:02:52 -0700286 RtpExtension(RtpExtension::kAbsSendTimeUri, kASTExtensionId);
287 receiver_log_.PushExpectedLogLine("Switching to absolute send time RBE.");
288 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
289 streams_.push_back(new Stream(this));
290 });
Peter Boström5811a392015-12-10 13:02:50 +0100291 EXPECT_TRUE(receiver_log_.Wait());
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000292}
293
deadbeef1086ed62016-04-22 10:52:40 -0700294// This test is flaky. See webrtc:5790.
295TEST_F(BitrateEstimatorTest, DISABLED_SwitchesToASTThenBackToTOFForVideo) {
eladalon413ee9a2017-08-22 04:02:52 -0700296 task_queue_.SendTask([this]() {
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200297 GetVideoSendConfig()->rtp.extensions.push_back(
eladalon413ee9a2017-08-22 04:02:52 -0700298 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId));
299 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
300 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
301 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
302 streams_.push_back(new Stream(this));
303 });
Peter Boström5811a392015-12-10 13:02:50 +0100304 EXPECT_TRUE(receiver_log_.Wait());
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000305
eladalon413ee9a2017-08-22 04:02:52 -0700306 task_queue_.SendTask([this]() {
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200307 GetVideoSendConfig()->rtp.extensions[0] =
eladalon413ee9a2017-08-22 04:02:52 -0700308 RtpExtension(RtpExtension::kAbsSendTimeUri, kASTExtensionId);
309 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
310 receiver_log_.PushExpectedLogLine("Switching to absolute send time RBE.");
311 streams_.push_back(new Stream(this));
312 });
Peter Boström5811a392015-12-10 13:02:50 +0100313 EXPECT_TRUE(receiver_log_.Wait());
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000314
eladalon413ee9a2017-08-22 04:02:52 -0700315 task_queue_.SendTask([this]() {
Sebastian Janssonf33905d2018-07-13 09:49:00 +0200316 GetVideoSendConfig()->rtp.extensions[0] =
eladalon413ee9a2017-08-22 04:02:52 -0700317 RtpExtension(RtpExtension::kTimestampOffsetUri, kTOFExtensionId);
318 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
319 receiver_log_.PushExpectedLogLine(
320 "WrappingBitrateEstimator: Switching to transmission time offset RBE.");
321 streams_.push_back(new Stream(this));
322 streams_[0]->StopSending();
323 streams_[1]->StopSending();
324 });
Peter Boström5811a392015-12-10 13:02:50 +0100325 EXPECT_TRUE(receiver_log_.Wait());
pbos@webrtc.org5ab75672013-12-16 12:24:44 +0000326}
327} // namespace webrtc