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

Unified Diff: tools/gn/exec_process_unittest.cc

Issue 2317123003: misc files R-U: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 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 | « third_party/zlib/google/zip_unittest.cc ('k') | tools/gn/filesystem_utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/exec_process_unittest.cc
diff --git a/tools/gn/exec_process_unittest.cc b/tools/gn/exec_process_unittest.cc
index 70a208c923d48a187e87346d3aa31ff01554eb9c..51ce7b753ba2905805d603db66bc04e12d4eee20 100644
--- a/tools/gn/exec_process_unittest.cc
+++ b/tools/gn/exec_process_unittest.cc
@@ -26,6 +26,7 @@ bool ExecPython(const std::string& command,
std::string* std_err,
int* exit_code) {
base::ScopedTempDir temp_dir;
+ CHECK(temp_dir.CreateUniqueTempDir());
base::CommandLine::StringVector args;
#if defined(OS_WIN)
args.push_back(L"python");
@@ -36,8 +37,8 @@ bool ExecPython(const std::string& command,
args.push_back("-c");
args.push_back(command);
#endif
- return ExecProcess(
- base::CommandLine(args), temp_dir.path(), std_out, std_err, exit_code);
+ return ExecProcess(base::CommandLine(args), temp_dir.GetPath(), std_out,
+ std_err, exit_code);
}
} // namespace
« no previous file with comments | « third_party/zlib/google/zip_unittest.cc ('k') | tools/gn/filesystem_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698