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

Unified Diff: extensions/common/extension_resource_unittest.cc

Issue 184563006: Move WriteFile and WriteFileDescriptor from file_util to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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: extensions/common/extension_resource_unittest.cc
diff --git a/extensions/common/extension_resource_unittest.cc b/extensions/common/extension_resource_unittest.cc
index 499ba92496c69dab670c86205e9a92b76e1e7f0a..eb16e5bb28345803b09dfb88ab1ea08e40d42037 100644
--- a/extensions/common/extension_resource_unittest.cc
+++ b/extensions/common/extension_resource_unittest.cc
@@ -55,8 +55,8 @@ TEST(ExtensionResourceTest, ResourcesOutsideOfPath) {
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));
- ASSERT_TRUE(file_util::WriteFile(inner_file, "X", 1));
+ ASSERT_TRUE(base::WriteFile(outer_file, "X", 1));
+ ASSERT_TRUE(base::WriteFile(inner_file, "X", 1));
std::string extension_id = id_util::GenerateId("test");
#if defined(OS_POSIX)
@@ -123,7 +123,7 @@ TEST(ExtensionResourceTest, CreateWithAllResourcesOnDisk) {
const char* filename = "res.ico";
base::FilePath root_resource = temp.path().AppendASCII(filename);
std::string data = "some foo";
- ASSERT_TRUE(file_util::WriteFile(root_resource, data.c_str(), data.length()));
+ ASSERT_TRUE(base::WriteFile(root_resource, data.c_str(), data.length()));
// Create l10n resources (for current locale and its parents).
base::FilePath l10n_path =
@@ -138,7 +138,7 @@ TEST(ExtensionResourceTest, CreateWithAllResourcesOnDisk) {
base::FilePath make_path;
make_path = l10n_path.AppendASCII(locales[i]);
ASSERT_TRUE(base::CreateDirectory(make_path));
- ASSERT_TRUE(file_util::WriteFile(make_path.AppendASCII(filename),
+ ASSERT_TRUE(base::WriteFile(make_path.AppendASCII(filename),
data.c_str(), data.length()));
}
« no previous file with comments | « extensions/browser/value_store/leveldb_value_store_unittest.cc ('k') | extensions/common/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698