Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1244)

Unified Diff: webrtc/test/testsupport/fileutils.h

Issue 2898753002: ReadDirectory() added in webrtc/test/testsupport/fileutils.h (Closed)
Patch Set: commented lines removed Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/test/testsupport/fileutils.h
diff --git a/webrtc/test/testsupport/fileutils.h b/webrtc/test/testsupport/fileutils.h
index 2135681380c0fed1cd4510c640e20a9b9cf03f63..cf33650b6384c4ba9113d6f9acc471b2ccfd96c1 100644
--- a/webrtc/test/testsupport/fileutils.h
+++ b/webrtc/test/testsupport/fileutils.h
@@ -15,6 +15,14 @@
#include <string>
+#if !defined(WEBRTC_WIN)
+#include <dirent.h>
+#include <sys/stat.h>
+#endif
+
+#include "webrtc/base/fileutils.h"
+#include "webrtc/base/pathutils.h"
+
namespace webrtc {
namespace test {
@@ -71,6 +79,9 @@ std::string WorkingDir();
// false if a file with the same name already exists.
bool CreateDir(const std::string& directory_name);
+// Removes a directory recursively and returns the number of deleted entries.
+size_t RemoveDirRecursively(const rtc::Pathname& dir);
+
// Removes a directory, which must already be empty.
bool RemoveDir(const std::string& directory_name);

Powered by Google App Engine
This is Rietveld 408576698