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

Unified Diff: chrome/installer/util/delete_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
Index: chrome/installer/util/delete_tree_work_item_unittest.cc
diff --git a/chrome/installer/util/delete_tree_work_item_unittest.cc b/chrome/installer/util/delete_tree_work_item_unittest.cc
index 91b7c8a8897f7179642446f800c644f5cc6366c4..069f772675f30ee6d3f93a03084bfc8f38e3ad40 100644
--- a/chrome/installer/util/delete_tree_work_item_unittest.cc
+++ b/chrome/installer/util/delete_tree_work_item_unittest.cc
@@ -47,17 +47,17 @@ TEST_F(DeleteTreeWorkItemTest, DeleteTreeNoKeyPath) {
// Create tree to be deleted.
base::FilePath dir_name_delete(temp_dir_.path());
dir_name_delete = dir_name_delete.AppendASCII("to_be_delete");
- file_util::CreateDirectory(dir_name_delete);
+ base::CreateDirectory(dir_name_delete);
ASSERT_TRUE(base::PathExists(dir_name_delete));
base::FilePath dir_name_delete_1(dir_name_delete);
dir_name_delete_1 = dir_name_delete_1.AppendASCII("1");
- file_util::CreateDirectory(dir_name_delete_1);
+ base::CreateDirectory(dir_name_delete_1);
ASSERT_TRUE(base::PathExists(dir_name_delete_1));
base::FilePath dir_name_delete_2(dir_name_delete);
dir_name_delete_2 = dir_name_delete_2.AppendASCII("2");
- file_util::CreateDirectory(dir_name_delete_2);
+ base::CreateDirectory(dir_name_delete_2);
ASSERT_TRUE(base::PathExists(dir_name_delete_2));
base::FilePath file_name_delete_1(dir_name_delete_1);
@@ -99,17 +99,17 @@ TEST_F(DeleteTreeWorkItemTest, DeleteTree) {
// Create tree to be deleted
base::FilePath dir_name_delete(temp_dir_.path());
dir_name_delete = dir_name_delete.AppendASCII("to_be_delete");
- file_util::CreateDirectory(dir_name_delete);
+ base::CreateDirectory(dir_name_delete);
ASSERT_TRUE(base::PathExists(dir_name_delete));
base::FilePath dir_name_delete_1(dir_name_delete);
dir_name_delete_1 = dir_name_delete_1.AppendASCII("1");
- file_util::CreateDirectory(dir_name_delete_1);
+ base::CreateDirectory(dir_name_delete_1);
ASSERT_TRUE(base::PathExists(dir_name_delete_1));
base::FilePath dir_name_delete_2(dir_name_delete);
dir_name_delete_2 = dir_name_delete_2.AppendASCII("2");
- file_util::CreateDirectory(dir_name_delete_2);
+ base::CreateDirectory(dir_name_delete_2);
ASSERT_TRUE(base::PathExists(dir_name_delete_2));
base::FilePath file_name_delete_1(dir_name_delete_1);
@@ -149,17 +149,17 @@ TEST_F(DeleteTreeWorkItemTest, DeleteTreeInUse) {
// Create tree to be deleted
base::FilePath dir_name_delete(temp_dir_.path());
dir_name_delete = dir_name_delete.AppendASCII("to_be_delete");
- file_util::CreateDirectory(dir_name_delete);
+ base::CreateDirectory(dir_name_delete);
ASSERT_TRUE(base::PathExists(dir_name_delete));
base::FilePath dir_name_delete_1(dir_name_delete);
dir_name_delete_1 = dir_name_delete_1.AppendASCII("1");
- file_util::CreateDirectory(dir_name_delete_1);
+ base::CreateDirectory(dir_name_delete_1);
ASSERT_TRUE(base::PathExists(dir_name_delete_1));
base::FilePath dir_name_delete_2(dir_name_delete);
dir_name_delete_2 = dir_name_delete_2.AppendASCII("2");
- file_util::CreateDirectory(dir_name_delete_2);
+ base::CreateDirectory(dir_name_delete_2);
ASSERT_TRUE(base::PathExists(dir_name_delete_2));
base::FilePath file_name_delete_1(dir_name_delete_1);

Powered by Google App Engine
This is Rietveld 408576698