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

Unified Diff: chrome/installer/setup/install_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/common/net/url_fixer_upper_unittest.cc ('k') | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/install_unittest.cc
diff --git a/chrome/installer/setup/install_unittest.cc b/chrome/installer/setup/install_unittest.cc
index 7259256d01c91ffaa5c15ae6dcd3deab9dda826f..2350a14fe638666127e4fb8923a6c78e1d61515f 100644
--- a/chrome/installer/setup/install_unittest.cc
+++ b/chrome/installer/setup/install_unittest.cc
@@ -41,7 +41,7 @@ class CreateVisualElementsManifestTest : public testing::Test {
version_ = Version("0.0.0.0");
version_dir_ = test_dir_.path().AppendASCII(version_.GetString());
- ASSERT_TRUE(file_util::CreateDirectory(version_dir_));
+ ASSERT_TRUE(base::CreateDirectory(version_dir_));
manifest_path_ =
test_dir_.path().Append(installer::kVisualElementsManifest);
@@ -228,7 +228,7 @@ TEST_F(CreateVisualElementsManifestTest, VisualElementsManifestNotCreated) {
// Test that VisualElementsManifest.xml is created with the correct content when
// VisualElements are present.
TEST_F(CreateVisualElementsManifestTest, VisualElementsManifestCreated) {
- ASSERT_TRUE(file_util::CreateDirectory(
+ ASSERT_TRUE(base::CreateDirectory(
version_dir_.Append(installer::kVisualElements)));
ASSERT_TRUE(
installer::CreateVisualElementsManifest(test_dir_.path(), version_));
@@ -330,7 +330,7 @@ TEST_F(InstallShortcutTest, ReplaceAll) {
ASSERT_TRUE(base::win::CreateOrUpdateShortcutLink(
user_quick_launch_shortcut_, dummy_properties,
base::win::SHORTCUT_CREATE_ALWAYS));
- ASSERT_TRUE(file_util::CreateDirectory(user_start_menu_shortcut_.DirName()));
+ ASSERT_TRUE(base::CreateDirectory(user_start_menu_shortcut_.DirName()));
ASSERT_TRUE(base::win::CreateOrUpdateShortcutLink(
user_start_menu_shortcut_, dummy_properties,
base::win::SHORTCUT_CREATE_ALWAYS));
@@ -357,7 +357,7 @@ TEST_F(InstallShortcutTest, ReplaceExisting) {
ASSERT_TRUE(base::win::CreateOrUpdateShortcutLink(
user_desktop_shortcut_, dummy_properties,
base::win::SHORTCUT_CREATE_ALWAYS));
- ASSERT_TRUE(file_util::CreateDirectory(user_start_menu_shortcut_.DirName()));
+ ASSERT_TRUE(base::CreateDirectory(user_start_menu_shortcut_.DirName()));
installer::CreateOrUpdateShortcuts(
chrome_exe_, *product_, *prefs_, installer::CURRENT_USER,
@@ -379,7 +379,7 @@ TEST_F(InstallShortcutTest, CreateIfNoSystemLevelAllSystemShortcutsExist) {
ASSERT_TRUE(base::win::CreateOrUpdateShortcutLink(
system_quick_launch_shortcut_, dummy_properties,
base::win::SHORTCUT_CREATE_ALWAYS));
- ASSERT_TRUE(file_util::CreateDirectory(
+ ASSERT_TRUE(base::CreateDirectory(
system_start_menu_shortcut_.DirName()));
ASSERT_TRUE(base::win::CreateOrUpdateShortcutLink(
system_start_menu_shortcut_, dummy_properties,
« no previous file with comments | « chrome/common/net/url_fixer_upper_unittest.cc ('k') | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698