diff options
Diffstat (limited to 'src/test.cc')
-rw-r--r-- | src/test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test.cc b/src/test.cc index 53bd798..2fbb4df 100644 --- a/src/test.cc +++ b/src/test.cc @@ -93,6 +93,7 @@ void VirtualFileSystem::Create(const string& path, int time, const string& contents) { files_[path].mtime = time; files_[path].contents = contents; + files_created_.insert(path); } TimeStamp VirtualFileSystem::Stat(const string& path) { @@ -102,6 +103,11 @@ TimeStamp VirtualFileSystem::Stat(const string& path) { return 0; } +bool VirtualFileSystem::WriteFile(const string& path, const string& contents) { + Create(path, 0, contents); + return true; +} + bool VirtualFileSystem::MakeDir(const string& path) { directories_made_.push_back(path); return true; // success |