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:
nisse
2017-05-17 01:08:35 -07:00
committed by Commit bot
parent 98e186c71c
commit dd7b5f32b5
4 changed files with 55 additions and 21 deletions

View File

@ -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);