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

Unified Diff: chrome/installer/util/create_dir_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
Index: chrome/installer/util/create_dir_work_item_unittest.cc
===================================================================
--- chrome/installer/util/create_dir_work_item_unittest.cc (revision 25594)
+++ chrome/installer/util/create_dir_work_item_unittest.cc (working copy)
@@ -39,7 +39,7 @@
TEST_F(CreateDirWorkItemTest, CreatePath) {
FilePath parent_dir(test_dir_);
parent_dir = parent_dir.AppendASCII("a");
- CreateDirectory(parent_dir.value().c_str(), NULL);
+ file_util::CreateDirectory(parent_dir);
ASSERT_TRUE(file_util::PathExists(parent_dir));
FilePath top_dir_to_create(parent_dir);
@@ -66,7 +66,7 @@
TEST_F(CreateDirWorkItemTest, CreateExistingPath) {
FilePath dir_to_create(test_dir_);
dir_to_create = dir_to_create.AppendASCII("aa");
- CreateDirectory(dir_to_create.value().c_str(), NULL);
+ file_util::CreateDirectory(dir_to_create);
ASSERT_TRUE(file_util::PathExists(dir_to_create));
scoped_ptr<CreateDirWorkItem> work_item(
@@ -103,7 +103,7 @@
// Create another directory under dir_to_create_2
FilePath dir_to_create_4(dir_to_create_2);
dir_to_create_4 = dir_to_create_4.AppendASCII("ddd");
- CreateDirectory(dir_to_create_4.value().c_str(), NULL);
+ file_util::CreateDirectory(dir_to_create_4);
ASSERT_TRUE(file_util::PathExists(dir_to_create_4));
work_item->Rollback();
« no previous file with comments | « chrome/installer/util/copy_tree_work_item_unittest.cc ('k') | chrome/installer/util/delete_tree_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698