40 auto image_path =
test_dir_ /
"test_image.png";
44 const unsigned char png_data[] = {
46 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A,
48 0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44, 0x52,
49 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
50 0x08, 0x02, 0x00, 0x00, 0x00, 0x90, 0x91, 0x68,
53 0x00, 0x00, 0x00, 0x0C, 0x49, 0x44, 0x41, 0x54,
54 0x08, 0x99, 0x63, 0xF8, 0xCF, 0xC0, 0x00, 0x00,
55 0x03, 0x01, 0x01, 0x00, 0x18, 0xDD, 0x8D, 0xB4,
57 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4E, 0x44,
58 0xAE, 0x42, 0x60, 0x82
61 std::ofstream file(image_path, std::ios::binary);
62 file.write(
reinterpret_cast<const char*
>(png_data),
sizeof(png_data));