Home
last modified time | relevance | path

Searched refs:png_ (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/tests/unit/
Dresources_test.cpp95 png_ = std::make_unique<PngHandler>(GetParam()); in SetUp()
96 ASSERT_TRUE(png_); in SetUp()
98 ASSERT_EQ(PNG_COLOR_TYPE_GRAY, png_->color_type()) << "Recovery expects grayscale PNG file."; in SetUp()
99 ASSERT_LT(static_cast<png_uint_32>(5), png_->width()); in SetUp()
100 ASSERT_LT(static_cast<png_uint_32>(0), png_->height()); in SetUp()
101 ASSERT_EQ(1, png_->channels()) << "Recovery background text images expects 1-channel PNG file."; in SetUp()
104 std::unique_ptr<PngHandler> png_{ nullptr }; member in ResourcesTest
109 std::vector<unsigned char> row(png_->width()); in TEST_P()
110 for (png_uint_32 y = 0; y < png_->height(); ++y) { in TEST_P()
111 png_read_row(png_->png_ptr(), row.data(), nullptr); in TEST_P()
[all …]