Configured VCMTiming with sender defining delay times.

BUG=webrtc:7590

Review-Url: https://codereview.webrtc.org/2870823003
Cr-Commit-Position: refs/heads/master@{#18086}
This commit is contained in:
gnish
2017-05-10 09:21:33 -07:00
committed by Commit bot
parent 2d9d21f328
commit b2a318bb8e
5 changed files with 35 additions and 1 deletions

View File

@ -260,6 +260,15 @@ TEST_F(TestFrameBuffer2, OneSuperFrame) {
CheckFrame(1, pid, 1);
}
TEST_F(TestFrameBuffer2, SetPlayoutDelay) {
const PlayoutDelay kPlayoutDelayMs = {123, 321};
std::unique_ptr<FrameObjectFake> test_frame(new FrameObjectFake());
test_frame->SetPlayoutDelay(kPlayoutDelayMs);
buffer_.InsertFrame(std::move(test_frame));
EXPECT_EQ(kPlayoutDelayMs.min_ms, timing_.min_playout_delay());
EXPECT_EQ(kPlayoutDelayMs.max_ms, timing_.max_playout_delay());
}
// Flaky test, see bugs.webrtc.org/7068.
TEST_F(TestFrameBuffer2, DISABLED_OneUnorderedSuperFrame) {
uint16_t pid = Rand();