| 98 | } |
| 99 | |
| 100 | void GetSortedInfos(FileSystem* fs, FileSelector s, std::vector<FileInfo>& infos) { |
| 101 | ASSERT_OK_AND_ASSIGN(infos, fs->GetFileInfo(s)); |
| 102 | // Clear mtime & size for easier testing. |
| 103 | for_each(infos.begin(), infos.end(), [](FileInfo& info) { |
| 104 | info.set_mtime(kNoTime); |
| 105 | info.set_size(kNoSize); |
| 106 | }); |
| 107 | SortInfos(&infos); |
| 108 | } |
| 109 | |
| 110 | }; // namespace |
| 111 |
no test coverage detected