7 #ifndef MEDIA_FILE_FILE_TEST_UTIL_H_
8 #define MEDIA_FILE_FILE_TEST_UTIL_H_
12 #include "packager/media/file/file.h"
17 #define ASSERT_FILE_EQ(file_name, array) \
19 std::string temp_data; \
20 ASSERT_TRUE(File::ReadFileToString((file_name), &temp_data)); \
21 const char* array_ptr = reinterpret_cast<const char*>(array); \
22 ASSERT_EQ(std::string(array_ptr, arraysize(array)), temp_data); \
28 #endif // MEDIA_FILE_FILE_TEST_UTIL_H_