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

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

Issue 202002: Replaces the windows function CreateDirectory with the CreateDirectory method... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 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 | « chrome/installer/util/helper_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/move_tree_work_item_unittest.cc
===================================================================
--- chrome/installer/util/move_tree_work_item_unittest.cc (revision 25594)
+++ chrome/installer/util/move_tree_work_item_unittest.cc (working copy)
@@ -79,12 +79,12 @@
// Create two level deep source dir
FilePath from_dir1(test_dir_);
from_dir1 = from_dir1.AppendASCII("From_Dir1");
- CreateDirectory(from_dir1.value().c_str(), NULL);
+ file_util::CreateDirectory(from_dir1);
ASSERT_TRUE(file_util::PathExists(from_dir1));
FilePath from_dir2(from_dir1);
from_dir2 = from_dir2.AppendASCII("From_Dir2");
- CreateDirectory(from_dir2.value().c_str(), NULL);
+ file_util::CreateDirectory(from_dir2);
ASSERT_TRUE(file_util::PathExists(from_dir2));
FilePath from_file(from_dir2);
@@ -126,12 +126,12 @@
// Create two level deep source dir
FilePath from_dir1(test_dir_);
from_dir1 = from_dir1.AppendASCII("From_Dir1");
- CreateDirectory(from_dir1.value().c_str(), NULL);
+ file_util::CreateDirectory(from_dir1);
ASSERT_TRUE(file_util::PathExists(from_dir1));
FilePath from_dir2(from_dir1);
from_dir2 = from_dir2.AppendASCII("From_Dir2");
- CreateDirectory(from_dir2.value().c_str(), NULL);
+ file_util::CreateDirectory(from_dir2);
ASSERT_TRUE(file_util::PathExists(from_dir2));
FilePath from_file(from_dir2);
@@ -142,7 +142,7 @@
// Create destination path
FilePath to_dir(test_dir_);
to_dir = to_dir.AppendASCII("To_Dir");
- CreateDirectory(to_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(to_dir);
ASSERT_TRUE(file_util::PathExists(to_dir));
FilePath orig_to_file(to_dir);
@@ -184,7 +184,7 @@
// Create a file inside source dir
FilePath from_dir(test_dir_);
from_dir = from_dir.AppendASCII("From_Dir");
- CreateDirectory(from_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(from_dir);
ASSERT_TRUE(file_util::PathExists(from_dir));
FilePath from_file(from_dir);
@@ -223,7 +223,7 @@
// Create a file inside source dir
FilePath from_dir(test_dir_);
from_dir = from_dir.AppendASCII("From_Dir");
- CreateDirectory(from_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(from_dir);
ASSERT_TRUE(file_util::PathExists(from_dir));
FilePath from_file(from_dir);
@@ -234,7 +234,7 @@
// Create destination path
FilePath to_dir(test_dir_);
to_dir = to_dir.AppendASCII("To_Dir");
- CreateDirectory(to_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(to_dir);
ASSERT_TRUE(file_util::PathExists(to_dir));
FilePath to_file(to_dir);
@@ -269,7 +269,7 @@
// Create a file inside source dir
FilePath from_dir(test_dir_);
from_dir = from_dir.AppendASCII("From_Dir");
- CreateDirectory(from_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(from_dir);
ASSERT_TRUE(file_util::PathExists(from_dir));
FilePath from_file(from_dir);
@@ -280,7 +280,7 @@
// Create an executable in destination path by copying ourself to it.
FilePath to_dir(test_dir_);
to_dir = to_dir.AppendASCII("To_Dir");
- CreateDirectory(to_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(to_dir);
ASSERT_TRUE(file_util::PathExists(to_dir));
wchar_t exe_full_path_str[MAX_PATH];
@@ -330,7 +330,7 @@
// Create an executable for source by copying ourself to a new source dir.
FilePath from_dir(test_dir_);
from_dir = from_dir.AppendASCII("From_Dir");
- CreateDirectory(from_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(from_dir);
ASSERT_TRUE(file_util::PathExists(from_dir));
wchar_t exe_full_path_str[MAX_PATH];
@@ -344,7 +344,7 @@
// Create a destination source dir and generate destination file name.
FilePath to_dir(test_dir_);
to_dir = to_dir.AppendASCII("To_Dir");
- CreateDirectory(to_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(to_dir);
ASSERT_TRUE(file_util::PathExists(to_dir));
FilePath to_file(to_dir);
« no previous file with comments | « chrome/installer/util/helper_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698