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

Side by Side Diff: webrtc/video/end_to_end_tests.cc

Issue 2682073003: Revert Make the new jitter buffer the default jitter buffer. (Closed)
Patch Set: Created 3 years, 10 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/modules/video_coding/video_receiver.cc ('k') | webrtc/video/receive_statistics_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) 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 <algorithm> 10 #include <algorithm>
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 } test(rtp_history_ms); 1267 } test(rtp_history_ms);
1268 1268
1269 RunBaseTest(&test); 1269 RunBaseTest(&test);
1270 } 1270 }
1271 1271
1272 TEST_P(EndToEndTest, ReceivesPliAndRecoversWithNack) { 1272 TEST_P(EndToEndTest, ReceivesPliAndRecoversWithNack) {
1273 ReceivesPliAndRecovers(1000); 1273 ReceivesPliAndRecovers(1000);
1274 } 1274 }
1275 1275
1276 TEST_P(EndToEndTest, ReceivesPliAndRecoversWithoutNack) { 1276 TEST_P(EndToEndTest, ReceivesPliAndRecoversWithoutNack) {
1277 // This test makes no sense for the new video jitter buffer.
1278 if (GetParam() == new_jb_enabled)
1279 return;
1277 ReceivesPliAndRecovers(0); 1280 ReceivesPliAndRecovers(0);
1278 } 1281 }
1279 1282
1280 TEST_P(EndToEndTest, UnknownRtpPacketGivesUnknownSsrcReturnCode) { 1283 TEST_P(EndToEndTest, UnknownRtpPacketGivesUnknownSsrcReturnCode) {
1281 class PacketInputObserver : public PacketReceiver { 1284 class PacketInputObserver : public PacketReceiver {
1282 public: 1285 public:
1283 explicit PacketInputObserver(PacketReceiver* receiver) 1286 explicit PacketInputObserver(PacketReceiver* receiver)
1284 : receiver_(receiver), delivered_packet_(false, false) {} 1287 : receiver_(receiver), delivered_packet_(false, false) {}
1285 1288
1286 bool Wait() { return delivered_packet_.Wait(kDefaultTimeoutMs); } 1289 bool Wait() { return delivered_packet_.Wait(kDefaultTimeoutMs); }
(...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after
3087 std::map<std::string, bool> send_stats_filled_; 3090 std::map<std::string, bool> send_stats_filled_;
3088 3091
3089 std::vector<uint32_t> expected_receive_ssrcs_; 3092 std::vector<uint32_t> expected_receive_ssrcs_;
3090 std::set<uint32_t> expected_send_ssrcs_; 3093 std::set<uint32_t> expected_send_ssrcs_;
3091 std::string expected_cname_; 3094 std::string expected_cname_;
3092 3095
3093 rtc::Event check_stats_event_; 3096 rtc::Event check_stats_event_;
3094 ReceiveStreamRenderer receive_stream_renderer_; 3097 ReceiveStreamRenderer receive_stream_renderer_;
3095 } test; 3098 } test;
3096 3099
3100 // TODO(philipel): Implement statistics for the new video jitter buffer.
3101 if (GetParam() == new_jb_enabled)
3102 return;
3103
3097 RunBaseTest(&test); 3104 RunBaseTest(&test);
3098 } 3105 }
3099 3106
3100 class RtcpXrObserver : public test::EndToEndTest { 3107 class RtcpXrObserver : public test::EndToEndTest {
3101 public: 3108 public:
3102 RtcpXrObserver(bool enable_rrtr, bool enable_target_bitrate) 3109 RtcpXrObserver(bool enable_rrtr, bool enable_target_bitrate)
3103 : EndToEndTest(test::CallTest::kDefaultTimeoutMs), 3110 : EndToEndTest(test::CallTest::kDefaultTimeoutMs),
3104 enable_rrtr_(enable_rrtr), 3111 enable_rrtr_(enable_rrtr),
3105 enable_target_bitrate_(enable_target_bitrate), 3112 enable_target_bitrate_(enable_target_bitrate),
3106 sent_rtcp_sr_(0), 3113 sent_rtcp_sr_(0),
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
4179 std::unique_ptr<VideoEncoder> encoder_; 4186 std::unique_ptr<VideoEncoder> encoder_;
4180 std::unique_ptr<VideoDecoder> decoder_; 4187 std::unique_ptr<VideoDecoder> decoder_;
4181 rtc::CriticalSection crit_; 4188 rtc::CriticalSection crit_;
4182 int recorded_frames_ GUARDED_BY(crit_); 4189 int recorded_frames_ GUARDED_BY(crit_);
4183 } test(this); 4190 } test(this);
4184 4191
4185 RunBaseTest(&test); 4192 RunBaseTest(&test);
4186 } 4193 }
4187 4194
4188 } // namespace webrtc 4195 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/video_receiver.cc ('k') | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698