From b38aa61ff30770c38509e1cf4938c678a905d20e Mon Sep 17 00:00:00 2001 From: "lee.fordyce" Date: Mon, 13 May 2024 14:08:35 -0600 Subject: [PATCH] fix: PR feedback --- packager/live_packager_test.cc | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/packager/live_packager_test.cc b/packager/live_packager_test.cc index c248b22654..0f52678125 100644 --- a/packager/live_packager_test.cc +++ b/packager/live_packager_test.cc @@ -893,6 +893,7 @@ TEST_F(LivePackagerBaseTest, EditListAfterRepackage) { ASSERT_TRUE(GetBox(init_seg, exp_moov)); media::mp4::Movie act_moov; ASSERT_TRUE(GetBox(actual_buf, act_moov)); + ASSERT_EQ(exp_moov.extends.header, act_moov.extends.header); ASSERT_EQ(exp_moov.tracks.size(), act_moov.tracks.size()); for (size_t i(0); i < exp_moov.tracks.size(); ++i) { @@ -902,33 +903,6 @@ TEST_F(LivePackagerBaseTest, EditListAfterRepackage) { } } -TEST_F(LivePackagerBaseTest, MehdBoxIncluded) { - std::vector init_segment_buffer = - ReadTestDataFile("encrypted/prd_data/init.mp4"); - ASSERT_FALSE(init_segment_buffer.empty()); - - LiveConfig live_config; - live_config.format = LiveConfig::OutputFormat::FMP4; - live_config.track_type = LiveConfig::TrackType::VIDEO; - live_config.protection_scheme = LiveConfig::EncryptionScheme::CENC; - live_config.decryption_key = HexStringToVector(kKeyHex); - live_config.decryption_key_id = HexStringToVector(kKeyIdHex); - SetupLivePackagerConfig(live_config); - - SegmentData init_seg(init_segment_buffer.data(), init_segment_buffer.size()); - SegmentBuffer actual_buf; - const auto status = live_packager_->PackageInit(init_seg, actual_buf); - ASSERT_EQ(Status::OK, status); - ASSERT_GT(actual_buf.Size(), 0); - - media::mp4::Movie exp_moov; - ASSERT_TRUE(GetBox(init_seg, exp_moov)); - media::mp4::Movie act_moov; - ASSERT_TRUE(GetBox(actual_buf, act_moov)); - - ASSERT_EQ(exp_moov.extends.header, act_moov.extends.header); -} - TEST_F(LivePackagerBaseTest, EncryptionFailure) { std::vector init_segment_buffer = ReadTestDataFile("input/init.mp4"); ASSERT_FALSE(init_segment_buffer.empty());