sapling/eden/fs/testharness
Xavier Deguillard 0273817488 win: simplify path management
Summary:
The StringConv.h header contains many functions to convert from Windows paths
to Eden's path (and vice versa) to workaround the fact that Eden's path don't
support wide strings that Windows uses. Let's simply add support for these wide
strings in PathFuncs so we can greatly simplify all the call sites. Instead of
calling "edenToWinName(winstr)", "PathComponent(winstr)" is both more
descriptive and more idiomatic.

To be fair, I'm not entirely a fan of the approach taken in this diff, as this
adds Windows specific code to PathFuncs.h, but I feel that the benefit is too
big to not do that.

Reviewed By: chadaustin

Differential Revision: D23004523

fbshipit-source-id: 3a1507e398a66909773251907db01e06603b91dd
2020-08-10 08:53:13 -07:00
..
test thread ObjectFetchContext to backing store 2020-06-23 10:02:40 -07:00
CMakeLists.txt use the normal PrivHelper.h header file on Windows 2020-05-01 14:01:40 -07:00
FakeBackingStore.cpp get priority from ObjectFetchContext in BackingStore 2020-07-24 08:24:02 -07:00
FakeBackingStore.h get priority from ObjectFetchContext in BackingStore 2020-07-24 08:24:02 -07:00
FakeClock.h Tidy up license headers 2019-10-11 05:28:23 -07:00
FakeFuse.cpp replace some uses of memset 2020-01-31 10:50:48 -08:00
FakeFuse.h Tidy up license headers 2019-10-11 05:28:23 -07:00
FakeObjectStore.cpp use ObjectFetchContext for priority 2020-07-02 12:00:45 -07:00
FakeObjectStore.h use ObjectFetchContext for priority 2020-07-02 12:00:45 -07:00
FakePrivHelper.cpp use the normal PrivHelper.h header file on Windows 2020-05-01 14:01:40 -07:00
FakePrivHelper.h use the normal PrivHelper.h header file on Windows 2020-05-01 14:01:40 -07:00
FakeTreeBuilder.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FakeTreeBuilder.h Tidy up license headers 2019-10-11 05:28:23 -07:00
HgRepo.cpp enable remotenames extension in cpp tests 2020-06-10 22:36:10 -07:00
HgRepo.h add getTreeForManifest 2019-12-09 16:25:27 -08:00
InodeUnloader.h enable the checkout tests on Windows 2020-04-26 21:14:24 -07:00
LoggingFetchContext.h add cause info to objectFetchContext 2020-06-23 10:02:40 -07:00
StoredObject.h fix lock ordering issues in eden tests 2019-10-22 10:39:13 -07:00
TempFile.cpp enable the fs/utils tests in the Windows build 2020-04-29 11:04:21 -07:00
TempFile.h Tidy up license headers 2019-10-11 05:28:23 -07:00
TestChecks.h refactor - move ObjectFetchContext to its own file 2020-06-23 10:02:40 -07:00
TestDispatcher.cpp adding ObjectFetchContext to lookup 2020-06-18 10:40:41 -07:00
TestDispatcher.h adding ObjectFetchContext to lookup 2020-06-18 10:40:41 -07:00
TestMain.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
TestMount.cpp make rename explicit about kernel cache invalidation 2020-07-28 14:47:40 -07:00
TestMount.h win: simplify path management 2020-08-10 08:53:13 -07:00
TestServer.cpp introduce metadata importer 2020-07-10 16:03:32 -07:00
TestServer.h Tidy up license headers 2019-10-11 05:28:23 -07:00
TestUtil.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
TestUtil.h Tidy up license headers 2019-10-11 05:28:23 -07:00