| Index: util/test/scoped_temp_dir_posix.cc
|
| diff --git a/util/test/scoped_temp_dir_posix.cc b/util/test/scoped_temp_dir_posix.cc
|
| index b7f13376ea458992e5100bfd56f7f477beb0d953..c906d78095f82ee4702a373b5291f0daf8372b24 100644
|
| --- a/util/test/scoped_temp_dir_posix.cc
|
| +++ b/util/test/scoped_temp_dir_posix.cc
|
| @@ -25,6 +25,12 @@
|
| namespace crashpad {
|
| namespace test {
|
|
|
| +void ScopedTempDir::Rename() {
|
| + base::FilePath move_to = CreateTemporaryDirectory();
|
| + PCHECK(rename(path_.value().c_str(), move_to.value().c_str()) == 0);
|
| + path_ = move_to;
|
| +}
|
| +
|
| // static
|
| base::FilePath ScopedTempDir::CreateTemporaryDirectory() {
|
| char dir_template[] = "/tmp/com.googlecode.crashpad.test.XXXXXX";
|
|
|