A RAII object that creates a temporary directory for testing. More...
#include "test/scoped_temp_dir.h"
Public Member Functions | |
| ScopedTempDir (const ScopedTempDir &)=delete | |
| ScopedTempDir & | operator= (const ScopedTempDir &)=delete |
| const base::FilePath & | path () const |
| Returns the path of the temporary directory. | |
| void | Rename () |
| Moves the temporary directory to a new temporary location. | |
A RAII object that creates a temporary directory for testing.
Upon construction, a temporary directory will be created. Failure to create the directory is fatal. On destruction, the directory and all its contents will be removed.
|
inline |
Returns the path of the temporary directory.