Index: webrtc/video/video_send_stream_tests.cc |
diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc |
index 194493715e5247efa6e3f0a734255a8dfa541279..7a60b765e2a329361e5c0d4a2c3bfec6f89efdad 100644 |
--- a/webrtc/video/video_send_stream_tests.cc |
+++ b/webrtc/video/video_send_stream_tests.cc |
@@ -554,6 +554,20 @@ TEST_F(VideoSendStreamTest, SupportsUlpfecWithoutExtensions) { |
RunBaseTest(&test); |
} |
+class VideoSendStreamWithoutUlpfecTest : public VideoSendStreamTest { |
+ protected: |
+ VideoSendStreamWithoutUlpfecTest() |
+ : field_trial_("WebRTC-DisableUlpFecExperiment/Enabled/") {} |
+ |
+ test::ScopedFieldTrials field_trial_; |
+}; |
+ |
+TEST_F(VideoSendStreamWithoutUlpfecTest, NoUlpfecIfDisabledThroughFieldTrial) { |
+ std::unique_ptr<VideoEncoder> encoder(VP8Encoder::Create()); |
+ UlpfecObserver test(false, false, true, false, "VP8", encoder.get()); |
+ RunBaseTest(&test); |
+} |
+ |
// The FEC scheme used is not efficient for H264, so we should not use RED/FEC |
// since we'll still have to re-request FEC packets, effectively wasting |
// bandwidth since the receiver has to wait for FEC retransmissions to determine |