diff options
Diffstat (limited to 'chrome/utility/safe_browsing/mac/dmg_test_utils.h')
-rw-r--r-- | chrome/utility/safe_browsing/mac/dmg_test_utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/utility/safe_browsing/mac/dmg_test_utils.h b/chrome/utility/safe_browsing/mac/dmg_test_utils.h index d3834a7..87d34de 100644 --- a/chrome/utility/safe_browsing/mac/dmg_test_utils.h +++ b/chrome/utility/safe_browsing/mac/dmg_test_utils.h @@ -7,12 +7,17 @@ #include <vector> +#include "base/files/file.h" #include "chrome/utility/safe_browsing/mac/read_stream.h" namespace safe_browsing { namespace dmg { namespace test { +// Opens a generated test data file. Uses gtest assertions to verify success, +// so this should be called with ASSERT_NO_FATAL_FAILURE(). +void GetTestFile(const char* file_name, base::File* file); + // Reads the given |stream| until end-of-stream is reached, storying the read // bytes into |data|. Returns true on success and false on error. bool ReadEntireStream(ReadStream* stream, std::vector<uint8_t>* data); |