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

Side by Side Diff: webrtc/call/bitrate_estimator_tests.cc

Issue 1908663002: Disable SwitchesToASTThenBackToTOFForVideo test completely. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 <functional> 10 #include <functional>
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 EXPECT_TRUE(receiver_log_.Wait()); 295 EXPECT_TRUE(receiver_log_.Wait());
296 296
297 video_send_config_.rtp.extensions[0] = 297 video_send_config_.rtp.extensions[0] =
298 RtpExtension(RtpExtension::kAbsSendTime, kASTExtensionId); 298 RtpExtension(RtpExtension::kAbsSendTime, kASTExtensionId);
299 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); 299 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
300 receiver_log_.PushExpectedLogLine("Switching to absolute send time RBE."); 300 receiver_log_.PushExpectedLogLine("Switching to absolute send time RBE.");
301 streams_.push_back(new Stream(this, false)); 301 streams_.push_back(new Stream(this, false));
302 EXPECT_TRUE(receiver_log_.Wait()); 302 EXPECT_TRUE(receiver_log_.Wait());
303 } 303 }
304 304
305 // Fails when run with ASan/MSan. See webrtc:5790. 305 // This test is flaky. See webrtc:5790.
306 #if defined(ADDRESS_SANITIZER) || defined(MEMORY_SANITIZER) 306 TEST_F(BitrateEstimatorTest, DISABLED_SwitchesToASTThenBackToTOFForVideo) {
307 #define MAYBE_SwitchesToASTThenBackToTOFForVideo \
308 DISABLED_SwitchesToASTThenBackToTOFForVideo
309 #else
310 #define MAYBE_SwitchesToASTThenBackToTOFForVideo \
311 SwitchesToASTThenBackToTOFForVideo
312 #endif
313 TEST_F(BitrateEstimatorTest, MAYBE_SwitchesToASTThenBackToTOFForVideo) {
314 video_send_config_.rtp.extensions.push_back( 307 video_send_config_.rtp.extensions.push_back(
315 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId)); 308 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId));
316 receiver_log_.PushExpectedLogLine(kSingleStreamLog); 309 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
317 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); 310 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
318 receiver_log_.PushExpectedLogLine(kSingleStreamLog); 311 receiver_log_.PushExpectedLogLine(kSingleStreamLog);
319 streams_.push_back(new Stream(this, false)); 312 streams_.push_back(new Stream(this, false));
320 EXPECT_TRUE(receiver_log_.Wait()); 313 EXPECT_TRUE(receiver_log_.Wait());
321 314
322 video_send_config_.rtp.extensions[0] = 315 video_send_config_.rtp.extensions[0] =
323 RtpExtension(RtpExtension::kAbsSendTime, kASTExtensionId); 316 RtpExtension(RtpExtension::kAbsSendTime, kASTExtensionId);
324 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); 317 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
325 receiver_log_.PushExpectedLogLine("Switching to absolute send time RBE."); 318 receiver_log_.PushExpectedLogLine("Switching to absolute send time RBE.");
326 streams_.push_back(new Stream(this, false)); 319 streams_.push_back(new Stream(this, false));
327 EXPECT_TRUE(receiver_log_.Wait()); 320 EXPECT_TRUE(receiver_log_.Wait());
328 321
329 video_send_config_.rtp.extensions[0] = 322 video_send_config_.rtp.extensions[0] =
330 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId); 323 RtpExtension(RtpExtension::kTOffset, kTOFExtensionId);
331 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog); 324 receiver_log_.PushExpectedLogLine(kAbsSendTimeLog);
332 receiver_log_.PushExpectedLogLine( 325 receiver_log_.PushExpectedLogLine(
333 "WrappingBitrateEstimator: Switching to transmission time offset RBE."); 326 "WrappingBitrateEstimator: Switching to transmission time offset RBE.");
334 streams_.push_back(new Stream(this, false)); 327 streams_.push_back(new Stream(this, false));
335 streams_[0]->StopSending(); 328 streams_[0]->StopSending();
336 streams_[1]->StopSending(); 329 streams_[1]->StopSending();
337 EXPECT_TRUE(receiver_log_.Wait()); 330 EXPECT_TRUE(receiver_log_.Wait());
338 } 331 }
339 } // namespace webrtc 332 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698