Skip to content

Commit

Permalink
properties: clean up test suite for review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh committed Nov 27, 2024
1 parent d0492d2 commit 510480a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/gtest/avifpropertytest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: BSD-2-Clause

#include <cstring>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
Expand Down Expand Up @@ -71,9 +70,6 @@ TEST(AvifPropertyTest, Serialise) {
testutil::AvifRwData encoded;
avifResult result = avifEncoderWrite(encoder.get(), image.get(), &encoded);
ASSERT_EQ(result, AVIF_RESULT_OK) << avifResultToString(result);
// Uncomment the following to save the encoded image as an AVIF file.
// std::ofstream("/tmp/avifproperties.avif", std::ios::binary)
// .write(reinterpret_cast<char*>(encoded.data), encoded.size);

ImagePtr decoded(avifImageCreateEmpty());
ASSERT_NE(decoded, nullptr);
Expand All @@ -82,7 +78,6 @@ TEST(AvifPropertyTest, Serialise) {
result = avifDecoderReadMemory(decoder.get(), decoded.get(), encoded.data,
encoded.size);
ASSERT_EQ(result, AVIF_RESULT_OK) << avifResultToString(result);
EXPECT_EQ(decoder->imageSequenceTrackPresent, AVIF_FALSE);
ASSERT_EQ(decoder->image->numProperties, 3u);

const avifImageItemProperty& abcd = decoder->image->properties[0];
Expand Down

0 comments on commit 510480a

Please sign in to comment.