| 67 | } |
| 68 | |
| 69 | void AssertPaths(const std::vector<FileInfo>& infos, |
| 70 | const std::vector<std::string>& expected_paths) { |
| 71 | auto sorted_infos = infos; |
| 72 | SortInfos(&sorted_infos); |
| 73 | std::vector<std::string> paths(sorted_infos.size()); |
| 74 | std::transform(sorted_infos.begin(), sorted_infos.end(), paths.begin(), |
| 75 | [&](const FileInfo& info) { return info.path(); }); |
| 76 | |
| 77 | ASSERT_EQ(paths, expected_paths); |
| 78 | } |
| 79 | |
| 80 | void AssertAllDirs(FileSystem* fs, const std::vector<std::string>& expected_paths) { |
| 81 | AssertPaths(GetAllDirs(fs), expected_paths); |
no test coverage detected