Chromium Code Reviews| Index: base/test/test_file_util.h |
| diff --git a/base/test/test_file_util.h b/base/test/test_file_util.h |
| index ce0b30259371cd845ab90d45f592a395cb82b5da..3bfd1df5c24ed048dcb273a6ea7ce518f726c68b 100644 |
| --- a/base/test/test_file_util.h |
| +++ b/base/test/test_file_util.h |
| @@ -11,6 +11,7 @@ |
| #include <string> |
| #include "base/compiler_specific.h" |
| +#include "base/file_path.h" |
| class FilePath; |
| @@ -56,6 +57,18 @@ FilePath WStringAsFilePath(const std::wstring& path); |
| bool MakeFileUnreadable(const FilePath& path) WARN_UNUSED_RESULT; |
| bool MakeFileUnwritable(const FilePath& path) WARN_UNUSED_RESULT; |
| +// Saves the current permissions for a path, and restores it on destruction. |
| +class PermissionRestorer { |
| +public: |
|
Paweł Hajdan Jr.
2012/02/28 07:55:55
nit: indent +1
ahendrickson
2012/03/01 15:18:19
Visual Studio strikes again!! $-)
Fixed.
|
| + explicit PermissionRestorer(const FilePath& path); |
| + ~PermissionRestorer(); |
| + |
| +private: |
|
Paweł Hajdan Jr.
2012/02/28 07:55:55
nit: indent +1
ahendrickson
2012/03/01 15:18:19
Done.
|
| + const FilePath path_; |
| + void* info_; |
|
Paweł Hajdan Jr.
2012/02/28 07:55:55
nit: Comment those things, at least |info_| and |l
ahendrickson
2012/03/01 15:18:19
Done.
|
| + size_t length_; |
|
Paweł Hajdan Jr.
2012/02/28 07:55:55
nit: DISALLOW_COPY_AND_ASSIGN
ahendrickson
2012/03/01 15:18:19
Done.
|
| +}; |
| + |
| } // namespace file_util |
| #endif // BASE_TEST_TEST_FILE_UTIL_H_ |