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

Unified Diff: net/spdy/spdy_stream_test_util.cc

Issue 13990005: [SPDY] Replace SpdyIOBuffer with new SpdyBuffer class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix missing include Created 7 years, 8 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 | « net/spdy/spdy_stream_test_util.h ('k') | net/spdy/spdy_websocket_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ac96cf9124dfdb11247602bb3e3f60fa5595f56c..0165c2046aa42c78568d5eb96164ffeb1886fe4e 100644
--- a/net/spdy/spdy_stream_test_util.cc
+++ b/net/spdy/spdy_stream_test_util.cc
@@ -37,7 +37,7 @@ int ClosingDelegate::OnResponseReceived(const SpdyHeaderBlock& response,
void ClosingDelegate::OnHeadersSent() {}
-int ClosingDelegate::OnDataReceived(const char* data, int length) {
+int ClosingDelegate::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) {
return OK;
}
@@ -77,8 +77,11 @@ void StreamDelegateBase::OnHeadersSent() {
headers_sent_++;
}
-int StreamDelegateBase::OnDataReceived(const char* buffer, int bytes) {
- received_data_ += std::string(buffer, bytes);
+int StreamDelegateBase::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) {
+ if (buffer) {
+ received_data_ += std::string(buffer->GetRemainingData(),
+ buffer->GetRemainingSize());
+ }
return OK;
}
« no previous file with comments | « net/spdy/spdy_stream_test_util.h ('k') | net/spdy/spdy_websocket_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698