Chromium Code Reviews| Index: net/spdy/spdy_stream_spdy2_unittest.cc |
| =================================================================== |
| --- net/spdy/spdy_stream_spdy2_unittest.cc (revision 144839) |
| +++ net/spdy/spdy_stream_spdy2_unittest.cc (working copy) |
| @@ -47,6 +47,15 @@ |
| return ERR_UNEXPECTED; |
| } |
| + virtual int OnSendChunkedBody() { |
| + ADD_FAILURE() << "OnSendChunkedBody should not be called"; |
| + return ERR_UNEXPECTED; |
| + } |
| + virtual int OnSendChunkedBodyComplete(int /*status*/, bool* /*eof*/) { |
| + ADD_FAILURE() << "OnSendChunkedBodyComplete should not be called"; |
| + return ERR_UNEXPECTED; |
| + } |
| + |
| virtual int OnResponseReceived(const SpdyHeaderBlock& response, |
| base::Time response_time, |
| int status) { |
| @@ -72,6 +81,7 @@ |
| callback.Run(OK); |
| } |
| virtual void set_chunk_callback(net::ChunkCallback *) {} |
| + virtual bool IsRequestBodyChunked() { return false; } |
|
Ryan Hamilton
2012/07/02 22:34:32
Should we add a test where this returns true?
ramant (doing other things)
2012/07/04 21:04:33
Deleted this code (because it is not needed).
|
| bool send_headers_completed() const { return send_headers_completed_; } |
| const linked_ptr<SpdyHeaderBlock>& response() const { |