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

Unified Diff: chrome/installer/util/shell_util_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
« no previous file with comments | « chrome/installer/util/self_cleaning_temp_dir_unittest.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/shell_util_unittest.cc
diff --git a/chrome/installer/util/shell_util_unittest.cc b/chrome/installer/util/shell_util_unittest.cc
index be5362285eef85fc9c4eb005c39f8a164ff5690d..03d24671bb2f959c4c78f6728b7be0b9904cb762 100644
--- a/chrome/installer/util/shell_util_unittest.cc
+++ b/chrome/installer/util/shell_util_unittest.cc
@@ -45,16 +45,16 @@ class ShellUtilShortcutTest : public testing::Test {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
chrome_exe_ = temp_dir_.path().Append(installer::kChromeExe);
- EXPECT_EQ(0, file_util::WriteFile(chrome_exe_, "", 0));
+ EXPECT_EQ(0, base::WriteFile(chrome_exe_, "", 0));
manganese_exe_ = temp_dir_.path().Append(kManganeseExe);
- EXPECT_EQ(0, file_util::WriteFile(manganese_exe_, "", 0));
+ EXPECT_EQ(0, base::WriteFile(manganese_exe_, "", 0));
iron_exe_ = temp_dir_.path().Append(kIronExe);
- EXPECT_EQ(0, file_util::WriteFile(iron_exe_, "", 0));
+ EXPECT_EQ(0, base::WriteFile(iron_exe_, "", 0));
other_ico_ = temp_dir_.path().Append(kOtherIco);
- EXPECT_EQ(0, file_util::WriteFile(other_ico_, "", 0));
+ EXPECT_EQ(0, base::WriteFile(other_ico_, "", 0));
ASSERT_TRUE(fake_user_desktop_.CreateUniqueTempDir());
ASSERT_TRUE(fake_common_desktop_.CreateUniqueTempDir());
@@ -773,7 +773,7 @@ TEST_F(ShellUtilShortcutTest, DontRemoveChromeShortcutIfPointsToAnotherChrome) {
ASSERT_TRUE(other_exe_dir.CreateUniqueTempDir());
base::FilePath other_chrome_exe =
other_exe_dir.path().Append(installer::kChromeExe);
- EXPECT_EQ(0, file_util::WriteFile(other_chrome_exe, "", 0));
+ EXPECT_EQ(0, base::WriteFile(other_chrome_exe, "", 0));
test_properties_.set_target(other_chrome_exe);
ASSERT_TRUE(ShellUtil::CreateOrUpdateShortcut(
« no previous file with comments | « chrome/installer/util/self_cleaning_temp_dir_unittest.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698