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

Unified Diff: chrome/installer/util/installer_state_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/util/install_util_unittest.cc ('k') | chrome/installer/util/lzma_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installer_state_unittest.cc
diff --git a/chrome/installer/util/installer_state_unittest.cc b/chrome/installer/util/installer_state_unittest.cc
index a085817e1d15e70b0919e792d7b8e6f4dad06706..cf5247406e036de4a7a91ff17953a117fe1dd025 100644
--- a/chrome/installer/util/installer_state_unittest.cc
+++ b/chrome/installer/util/installer_state_unittest.cc
@@ -97,27 +97,27 @@ TEST_F(InstallerStateTest, Delete) {
// Create a Chrome dir
base::FilePath chrome_dir(test_dir_.path());
chrome_dir = chrome_dir.AppendASCII("chrome");
- file_util::CreateDirectory(chrome_dir);
+ base::CreateDirectory(chrome_dir);
ASSERT_TRUE(base::PathExists(chrome_dir));
base::FilePath chrome_dir_1(chrome_dir);
chrome_dir_1 = chrome_dir_1.AppendASCII("1.0.1.0");
- file_util::CreateDirectory(chrome_dir_1);
+ base::CreateDirectory(chrome_dir_1);
ASSERT_TRUE(base::PathExists(chrome_dir_1));
base::FilePath chrome_dir_2(chrome_dir);
chrome_dir_2 = chrome_dir_2.AppendASCII("1.0.2.0");
- file_util::CreateDirectory(chrome_dir_2);
+ base::CreateDirectory(chrome_dir_2);
ASSERT_TRUE(base::PathExists(chrome_dir_2));
base::FilePath chrome_dir_3(chrome_dir);
chrome_dir_3 = chrome_dir_3.AppendASCII("1.0.3.0");
- file_util::CreateDirectory(chrome_dir_3);
+ base::CreateDirectory(chrome_dir_3);
ASSERT_TRUE(base::PathExists(chrome_dir_3));
base::FilePath chrome_dir_4(chrome_dir);
chrome_dir_4 = chrome_dir_4.AppendASCII("1.0.4.0");
- file_util::CreateDirectory(chrome_dir_4);
+ base::CreateDirectory(chrome_dir_4);
ASSERT_TRUE(base::PathExists(chrome_dir_4));
base::FilePath chrome_dll_1(chrome_dir_1);
@@ -163,27 +163,27 @@ TEST_F(InstallerStateTest, DeleteInUsed) {
// Create a Chrome dir
base::FilePath chrome_dir(test_dir_.path());
chrome_dir = chrome_dir.AppendASCII("chrome");
- file_util::CreateDirectory(chrome_dir);
+ base::CreateDirectory(chrome_dir);
ASSERT_TRUE(base::PathExists(chrome_dir));
base::FilePath chrome_dir_1(chrome_dir);
chrome_dir_1 = chrome_dir_1.AppendASCII("1.0.1.0");
- file_util::CreateDirectory(chrome_dir_1);
+ base::CreateDirectory(chrome_dir_1);
ASSERT_TRUE(base::PathExists(chrome_dir_1));
base::FilePath chrome_dir_2(chrome_dir);
chrome_dir_2 = chrome_dir_2.AppendASCII("1.0.2.0");
- file_util::CreateDirectory(chrome_dir_2);
+ base::CreateDirectory(chrome_dir_2);
ASSERT_TRUE(base::PathExists(chrome_dir_2));
base::FilePath chrome_dir_3(chrome_dir);
chrome_dir_3 = chrome_dir_3.AppendASCII("1.0.3.0");
- file_util::CreateDirectory(chrome_dir_3);
+ base::CreateDirectory(chrome_dir_3);
ASSERT_TRUE(base::PathExists(chrome_dir_3));
base::FilePath chrome_dir_4(chrome_dir);
chrome_dir_4 = chrome_dir_4.AppendASCII("1.0.4.0");
- file_util::CreateDirectory(chrome_dir_4);
+ base::CreateDirectory(chrome_dir_4);
ASSERT_TRUE(base::PathExists(chrome_dir_4));
base::FilePath chrome_dll_1(chrome_dir_1);
@@ -284,10 +284,10 @@ TEST_F(InstallerStateTest, Basic) {
EXPECT_FALSE(base::PathExists(old_version_dir));
EXPECT_FALSE(base::PathExists(installer_dir));
- file_util::CreateDirectory(installer_dir);
+ base::CreateDirectory(installer_dir);
EXPECT_TRUE(base::PathExists(new_version_dir));
- file_util::CreateDirectory(old_version_dir);
+ base::CreateDirectory(old_version_dir);
EXPECT_TRUE(base::PathExists(old_version_dir));
// Create a fake chrome.dll key file in the old version directory. This
@@ -534,7 +534,7 @@ TEST_F(InstallerStateTest, RemoveOldVersionDirs) {
// Create the version directories.
for (int i = 0; i < arraysize(version_dirs); i++) {
- file_util::CreateDirectory(version_dirs[i]);
+ base::CreateDirectory(version_dirs[i]);
EXPECT_TRUE(base::PathExists(version_dirs[i]));
}
« no previous file with comments | « chrome/installer/util/install_util_unittest.cc ('k') | chrome/installer/util/lzma_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698