From 15b7f07b21ed253a99782b2067637e9782e33758 Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Thu, 19 Jan 2017 10:51:52 +0100 Subject: [PATCH] Bug 1330918 - Set timestamp in VP8TrackEncoder GTest. r=jesup MozReview-Commit-ID: 4LeR1iUZBgs --HG-- extra : rebase_source : 5ce54384a32f306eb4f52ba5771eb9dd0f3d94a1 --- dom/media/gtest/TestVideoTrackEncoder.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dom/media/gtest/TestVideoTrackEncoder.cpp b/dom/media/gtest/TestVideoTrackEncoder.cpp index 6499cb5e1498..a5882066f45a 100644 --- a/dom/media/gtest/TestVideoTrackEncoder.cpp +++ b/dom/media/gtest/TestVideoTrackEncoder.cpp @@ -265,13 +265,16 @@ TEST(VP8VideoTrackEncoder, FrameEncode) // Put generated YUV frame into video segment. // Duration of each frame is 1 second. VideoSegment segment; + TimeStamp now = TimeStamp::Now(); for (nsTArray>::size_type i = 0; i < images.Length(); i++) { RefPtr image = images[i]; segment.AppendFrame(image.forget(), mozilla::StreamTime(90000), generator.GetSize(), - PRINCIPAL_HANDLE_NONE); + PRINCIPAL_HANDLE_NONE, + false, + now + TimeDuration::FromSeconds(i)); } // track change notification.