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

Unified Diff: chrome/browser/shell_integration_linux_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/browser/shell_integration_linux_unittest.cc
diff --git a/chrome/browser/shell_integration_linux_unittest.cc b/chrome/browser/shell_integration_linux_unittest.cc
index 9bf6ec4e07853705f7e3514f81727ac0d34ee541..309c023a5b4126de886247a1b4944a3f98ea5be6 100644
--- a/chrome/browser/shell_integration_linux_unittest.cc
+++ b/chrome/browser/shell_integration_linux_unittest.cc
@@ -182,7 +182,7 @@ TEST(ShellIntegrationTest, GetExistingShortcutLocations) {
base::FilePath desktop_path = temp_dir.path();
MockEnvironment env;
- ASSERT_TRUE(file_util::CreateDirectory(desktop_path));
+ ASSERT_TRUE(base::CreateDirectory(desktop_path));
ASSERT_FALSE(file_util::WriteFile(
desktop_path.AppendASCII(kTemplateFilename),
"", 0));
@@ -203,7 +203,7 @@ TEST(ShellIntegrationTest, GetExistingShortcutLocations) {
MockEnvironment env;
env.Set("XDG_DATA_HOME", temp_dir.path().value());
- ASSERT_TRUE(file_util::CreateDirectory(apps_path));
+ ASSERT_TRUE(base::CreateDirectory(apps_path));
ASSERT_FALSE(file_util::WriteFile(
apps_path.AppendASCII(kTemplateFilename),
"", 0));
@@ -224,7 +224,7 @@ TEST(ShellIntegrationTest, GetExistingShortcutLocations) {
MockEnvironment env;
env.Set("XDG_DATA_HOME", temp_dir.path().value());
- ASSERT_TRUE(file_util::CreateDirectory(apps_path));
+ ASSERT_TRUE(base::CreateDirectory(apps_path));
ASSERT_TRUE(file_util::WriteFile(
apps_path.AppendASCII(kTemplateFilename),
kNoDisplayDesktopFile, strlen(kNoDisplayDesktopFile)));
@@ -249,12 +249,12 @@ TEST(ShellIntegrationTest, GetExistingShortcutLocations) {
base::FilePath apps_path = temp_dir2.path().AppendASCII("applications");
MockEnvironment env;
- ASSERT_TRUE(file_util::CreateDirectory(desktop_path));
+ ASSERT_TRUE(base::CreateDirectory(desktop_path));
ASSERT_FALSE(file_util::WriteFile(
desktop_path.AppendASCII(kTemplateFilename),
"", 0));
env.Set("XDG_DATA_HOME", temp_dir2.path().value());
- ASSERT_TRUE(file_util::CreateDirectory(apps_path));
+ ASSERT_TRUE(base::CreateDirectory(apps_path));
ASSERT_FALSE(file_util::WriteFile(
apps_path.AppendASCII(kTemplateFilename),
"", 0));
@@ -288,7 +288,7 @@ TEST(ShellIntegrationTest, GetExistingShortcutContents) {
ASSERT_TRUE(file_util::WriteFile(
temp_dir.path().AppendASCII(kTemplateFilename),
kTestData2, strlen(kTestData2)));
- ASSERT_TRUE(file_util::CreateDirectory(
+ ASSERT_TRUE(base::CreateDirectory(
temp_dir.path().AppendASCII("applications")));
ASSERT_TRUE(file_util::WriteFile(
temp_dir.path().AppendASCII("applications")
@@ -308,7 +308,7 @@ TEST(ShellIntegrationTest, GetExistingShortcutContents) {
MockEnvironment env;
env.Set("HOME", temp_dir.path().value());
- ASSERT_TRUE(file_util::CreateDirectory(
+ ASSERT_TRUE(base::CreateDirectory(
temp_dir.path().AppendASCII(".local/share/applications")));
ASSERT_TRUE(file_util::WriteFile(
temp_dir.path().AppendASCII(".local/share/applications")
@@ -328,7 +328,7 @@ TEST(ShellIntegrationTest, GetExistingShortcutContents) {
MockEnvironment env;
env.Set("XDG_DATA_DIRS", temp_dir.path().value());
- ASSERT_TRUE(file_util::CreateDirectory(
+ ASSERT_TRUE(base::CreateDirectory(
temp_dir.path().AppendASCII("applications")));
ASSERT_TRUE(file_util::WriteFile(
temp_dir.path().AppendASCII("applications")
@@ -356,7 +356,7 @@ TEST(ShellIntegrationTest, GetExistingShortcutContents) {
temp_dir1.path().AppendASCII(kTemplateFilename),
kTestData1, strlen(kTestData1)));
// Only create a findable desktop file in the second path.
- ASSERT_TRUE(file_util::CreateDirectory(
+ ASSERT_TRUE(base::CreateDirectory(
temp_dir2.path().AppendASCII("applications")));
ASSERT_TRUE(file_util::WriteFile(
temp_dir2.path().AppendASCII("applications")
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/storage_monitor/media_storage_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698