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

Unified Diff: base/mac/mac_util_unittest.mm

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 | « base/files/scoped_temp_dir.cc ('k') | base/path_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util_unittest.mm
diff --git a/base/mac/mac_util_unittest.mm b/base/mac/mac_util_unittest.mm
index 15ceca3a04a51890ffa71077fbe49a124cb0f2e3..1b56814abec936b9d605a446de25a86ed28c380b 100644
--- a/base/mac/mac_util_unittest.mm
+++ b/base/mac/mac_util_unittest.mm
@@ -220,7 +220,7 @@ TEST_F(MacUtilTest, TestRemoveQuarantineAttribute) {
ScopedTempDir temp_dir_;
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
FilePath dummy_folder_path = temp_dir_.path().Append("DummyFolder");
- ASSERT_TRUE(file_util::CreateDirectory(dummy_folder_path));
+ ASSERT_TRUE(base::CreateDirectory(dummy_folder_path));
const char* quarantine_str = "0000;4b392bb2;Chromium;|org.chromium.Chromium";
const char* file_path_str = dummy_folder_path.value().c_str();
EXPECT_EQ(0, setxattr(file_path_str, "com.apple.quarantine",
@@ -238,7 +238,7 @@ TEST_F(MacUtilTest, TestRemoveQuarantineAttributeTwice) {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
FilePath dummy_folder_path = temp_dir_.path().Append("DummyFolder");
const char* file_path_str = dummy_folder_path.value().c_str();
- ASSERT_TRUE(file_util::CreateDirectory(dummy_folder_path));
+ ASSERT_TRUE(base::CreateDirectory(dummy_folder_path));
EXPECT_EQ(-1, getxattr(file_path_str, "com.apple.quarantine", NULL, 0, 0, 0));
// No quarantine attribute to begin with, but RemoveQuarantineAttribute still
// succeeds because in the end the folder still doesn't have the quarantine
« no previous file with comments | « base/files/scoped_temp_dir.cc ('k') | base/path_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698