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

Unified Diff: chrome/installer/util/delete_after_reboot_helper_unittest.cc

Issue 99923002: Move temp file functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « chrome/installer/test/upgrade_test.cc ('k') | chrome/installer/util/installer_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/delete_after_reboot_helper_unittest.cc
diff --git a/chrome/installer/util/delete_after_reboot_helper_unittest.cc b/chrome/installer/util/delete_after_reboot_helper_unittest.cc
index c97cecdfa41d1740119b992fb40ea95fab889c73..d5a65812fab60805c4c3bcf6e22e35d3e0c56aa6 100644
--- a/chrome/installer/util/delete_after_reboot_helper_unittest.cc
+++ b/chrome/installer/util/delete_after_reboot_helper_unittest.cc
@@ -24,13 +24,12 @@ class DeleteAfterRebootHelperTest : public testing::Test {
protected:
virtual void SetUp() {
// Create a temporary directory for testing and fill it with some files.
- std::wstring no_prefix;
- file_util::CreateNewTempDirectory(no_prefix, &temp_dir_);
- file_util::CreateTemporaryFileInDir(temp_dir_, &temp_file_);
+ base::CreateNewTempDirectory(base::FilePath::StringType(), &temp_dir_);
+ base::CreateTemporaryFileInDir(temp_dir_, &temp_file_);
temp_subdir_ = temp_dir_.Append(L"subdir");
file_util::CreateDirectory(temp_subdir_);
- file_util::CreateTemporaryFileInDir(temp_subdir_, &temp_subdir_file_);
+ base::CreateTemporaryFileInDir(temp_subdir_, &temp_subdir_file_);
// Copy the current pending moves and then clear it if we can:
if (IsUserAnAdmin()) {
« no previous file with comments | « chrome/installer/test/upgrade_test.cc ('k') | chrome/installer/util/installer_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698