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

Side by Side Diff: net/spdy/spdy_stream_test_util.cc

Issue 15967002: [SPDY] Remove more code related to sending HEADERS frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few fixes Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_stream_test_util.h" 5 #include "net/spdy/spdy_stream_test_util.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 20 matching lines...) Expand all
31 SpdySendStatus ClosingDelegate::OnSendBodyComplete() { 31 SpdySendStatus ClosingDelegate::OnSendBodyComplete() {
32 return NO_MORE_DATA_TO_SEND; 32 return NO_MORE_DATA_TO_SEND;
33 } 33 }
34 34
35 int ClosingDelegate::OnResponseReceived(const SpdyHeaderBlock& response, 35 int ClosingDelegate::OnResponseReceived(const SpdyHeaderBlock& response,
36 base::Time response_time, 36 base::Time response_time,
37 int status) { 37 int status) {
38 return OK; 38 return OK;
39 } 39 }
40 40
41 void ClosingDelegate::OnHeadersSent() {}
42
43 int ClosingDelegate::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) { 41 int ClosingDelegate::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) {
44 return OK; 42 return OK;
45 } 43 }
46 44
47 void ClosingDelegate::OnDataSent() {} 45 void ClosingDelegate::OnDataSent() {}
48 46
49 void ClosingDelegate::OnClose(int status) { 47 void ClosingDelegate::OnClose(int status) {
50 DCHECK(stream_); 48 DCHECK(stream_);
51 stream_->Close(); 49 stream_->Close();
52 DCHECK(!stream_); 50 DCHECK(!stream_);
(...skipping 17 matching lines...) Expand all
70 } 68 }
71 69
72 int StreamDelegateBase::OnResponseReceived(const SpdyHeaderBlock& response, 70 int StreamDelegateBase::OnResponseReceived(const SpdyHeaderBlock& response,
73 base::Time response_time, 71 base::Time response_time,
74 int status) { 72 int status) {
75 EXPECT_TRUE(send_headers_completed_); 73 EXPECT_TRUE(send_headers_completed_);
76 response_ = response; 74 response_ = response;
77 return status; 75 return status;
78 } 76 }
79 77
80 void StreamDelegateBase::OnHeadersSent() {}
81
82 int StreamDelegateBase::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) { 78 int StreamDelegateBase::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) {
83 if (buffer) 79 if (buffer)
84 received_data_queue_.Enqueue(buffer.Pass()); 80 received_data_queue_.Enqueue(buffer.Pass());
85 return OK; 81 return OK;
86 } 82 }
87 83
88 void StreamDelegateBase::OnDataSent() {} 84 void StreamDelegateBase::OnDataSent() {}
89 85
90 void StreamDelegateBase::OnClose(int status) { 86 void StreamDelegateBase::OnClose(int status) {
91 if (!stream_) 87 if (!stream_)
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 stream()->SendStreamData(buf_.get(), buf_->size(), DATA_FLAG_NONE); 178 stream()->SendStreamData(buf_.get(), buf_->size(), DATA_FLAG_NONE);
183 } 179 }
184 180
185 SpdySendStatus StreamDelegateWithBody::OnSendBodyComplete() { 181 SpdySendStatus StreamDelegateWithBody::OnSendBodyComplete() {
186 return NO_MORE_DATA_TO_SEND; 182 return NO_MORE_DATA_TO_SEND;
187 } 183 }
188 184
189 } // namespace test 185 } // namespace test
190 186
191 } // namespace net 187 } // namespace net
OLDNEW
« 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