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

Unified Diff: chrome/browser/chromeos/system/automatic_reboot_manager_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: chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
diff --git a/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc b/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
index b6e8eccd6160cc7bdd0154b9b39a86ef779df5c5..f3204b6faf75ff6b4d2a7bbf81d626a293529dc1 100644
--- a/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
+++ b/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
@@ -212,9 +212,8 @@ void SaveUptimeToFile(const base::FilePath& path,
const std::string uptime_seconds = base::DoubleToString(uptime.InSecondsF());
ASSERT_EQ(static_cast<int>(uptime_seconds.size()),
- file_util::WriteFile(path,
- uptime_seconds.c_str(),
- uptime_seconds.size()));
+ base::WriteFile(path, uptime_seconds.c_str(),
+ uptime_seconds.size()));
}
MockTimeSingleThreadTaskRunner::MockTimeSingleThreadTaskRunner() {
@@ -347,11 +346,10 @@ void AutomaticRebootManagerBasicTest::SetUp() {
const base::FilePath& temp_dir = temp_dir_.path();
const base::FilePath uptime_file = temp_dir.Append("uptime");
task_runner_->SetUptimeFile(uptime_file);
- ASSERT_FALSE(file_util::WriteFile(uptime_file, NULL, 0));
+ ASSERT_FALSE(base::WriteFile(uptime_file, NULL, 0));
update_reboot_needed_uptime_file_ =
temp_dir.Append("update_reboot_needed_uptime");
- ASSERT_FALSE(file_util::WriteFile(
- update_reboot_needed_uptime_file_, NULL, 0));
+ ASSERT_FALSE(base::WriteFile(update_reboot_needed_uptime_file_, NULL, 0));
ASSERT_TRUE(PathService::Override(chromeos::FILE_UPTIME, uptime_file));
ASSERT_TRUE(PathService::Override(chromeos::FILE_UPDATE_REBOOT_NEEDED_UPTIME,
update_reboot_needed_uptime_file_));
« no previous file with comments | « chrome/browser/chromeos/system/automatic_reboot_manager.cc ('k') | chrome/browser/component_updater/component_unpacker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698