Chromium Code Reviews| Index: webrtc/modules/video_coding/frame_buffer2_unittest.cc |
| diff --git a/webrtc/modules/video_coding/frame_buffer2_unittest.cc b/webrtc/modules/video_coding/frame_buffer2_unittest.cc |
| index 4f1c6369dc276c4b3f3a2559928429080bdbb977..088518469d361f45d98aa0b858cd73f524c64b47 100644 |
| --- a/webrtc/modules/video_coding/frame_buffer2_unittest.cc |
| +++ b/webrtc/modules/video_coding/frame_buffer2_unittest.cc |
| @@ -260,6 +260,16 @@ TEST_F(TestFrameBuffer2, OneSuperFrame) { |
| CheckFrame(1, pid, 1); |
| } |
| +TEST_F(TestFrameBuffer2, SetPlayoutDelay) { |
| + const int minimalPlayoutDelayMs = 200; |
|
philipel
2017/05/09 16:12:59
minimalPlayoutDelayMs --> kMinimalPlayoutDelayMs
gnish
2017/05/09 16:24:13
Done.
|
| + const int maximalPlayoutDelayMs = 1234; |
| + std::unique_ptr<FrameObjectFake> test_frame(new FrameObjectFake()); |
| + test_frame->SetPlayoutDelay(minimalPlayoutDelayMs, maximalPlayoutDelayMs); |
| + buffer_.InsertFrame(std::move(test_frame)); |
| + EXPECT_EQ(minimalPlayoutDelayMs, timing_.min_playout_delay()); |
| + EXPECT_EQ(maximalPlayoutDelayMs, timing_.max_playout_delay()); |
| +} |
| + |
| // Flaky test, see bugs.webrtc.org/7068. |
| TEST_F(TestFrameBuffer2, DISABLED_OneUnorderedSuperFrame) { |
| uint16_t pid = Rand(); |