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

Side by Side Diff: net/tools/quic/quic_simple_server_stream_test.cc

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/tools/quic/quic_simple_server_stream.h" 5 #include "net/tools/quic/quic_simple_server_stream.h"
6 6
7 #include <list> 7 #include <list>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void(QuicErrorCode error, 101 void(QuicErrorCode error,
102 const string& error_details, 102 const string& error_details,
103 ConnectionCloseSource source)); 103 ConnectionCloseSource source));
104 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); 104 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id));
105 MOCK_METHOD6( 105 MOCK_METHOD6(
106 WritevData, 106 WritevData,
107 QuicConsumedData(QuicStream* stream, 107 QuicConsumedData(QuicStream* stream,
108 QuicStreamId id, 108 QuicStreamId id,
109 QuicIOVector data, 109 QuicIOVector data,
110 QuicStreamOffset offset, 110 QuicStreamOffset offset,
111 bool fin, 111 StreamSendingState state,
112 QuicReferenceCountedPointer<QuicAckListenerInterface>)); 112 QuicReferenceCountedPointer<QuicAckListenerInterface>));
113 MOCK_METHOD4(OnStreamHeaderList, 113 MOCK_METHOD4(OnStreamHeaderList,
114 void(QuicStreamId stream_id, 114 void(QuicStreamId stream_id,
115 bool fin, 115 bool fin,
116 size_t frame_len, 116 size_t frame_len,
117 const QuicHeaderList& header_list)); 117 const QuicHeaderList& header_list));
118 MOCK_METHOD2(OnStreamHeadersPriority, 118 MOCK_METHOD2(OnStreamHeadersPriority,
119 void(QuicStreamId stream_id, SpdyPriority priority)); 119 void(QuicStreamId stream_id, SpdyPriority priority));
120 // Methods taking non-copyable types like SpdyHeaderBlock by value cannot be 120 // Methods taking non-copyable types like SpdyHeaderBlock by value cannot be
121 // mocked directly. 121 // mocked directly.
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 }; 638 };
639 QuicStringPiece data(arr, arraysize(arr)); 639 QuicStringPiece data(arr, arraysize(arr));
640 QuicStreamFrame frame(stream_->id(), true, 0, data); 640 QuicStreamFrame frame(stream_->id(), true, 0, data);
641 // Verify that we don't crash when we get a invalid headers in stream frame. 641 // Verify that we don't crash when we get a invalid headers in stream frame.
642 stream_->OnStreamFrame(frame); 642 stream_->OnStreamFrame(frame);
643 } 643 }
644 644
645 } // namespace 645 } // namespace
646 } // namespace test 646 } // namespace test
647 } // namespace net 647 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_server_stream.cc ('k') | net/tools/quic/quic_time_wait_list_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698