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

Unified Diff: extensions/common/extension_resource_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 | « crypto/nss_util.cc ('k') | extensions/common/file_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_resource_unittest.cc
diff --git a/extensions/common/extension_resource_unittest.cc b/extensions/common/extension_resource_unittest.cc
index fea3f4d5ac35b165507ef7a116c30b92dd630880..499ba92496c69dab670c86205e9a92b76e1e7f0a 100644
--- a/extensions/common/extension_resource_unittest.cc
+++ b/extensions/common/extension_resource_unittest.cc
@@ -50,9 +50,9 @@ TEST(ExtensionResourceTest, ResourcesOutsideOfPath) {
ASSERT_TRUE(temp.CreateUniqueTempDir());
base::FilePath inner_dir = temp.path().AppendASCII("directory");
- ASSERT_TRUE(file_util::CreateDirectory(inner_dir));
+ ASSERT_TRUE(base::CreateDirectory(inner_dir));
base::FilePath sub_dir = inner_dir.AppendASCII("subdir");
- ASSERT_TRUE(file_util::CreateDirectory(sub_dir));
+ ASSERT_TRUE(base::CreateDirectory(sub_dir));
base::FilePath inner_file = inner_dir.AppendASCII("inner");
base::FilePath outer_file = temp.path().AppendASCII("outer");
ASSERT_TRUE(file_util::WriteFile(outer_file, "X", 1));
@@ -128,7 +128,7 @@ TEST(ExtensionResourceTest, CreateWithAllResourcesOnDisk) {
// Create l10n resources (for current locale and its parents).
base::FilePath l10n_path =
temp.path().Append(kLocaleFolder);
- ASSERT_TRUE(file_util::CreateDirectory(l10n_path));
+ ASSERT_TRUE(base::CreateDirectory(l10n_path));
std::vector<std::string> locales;
l10n_util::GetParentLocales(l10n_util::GetApplicationLocale(std::string()),
@@ -137,7 +137,7 @@ TEST(ExtensionResourceTest, CreateWithAllResourcesOnDisk) {
for (size_t i = 0; i < locales.size(); i++) {
base::FilePath make_path;
make_path = l10n_path.AppendASCII(locales[i]);
- ASSERT_TRUE(file_util::CreateDirectory(make_path));
+ ASSERT_TRUE(base::CreateDirectory(make_path));
ASSERT_TRUE(file_util::WriteFile(make_path.AppendASCII(filename),
data.c_str(), data.length()));
}
« no previous file with comments | « crypto/nss_util.cc ('k') | extensions/common/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698