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

Unified Diff: util/net/http_body_test_util.cc

Issue 1416493006: Change file op |ssize_t|s to FileOperationResult (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 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: util/net/http_body_test_util.cc
diff --git a/util/net/http_body_test_util.cc b/util/net/http_body_test_util.cc
index 3d732311078e632494cca6c7d76ab04beffb3bcd..46dd8ab72a6b5703567d2e3e45add6bc156b1be3 100644
--- a/util/net/http_body_test_util.cc
+++ b/util/net/http_body_test_util.cc
@@ -31,7 +31,7 @@ std::string ReadStreamToString(HTTPBodyStream* stream, size_t buffer_size) {
scoped_ptr<uint8_t[]> buf(new uint8_t[buffer_size]);
std::string result;
- ssize_t bytes_read;
+ FileOperationResult bytes_read;
Mark Mentovai 2015/10/22 22:56:18 #include file_io.h.
scottmg 2015/10/22 23:13:40 Done.
while ((bytes_read = stream->GetBytesBuffer(buf.get(), buffer_size)) != 0) {
if (bytes_read < 0) {
ADD_FAILURE() << "Failed to read from stream: " << bytes_read;

Powered by Google App Engine
This is Rietveld 408576698