sapling/eden/fs/config/test
Xavier Deguillard f4f159537f utils: add a platform independent FileUtils
Summary:
Up to now, Windows had to have its own version of folly::{readFile, writeFile,
writeFileAtomic} as these only operate on `char *` path, which can only
represent ascii paths on Windows. Since the Windows version is slightly
different from folly, this forced the code to either ifdef _WIN32, or use the
folly version pretending that it would be OK. The Windows version was also
behaving slightly differently from folly. For instance, where folly would
return a boolean to indicate success, on Windows we would throw an exception.

To simplify our code, add type safety and unify both, we can implement our own
wrappers on top of either folly or Windows APIs.

We still have some code that uses folly::readFile but these should only be
dealing with filedescriptors. As a following step, we may want to have our own
File class that wraps a file descriptor/HANDLE so we can completely remove all
uses of folly::readFile.

Reviewed By: wez

Differential Revision: D23037325

fbshipit-source-id: 2b9a026f3ee6220ef55097abe649b23e38d9fe91
2020-08-14 18:56:33 -07:00
..
CachedParsedFileMonitorTest.cpp utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
CheckoutConfigTest.cpp utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
CMakeLists.txt config: add the TomlConfigTest.cpp to CMake 2020-05-09 08:46:36 -07:00
ConfigSettingTest.cpp config: add ConfigSettingTest to CMake 2020-05-09 08:46:35 -07:00
EdenConfigTest.cpp utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
FileChangeMonitorTest.cpp utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
TomlConfigTest.cpp add helper for setting default values in toml tables 2020-02-05 11:20:26 -08:00