Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/dracoenc/src/draco/core/draco_test_utils.cc
| Context not available. | |||||
| bool CompareGoldenFile(const std::string &golden_file_name, const void *data, | bool CompareGoldenFile(const std::string &golden_file_name, const void *data, | ||||
| int data_size) { | int data_size) { | ||||
| const std::string golden_path = GetTestFileFullPath(golden_file_name); | const std::string golden_path = GetTestFileFullPath(golden_file_name); | ||||
| std::ifstream in_file(golden_path); | std::ifstream in_file(golden_path, std::ios::binary); | ||||
| if (!in_file || data_size < 0) | if (!in_file || data_size < 0) | ||||
| return false; | return false; | ||||
| const char *const data_c8 = static_cast<const char *>(data); | const char *const data_c8 = static_cast<const char *>(data); | ||||
| Context not available. | |||||