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

Unified Diff: chrome/browser/net/net_log_temp_file_unittest.cc

Issue 614893004: Refactor AppendToFile and WriteFileDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits Created 6 years, 2 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/net/net_log_temp_file_unittest.cc
diff --git a/chrome/browser/net/net_log_temp_file_unittest.cc b/chrome/browser/net/net_log_temp_file_unittest.cc
index b3fce9e6bdbb81f0bc9b87305ae709d0593ebf9c..29791f311146ee983542efc7765c640dd08382a3 100644
--- a/chrome/browser/net/net_log_temp_file_unittest.cc
+++ b/chrome/browser/net/net_log_temp_file_unittest.cc
@@ -297,8 +297,8 @@ TEST_F(NetLogTempFileTest, DoStartClearsFile) {
// Add some junk at the end of the file.
std::string junk_data("Hello");
- EXPECT_GT(base::AppendToFile(
- net_export_log_, junk_data.c_str(), junk_data.size()), 0);
+ EXPECT_TRUE(base::AppendToFile(net_export_log_, junk_data.c_str(),
+ junk_data.size()));
int64 junk_file_size;
EXPECT_TRUE(base::GetFileSize(net_export_log_, &junk_file_size));
« no previous file with comments | « chrome/browser/media_galleries/win/mtp_device_operations_util.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698