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

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: fixes 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
« no previous file with comments | « util/net/http_body_test.cc ('k') | util/net/http_transport_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c3dbd19c577f316c486ac3b947409b91940e5cfe 100644
--- a/util/net/http_body_test_util.cc
+++ b/util/net/http_body_test_util.cc
@@ -18,6 +18,7 @@
#include "base/memory/scoped_ptr.h"
#include "gtest/gtest.h"
+#include "util/file/file_io.h"
#include "util/net/http_body.h"
namespace crashpad {
@@ -31,7 +32,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;
while ((bytes_read = stream->GetBytesBuffer(buf.get(), buffer_size)) != 0) {
if (bytes_read < 0) {
ADD_FAILURE() << "Failed to read from stream: " << bytes_read;
« no previous file with comments | « util/net/http_body_test.cc ('k') | util/net/http_transport_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698