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

Unified Diff: net/http/http_response_body_drainer_unittest.cc

Issue 10834178: net: Return size of upload as well as position from HttpTransaction::GetUploadProgress() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make UploadProgress a class instead of a struct Created 8 years, 4 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: net/http/http_response_body_drainer_unittest.cc
diff --git a/net/http/http_response_body_drainer_unittest.cc b/net/http/http_response_body_drainer_unittest.cc
index cf08f556aecff23ed1f153265f60e4e39029d97f..d9b6492a5378ad55986d89375c2a53894e441bc9 100644
--- a/net/http/http_response_body_drainer_unittest.cc
+++ b/net/http/http_response_body_drainer_unittest.cc
@@ -85,7 +85,9 @@ class MockHttpStream : public HttpStream {
const CompletionCallback& callback) OVERRIDE {
return ERR_UNEXPECTED;
}
- virtual uint64 GetUploadProgress() const OVERRIDE { return 0; }
+ virtual UploadProgress GetUploadProgress() const OVERRIDE {
+ return UploadProgress();
+ }
virtual int ReadResponseHeaders(const CompletionCallback& callback) OVERRIDE {
return ERR_UNEXPECTED;
}

Powered by Google App Engine
This is Rietveld 408576698