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

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

Issue 100573002: Move directory creation 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/setup/setup_util_unittest.cc ('k') | chrome/installer/util/create_dir_work_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/copy_tree_work_item_unittest.cc
diff --git a/chrome/installer/util/copy_tree_work_item_unittest.cc b/chrome/installer/util/copy_tree_work_item_unittest.cc
index 3d6fb047c20ca31659f138381298b3b527226084..72bdc567172e6bb3d685e746d0a618427cff055e 100644
--- a/chrome/installer/util/copy_tree_work_item_unittest.cc
+++ b/chrome/installer/util/copy_tree_work_item_unittest.cc
@@ -84,7 +84,7 @@ TEST_F(CopyTreeWorkItemTest, CopyFile) {
// Create destination path
base::FilePath dir_name_to(test_dir_.path());
dir_name_to = dir_name_to.AppendASCII("Copy_To_Subdir");
- file_util::CreateDirectory(dir_name_to);
+ base::CreateDirectory(dir_name_to);
ASSERT_TRUE(base::PathExists(dir_name_to));
base::FilePath file_name_to(dir_name_to);
@@ -124,7 +124,7 @@ TEST_F(CopyTreeWorkItemTest, CopyFileOverwrite) {
// Create destination file
base::FilePath dir_name_to(test_dir_.path());
dir_name_to = dir_name_to.AppendASCII("Copy_To_Subdir");
- file_util::CreateDirectory(dir_name_to);
+ base::CreateDirectory(dir_name_to);
ASSERT_TRUE(base::PathExists(dir_name_to));
base::FilePath file_name_to(dir_name_to);
@@ -194,7 +194,7 @@ TEST_F(CopyTreeWorkItemTest, CopyFileSameContent) {
// Create destination file
base::FilePath dir_name_to(test_dir_.path());
dir_name_to = dir_name_to.AppendASCII("Copy_To_Subdir");
- file_util::CreateDirectory(dir_name_to);
+ base::CreateDirectory(dir_name_to);
ASSERT_TRUE(base::PathExists(dir_name_to));
base::FilePath file_name_to(dir_name_to);
@@ -275,7 +275,7 @@ TEST_F(CopyTreeWorkItemTest, CopyFileAndCleanup) {
// Create destination file
base::FilePath dir_name_to(test_dir_.path());
dir_name_to = dir_name_to.AppendASCII("Copy_To_Subdir");
- file_util::CreateDirectory(dir_name_to);
+ base::CreateDirectory(dir_name_to);
ASSERT_TRUE(base::PathExists(dir_name_to));
base::FilePath file_name_to(dir_name_to);
@@ -331,7 +331,7 @@ TEST_F(CopyTreeWorkItemTest, CopyFileInUse) {
base::FilePath dir_name_to(test_dir_.path());
dir_name_to = dir_name_to.AppendASCII("Copy_To_Subdir");
- file_util::CreateDirectory(dir_name_to);
+ base::CreateDirectory(dir_name_to);
ASSERT_TRUE(base::PathExists(dir_name_to));
base::FilePath file_name_to(dir_name_to);
@@ -410,7 +410,7 @@ TEST_F(CopyTreeWorkItemTest, NewNameAndCopyTest) {
base::FilePath dir_name_to(test_dir_.path());
dir_name_to = dir_name_to.AppendASCII("Copy_To_Subdir");
- file_util::CreateDirectory(dir_name_to);
+ base::CreateDirectory(dir_name_to);
ASSERT_TRUE(base::PathExists(dir_name_to));
base::FilePath file_name_to(dir_name_to), alternate_to(dir_name_to);
@@ -521,7 +521,7 @@ TEST_F(CopyTreeWorkItemTest, DISABLED_IfNotPresentTest) {
base::FilePath dir_name_to(test_dir_.path());
dir_name_to = dir_name_to.AppendASCII("Copy_To_Subdir");
- file_util::CreateDirectory(dir_name_to);
+ base::CreateDirectory(dir_name_to);
ASSERT_TRUE(base::PathExists(dir_name_to));
base::FilePath file_name_to(dir_name_to);
file_name_to = file_name_to.AppendASCII("File_To");
@@ -603,7 +603,7 @@ TEST_F(CopyTreeWorkItemTest, DISABLED_CopyFileInUseAndCleanup) {
base::FilePath dir_name_to(test_dir_.path());
dir_name_to = dir_name_to.AppendASCII("Copy_To_Subdir");
- file_util::CreateDirectory(dir_name_to);
+ base::CreateDirectory(dir_name_to);
ASSERT_TRUE(base::PathExists(dir_name_to));
base::FilePath file_name_to(dir_name_to);
@@ -666,17 +666,17 @@ TEST_F(CopyTreeWorkItemTest, DISABLED_CopyTree) {
// Create source tree
base::FilePath dir_name_from(test_dir_.path());
dir_name_from = dir_name_from.AppendASCII("from");
- file_util::CreateDirectory(dir_name_from);
+ base::CreateDirectory(dir_name_from);
ASSERT_TRUE(base::PathExists(dir_name_from));
base::FilePath dir_name_from_1(dir_name_from);
dir_name_from_1 = dir_name_from_1.AppendASCII("1");
- file_util::CreateDirectory(dir_name_from_1);
+ base::CreateDirectory(dir_name_from_1);
ASSERT_TRUE(base::PathExists(dir_name_from_1));
base::FilePath dir_name_from_2(dir_name_from);
dir_name_from_2 = dir_name_from_2.AppendASCII("2");
- file_util::CreateDirectory(dir_name_from_2);
+ base::CreateDirectory(dir_name_from_2);
ASSERT_TRUE(base::PathExists(dir_name_from_2));
base::FilePath file_name_from_1(dir_name_from_1);
« no previous file with comments | « chrome/installer/setup/setup_util_unittest.cc ('k') | chrome/installer/util/create_dir_work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698