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

Unified Diff: util/test/scoped_temp_dir_posix.cc

Issue 867363003: win: Implementation of CrashReportDatabase for Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 years, 10 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 | « util/test/scoped_temp_dir.h ('k') | util/test/scoped_temp_dir_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
« no previous file with comments | « util/test/scoped_temp_dir.h ('k') | util/test/scoped_temp_dir_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698