31 #include <gtest/gtest.h> 32 #include <sys/types.h> 40 TEST(ImageFileDataTest, SimpleImage)
45 char filename[] =
"image-XXXXXX";
46 int fd = mkstemp(filename);
71 TEST(ImageFileDataTest, GZipImage)
76 char filename_gz[] =
"image-XXXXXX";
77 int fd_gz = mkstemp(filename_gz);
82 char filename[] =
"image-XXXXXX";
83 int fd = mkstemp(filename);
97 EXPECT_NE(size_gz, ifd_gz.
len());
const uint8_t image_file_gzipped[]
This is "image_file" compressed using GZip.
uint8_t const * data() const
const std::string & filename() const
const uint8_t image_file[]
This image file contains the text "This is a test image.\n" 31 times.
TEST(ImageFileDataTest, SimpleImage)
#define EXPECT_EQ(lhs, rhs)
A macro which verifies that lhs and rhs are equal to each other.