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

Side by Side Diff: net/quic/quic_headers_stream_test.cc

Issue 959743002: Account for HTTP/2 padding in receive windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more mock implementation. Created 5 years, 9 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
« no previous file with comments | « net/quic/quic_headers_stream.cc ('k') | net/spdy/buffered_spdy_framer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/quic/quic_headers_stream.h" 5 #include "net/quic/quic_headers_stream.h"
6 6
7 #include "net/quic/quic_utils.h" 7 #include "net/quic/quic_utils.h"
8 #include "net/quic/spdy_utils.h" 8 #include "net/quic/spdy_utils.h"
9 #include "net/quic/test_tools/quic_connection_peer.h" 9 #include "net/quic/test_tools/quic_connection_peer.h"
10 #include "net/quic/test_tools/quic_session_peer.h" 10 #include "net/quic/test_tools/quic_session_peer.h"
(...skipping 18 matching lines...) Expand all
29 class MockVisitor : public SpdyFramerVisitorInterface { 29 class MockVisitor : public SpdyFramerVisitorInterface {
30 public: 30 public:
31 MOCK_METHOD1(OnError, void(SpdyFramer* framer)); 31 MOCK_METHOD1(OnError, void(SpdyFramer* framer));
32 MOCK_METHOD3(OnDataFrameHeader, void(SpdyStreamId stream_id, 32 MOCK_METHOD3(OnDataFrameHeader, void(SpdyStreamId stream_id,
33 size_t length, 33 size_t length,
34 bool fin)); 34 bool fin));
35 MOCK_METHOD4(OnStreamFrameData, void(SpdyStreamId stream_id, 35 MOCK_METHOD4(OnStreamFrameData, void(SpdyStreamId stream_id,
36 const char* data, 36 const char* data,
37 size_t len, 37 size_t len,
38 bool fin)); 38 bool fin));
39 MOCK_METHOD2(OnStreamPadding, void(SpdyStreamId stream_id, size_t len));
39 MOCK_METHOD3(OnControlFrameHeaderData, bool(SpdyStreamId stream_id, 40 MOCK_METHOD3(OnControlFrameHeaderData, bool(SpdyStreamId stream_id,
40 const char* header_data, 41 const char* header_data,
41 size_t len)); 42 size_t len));
42 MOCK_METHOD5(OnSynStream, void(SpdyStreamId stream_id, 43 MOCK_METHOD5(OnSynStream, void(SpdyStreamId stream_id,
43 SpdyStreamId associated_stream_id, 44 SpdyStreamId associated_stream_id,
44 SpdyPriority priority, 45 SpdyPriority priority,
45 bool fin, 46 bool fin,
46 bool unidirectional)); 47 bool unidirectional));
47 MOCK_METHOD2(OnSynReply, void(SpdyStreamId stream_id, bool fin)); 48 MOCK_METHOD2(OnSynReply, void(SpdyStreamId stream_id, bool fin));
48 MOCK_METHOD2(OnRstStream, void(SpdyStreamId stream_id, 49 MOCK_METHOD2(OnRstStream, void(SpdyStreamId stream_id,
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 } 459 }
459 460
460 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) { 461 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) {
461 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( 462 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl(
462 headers_stream_)); 463 headers_stream_));
463 } 464 }
464 465
465 } // namespace 466 } // namespace
466 } // namespace test 467 } // namespace test
467 } // namespace net 468 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_headers_stream.cc ('k') | net/spdy/buffered_spdy_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698