From b81d5f011c7cba9fbcec5d5b1129ef0290e2bdeb Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Date: Thu, 4 Feb 2016 16:54:00 -0800 Subject: [PATCH] Update muxer test gold files Some of the muxer tests have been failing because of incorrect gold files. Updating the gold files and tweaking the tests so that they pass in a sensible way. Change-Id: I7d3dda6cacecda526880d6e7623f9a7678b71265 --- testing/muxer_tests.cc | 5 +++-- testing/testdata/block_with_additional.webm | Bin 345 -> 348 bytes testing/testdata/discard_padding.webm | Bin 357 -> 357 bytes testing/testdata/metadata_block.webm | Bin 314 -> 314 bytes testing/testdata/segment_duration.webm | Bin 333 -> 341 bytes 5 files changed, 3 insertions(+), 2 deletions(-) diff --git a/testing/muxer_tests.cc b/testing/muxer_tests.cc index 8d2fd30..53d3b4b 100644 --- a/testing/muxer_tests.cc +++ b/testing/muxer_tests.cc @@ -281,7 +281,7 @@ TEST_F(MuxerTest, BlockWithAdditional) { // Valid Frame EXPECT_TRUE(segment_.AddFrameWithAdditional(dummy_data_, kFrameLength, dummy_data_, kFrameLength, 1, - kVideoTrackNumber, 0, false)); + kVideoTrackNumber, 0, true)); // Valid Frame EXPECT_TRUE(segment_.AddFrameWithAdditional( @@ -323,7 +323,7 @@ TEST_F(MuxerTest, BlockAdditionalWithAddGenericFrame) { frame.Init(dummy_data_, kFrameLength); frame.AddAdditionalData(dummy_data_, kFrameLength, 1); frame.set_track_number(kVideoTrackNumber); - frame.set_is_key(false); + frame.set_is_key(true); // Valid Frame frame.set_timestamp(0); @@ -331,6 +331,7 @@ TEST_F(MuxerTest, BlockAdditionalWithAddGenericFrame) { // Valid Frame frame.set_timestamp(2000000); + frame.set_is_key(false); EXPECT_TRUE(segment_.AddGenericFrame(&frame)); // Invalid Frame - Non monotonically increasing timestamp diff --git a/testing/testdata/block_with_additional.webm b/testing/testdata/block_with_additional.webm index 4878926cf8150c234a9d20bfb354d094fbea1d78..db67ab489961d0cbc7fc52e136a2873f3d8bf000 100644 GIT binary patch delta 27 jcmcb~bcbnzKBLY=gPV*&lerkR7?)2rWmIAQ-N*m{ecA|b delta 23 fcmcb^bdza7vF408kJMoB#j- delta 54 rcmaFL^pt6XI-^tr100ktYGF8BF0f$A!oDU3hK9+GjH3J~(v1xOc@Pa8 diff --git a/testing/testdata/metadata_block.webm b/testing/testdata/metadata_block.webm index 369ab3f80ced0af3092ce9e3ffef77c3ba2b2f4d..35cc02cf1b9a115566d0349f1af5c477036d7ce5 100644 GIT binary patch delta 11 ScmdnRw2NuNT1Ll->v{kiSp>rX delta 11 ScmdnRw2NuNT1JP7>v{kiRRqES diff --git a/testing/testdata/segment_duration.webm b/testing/testdata/segment_duration.webm index b7dccb113451fa7ef763e23d56176d5a5b2ae577..eea3ec7e675bfb29a47e529c42dd167cb179f13d 100644 GIT binary patch delta 42 qcmX@hbd_m>KBMYHgPV-rlerj;B^FFu*w@Iw#()678(C&IG64Vwz6#|4 delta 34 hcmcc0be3s?KBMeJgPV-blerj;1s3-;GO#fq005}%2KxX2