@@ -43,7 +43,8 @@ class TestingFileCollector : public FileCollector {
43
43
TEST (FileCollectorTest, addFile) {
44
44
TempDir root (" add_file_root" , /* Unique*/ true );
45
45
std::string root_fs (root.path ());
46
- TestingFileCollector FileCollector (root_fs, root_fs);
46
+ TestingFileCollector FileCollector (root_fs, root_fs,
47
+ vfs::getRealFileSystem ());
47
48
48
49
FileCollector.addFile (" /path/to/a" );
49
50
FileCollector.addFile (" /path/to/b" );
@@ -77,7 +78,8 @@ TEST(FileCollectorTest, addDirectory) {
77
78
TempFile c (ccc.str ());
78
79
79
80
std::string root_fs (file_root.path ());
80
- TestingFileCollector FileCollector (root_fs, root_fs);
81
+ TestingFileCollector FileCollector (root_fs, root_fs,
82
+ vfs::getRealFileSystem ());
81
83
82
84
FileCollector.addDirectory (file_root.path ());
83
85
@@ -105,7 +107,8 @@ TEST(FileCollectorTest, copyFiles) {
105
107
// Create file collector and add files.
106
108
TempDir root (" copy_files_root" , /* Unique*/ true );
107
109
std::string root_fs (root.path ());
108
- TestingFileCollector FileCollector (root_fs, root_fs);
110
+ TestingFileCollector FileCollector (root_fs, root_fs,
111
+ vfs::getRealFileSystem ());
109
112
FileCollector.addFile (a.path ());
110
113
FileCollector.addFile (b.path ());
111
114
FileCollector.addFile (c.path ());
@@ -133,7 +136,8 @@ TEST(FileCollectorTest, recordAndConstructDirectory) {
133
136
// Create file collector and add files.
134
137
TempDir root (" copy_files_root" , /* Unique*/ true );
135
138
std::string root_fs (root.path ());
136
- TestingFileCollector FileCollector (root_fs, root_fs);
139
+ TestingFileCollector FileCollector (root_fs, root_fs,
140
+ vfs::getRealFileSystem ());
137
141
FileCollector.addFile (a.path ());
138
142
139
143
// The empty directory isn't seen until we add it.
@@ -169,7 +173,8 @@ TEST(FileCollectorTest, recordVFSAccesses) {
169
173
// Create file collector and add files.
170
174
TempDir root (" copy_files_root" , /* Unique*/ true );
171
175
std::string root_fs (root.path ());
172
- auto Collector = std::make_shared<TestingFileCollector>(root_fs, root_fs);
176
+ auto Collector = std::make_shared<TestingFileCollector>(
177
+ root_fs, root_fs, vfs::getRealFileSystem ());
173
178
auto VFS =
174
179
FileCollector::createCollectorVFS (vfs::getRealFileSystem (), Collector);
175
180
VFS->status (a.path ());
@@ -216,7 +221,8 @@ TEST(FileCollectorTest, Symlinks) {
216
221
// Root where files are copied to.
217
222
TempDir reproducer_root (" reproducer_root" , /* Unique*/ true );
218
223
std::string root_fs (reproducer_root.path ());
219
- TestingFileCollector FileCollector (root_fs, root_fs);
224
+ TestingFileCollector FileCollector (root_fs, root_fs,
225
+ vfs::getRealFileSystem ());
220
226
221
227
// Add all the files to the collector.
222
228
FileCollector.addFile (a.path ());
@@ -264,7 +270,8 @@ TEST(FileCollectorTest, recordVFSSymlinkAccesses) {
264
270
// Create file collector and add files.
265
271
TempDir root (" copy_files_root" , true );
266
272
std::string root_fs (root.path ());
267
- auto Collector = std::make_shared<TestingFileCollector>(root_fs, root_fs);
273
+ auto Collector = std::make_shared<TestingFileCollector>(
274
+ root_fs, root_fs, vfs::getRealFileSystem ());
268
275
auto VFS =
269
276
FileCollector::createCollectorVFS (vfs::getRealFileSystem (), Collector);
270
277
SmallString<256 > Output;
0 commit comments