Make C++ unit tests run and pass on Windows (#3869)

* Make C++ unit tests run and pass on Windows

* Fix logic for external memory. The letter ':' is part of drive letter,
so remove the drive letter before splitting on ':'.
* Cosmetic syntax changes to keep MSVC happy.

* Fix lint

* Add Windows guard
This commit is contained in:
Philip Hyunsu Cho
2018-11-06 17:17:24 -08:00
committed by GitHub
parent d9642cf757
commit 2b045aa805
6 changed files with 67 additions and 41 deletions

View File

@@ -24,9 +24,9 @@
#define DeclareUnifiedTest(name) name
#endif
bool FileExists(const std::string name);
bool FileExists(const std::string& filename);
long GetFileSize(const std::string filename);
long GetFileSize(const std::string& filename);
void CreateSimpleTestData(const std::string& filename);