Reduce dependencies on rtc::FileSystem in FileRotatingStream tests.
Use webrtc::test::OutputPath instead of Filesystem::GetAppTempFolder. Added functions RemoveFile and RemoveDir in the webrtc::test namespace, to replace use of Filesystem::DeleteFolderAndContents. This makes Filesystem::DeleteFolderAndContents unused, to be deleted together with related code in a followup cl. BUG=webrtc:7345 Review-Url: https://codereview.webrtc.org/2872283002 Cr-Commit-Position: refs/heads/master@{#18173}
This commit is contained in:
@ -71,6 +71,12 @@ std::string WorkingDir();
|
||||
// false if a file with the same name already exists.
|
||||
bool CreateDir(const std::string& directory_name);
|
||||
|
||||
// Removes a directory, which must already be empty.
|
||||
bool RemoveDir(const std::string& directory_name);
|
||||
|
||||
// Removes a file.
|
||||
bool RemoveFile(const std::string& file_name);
|
||||
|
||||
// Checks if a file exists.
|
||||
bool FileExists(const std::string& file_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user