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..9fb0b1e8f544959fd15e765bb68d8a81cd6e25e5 100644 |
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc |
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc |
@@ -359,7 +359,7 @@ 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, |
+ ASSERT_NE(-1, base::WriteFile(album_xml, |
xml_contents.c_str(), |
viettrungluu
2014/02/28 21:47:24
nit: fix indentation
|
xml_contents.size())); |
} |
@@ -558,16 +558,16 @@ 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"), |
+ base::WriteFile(scan_root.path().AppendASCII("a/b/c.jpg"), |
dummy_data.c_str(), dummy_data.size())); |
viettrungluu
2014/02/28 21:47:24
"
|
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"), |
+ base::WriteFile(scan_root.path().AppendASCII("a/d/e.txt"), |
dummy_data.c_str(), dummy_data.size())); |
viettrungluu
2014/02/28 21:47:24
"
|
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"), |
+ base::WriteFile(scan_root.path().AppendASCII("f/g.jpg"), |
dummy_data.c_str(), dummy_data.size())); |
viettrungluu
2014/02/28 21:47:24
"
|
ASSERT_TRUE(RunMediaGalleriesTest("scan")) << message_; |