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

Unified Diff: webrtc/base/fileutils.h

Issue 2898753002: ReadDirectory() added in webrtc/test/testsupport/fileutils.h (Closed)
Patch Set: comments from Niels addressed 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
« no previous file with comments | « no previous file | webrtc/base/fileutils.cc » ('j') | webrtc/test/testsupport/fileutils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/fileutils.h
diff --git a/webrtc/base/fileutils.h b/webrtc/base/fileutils.h
index cddf2dc367f45a719add0b1a71ea497769e64eaa..4a6a171a7fed79cfaa1fc49adba96088281a2281 100644
--- a/webrtc/base/fileutils.h
+++ b/webrtc/base/fileutils.h
@@ -30,14 +30,9 @@ namespace rtc {
class FileStream;
class Pathname;
-//////////////////////////
-// Directory Iterator //
-//////////////////////////
-
// A DirectoryIterator is created with a given directory. It originally points
// to the first file in the directory, and can be advanecd with Next(). This
// allows you to get information about each file.
-
class DirectoryIterator {
friend class Filesystem;
public:
@@ -46,20 +41,19 @@ class DirectoryIterator {
// Destructor
virtual ~DirectoryIterator();
- // Starts traversing a directory
- // dir is the directory to traverse
- // returns true if the directory exists and is valid
- // The iterator will point to the first entry in the directory
- virtual bool Iterate(const Pathname &path);
+ // Starts traversing a directory and returns true if the directory exists and
+ // is valid. |dir| is the directory to traverse. The iterator will point to
+ // the first entry in the directory.
+ virtual bool Iterate(const Pathname &dir);
- // Advances to the next file
- // returns true if there were more files in the directory.
+ // Advances to the next file and returns true if there were more files in the
+ // directory.
virtual bool Next();
- // returns true if the file currently pointed to is a directory
+ // Returns true if the file currently pointed to is a directory.
virtual bool IsDirectory() const;
- // returns the name of the file currently pointed to
+ // Returns the name of the file currently pointed to.
virtual std::string Name() const;
private:
« no previous file with comments | « no previous file | webrtc/base/fileutils.cc » ('j') | webrtc/test/testsupport/fileutils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698