Index: webrtc/test/testsupport/fileutils.h |
diff --git a/webrtc/test/testsupport/fileutils.h b/webrtc/test/testsupport/fileutils.h |
index 2135681380c0fed1cd4510c640e20a9b9cf03f63..170141687de707d00549e9eea6fb82e96763a15b 100644 |
--- a/webrtc/test/testsupport/fileutils.h |
+++ b/webrtc/test/testsupport/fileutils.h |
@@ -14,6 +14,7 @@ |
#define WEBRTC_TEST_TESTSUPPORT_FILEUTILS_H_ |
#include <string> |
+#include <vector> |
namespace webrtc { |
namespace test { |
@@ -66,6 +67,12 @@ std::string ResourcePath(const std::string& name, |
// directory. |
std::string WorkingDir(); |
+// Reads the content of a directory and adds a string in |output| for each found |
+// file or directory. Each entry is a path created by prepending |dir| to the |
+// file/directory name. Returns true if no error occurs. "." and ".." are never |
+// added in |output|. |
+bool ReadDirectory(std::string path, std::vector<std::string>* output); |
+ |
// Creates a directory if it not already exists. |
// Returns true if successful. Will print an error message to stderr and return |
// false if a file with the same name already exists. |