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

Unified Diff: net/spdy/spdy_stream_test_util.cc

Issue 10828129: SPDY: WriteHeaders should not invoke OnDataSent callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add check for OnHeadersSent in tests 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/spdy/spdy_stream_test_util.cc
diff --git a/net/spdy/spdy_stream_test_util.cc b/net/spdy/spdy_stream_test_util.cc
index b973cf835e398fee2a85a5a352fa53f9f08b96e3..1fe89d057664ecee133219faa61b637e7c438c6b 100644
--- a/net/spdy/spdy_stream_test_util.cc
+++ b/net/spdy/spdy_stream_test_util.cc
@@ -23,6 +23,7 @@ TestSpdyStreamDelegate::TestSpdyStreamDelegate(
callback_(callback),
send_headers_completed_(false),
response_(new SpdyHeaderBlock),
+ headers_sent_(0),
data_sent_(0),
closed_(false) {
}
@@ -61,6 +62,10 @@ int TestSpdyStreamDelegate::OnResponseReceived(const SpdyHeaderBlock& response,
return status;
}
+void TestSpdyStreamDelegate::OnHeadersSent() {
+ headers_sent_++;
+}
+
void TestSpdyStreamDelegate::OnDataReceived(const char* buffer, int bytes) {
received_data_ += std::string(buffer, bytes);
}

Powered by Google App Engine
This is Rietveld 408576698