Skip to content

Commit

Permalink
clean up test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenda6 committed Jan 16, 2024
1 parent 58e0c9f commit 992de49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packager/live_packager_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,12 @@ TEST_P(LivePackagerEncryptionTest, VerifyWithEncryption) {
}

if (GetParam().compare_samples) {
auto expected_data = ReadExpectedData();
CHECK(parser_noenc_->Parse(expected_data.data(), expected_data.size()));
auto expected_buf = ReadExpectedData();
CHECK(parser_noenc_->Parse(expected_buf.data(), expected_buf.size()));
auto& expected_samples = parser_noenc_->GetSamples();

CHECK(parser_enc_->Parse(actual_buf.Data(), actual_buf.Size()));
auto actual_samples = parser_enc_->GetSamples();
auto& actual_samples = parser_enc_->GetSamples();

CHECK_EQ(expected_samples.size(), actual_samples.size());
CHECK(std::equal(expected_samples.begin(), expected_samples.end(),
Expand Down

0 comments on commit 992de49

Please sign in to comment.