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

Unified Diff: net/http/http_network_transaction_unittest.cc

Issue 1314783007: Added and implemented HttpStream::GetTotalSentBytes for basic streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_network_transaction_unittest.cc
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index accad7da16fc38fe9be8d00e0f6394985b61992b..97b6edc8643607eb6346d2017269710fd158a8c6 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -6,6 +6,7 @@
#include <math.h> // ceil
#include <stdarg.h>
+#include <stdint.h>
mmenke 2015/08/31 22:23:13 nit: Know it was like this before, but there shou
sclittle 2015/09/01 01:21:47 Done.
#include <string>
#include <vector>
@@ -13368,6 +13369,11 @@ class FakeStream : public HttpStream,
return 0;
}
+ int64_t GetTotalSentBytes() const override {
+ ADD_FAILURE();
+ return 0;
+ }
+
bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override {
ADD_FAILURE();
return false;
@@ -13591,6 +13597,11 @@ class FakeWebSocketBasicHandshakeStream : public WebSocketHandshakeStreamBase {
return 0;
}
+ int64_t GetTotalSentBytes() const override {
+ NOTREACHED();
+ return 0;
+ }
+
bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override {
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698