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

Unified Diff: chrome/browser/extensions/api/media_galleries/media_galleries_apitest.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: chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc
index 9cbd5f43cfb86e23ea7d5ec099f8ee8426bcd931..a65d24f360d40718a02d4bd75a7171488cdfcfce 100644
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc
@@ -359,9 +359,8 @@ class MediaGalleriesPlatformAppBrowserTest : public PlatformAppBrowserTest {
&xml_contents, 0, std::string("$path2"), in_both_jpg.value());
base::FilePath album_xml = iphoto_data_root.AppendASCII("AlbumData.xml");
- ASSERT_NE(-1, file_util::WriteFile(album_xml,
- xml_contents.c_str(),
- xml_contents.size()));
+ ASSERT_NE(-1, base::WriteFile(album_xml,
+ xml_contents.c_str(), xml_contents.size()));
}
#endif // defined(OS_MACOSX)
@@ -558,17 +557,17 @@ IN_PROC_BROWSER_TEST_F(MediaGalleriesPlatformAppBrowserTest, MAYBE_Scan) {
dummy_data.resize(1);
ASSERT_TRUE(base::CreateDirectory(scan_root.path().AppendASCII("a/b")));
ASSERT_EQ(static_cast<int>(dummy_data.size()),
- file_util::WriteFile(scan_root.path().AppendASCII("a/b/c.jpg"),
- dummy_data.c_str(), dummy_data.size()));
+ base::WriteFile(scan_root.path().AppendASCII("a/b/c.jpg"),
+ dummy_data.c_str(), dummy_data.size()));
ASSERT_TRUE(base::CreateDirectory(scan_root.path().AppendASCII("a/d")));
dummy_data.resize(201 * 1024); // 200k is the min size for the folder finder.
ASSERT_EQ(static_cast<int>(dummy_data.size()),
- file_util::WriteFile(scan_root.path().AppendASCII("a/d/e.txt"),
- dummy_data.c_str(), dummy_data.size()));
+ base::WriteFile(scan_root.path().AppendASCII("a/d/e.txt"),
+ dummy_data.c_str(), dummy_data.size()));
ASSERT_TRUE(base::CreateDirectory(scan_root.path().AppendASCII("f")));
ASSERT_EQ(static_cast<int>(dummy_data.size()),
- file_util::WriteFile(scan_root.path().AppendASCII("f/g.jpg"),
- dummy_data.c_str(), dummy_data.size()));
+ base::WriteFile(scan_root.path().AppendASCII("f/g.jpg"),
+ dummy_data.c_str(), dummy_data.size()));
ASSERT_TRUE(RunMediaGalleriesTest("scan")) << message_;
}

Powered by Google App Engine
This is Rietveld 408576698