OLD | NEW |
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_spdy_session_peer.h" | 10 #include "net/quic/test_tools/quic_spdy_session_peer.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 MOCK_METHOD7(OnHeaders, | 68 MOCK_METHOD7(OnHeaders, |
69 void(SpdyStreamId stream_id, | 69 void(SpdyStreamId stream_id, |
70 bool has_priority, | 70 bool has_priority, |
71 SpdyPriority priority, | 71 SpdyPriority priority, |
72 SpdyStreamId parent_stream_id, | 72 SpdyStreamId parent_stream_id, |
73 bool exclusive, | 73 bool exclusive, |
74 bool fin, | 74 bool fin, |
75 bool end)); | 75 bool end)); |
76 MOCK_METHOD2(OnWindowUpdate, | 76 MOCK_METHOD2(OnWindowUpdate, |
77 void(SpdyStreamId stream_id, int delta_window_size)); | 77 void(SpdyStreamId stream_id, int delta_window_size)); |
78 MOCK_METHOD2(OnCredentialFrameData, bool(const char* credential_data, | |
79 size_t len)); | |
80 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id)); | 78 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id)); |
81 MOCK_METHOD3(OnPushPromise, void(SpdyStreamId stream_id, | 79 MOCK_METHOD3(OnPushPromise, void(SpdyStreamId stream_id, |
82 SpdyStreamId promised_stream_id, | 80 SpdyStreamId promised_stream_id, |
83 bool end)); | 81 bool end)); |
84 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end)); | 82 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end)); |
85 MOCK_METHOD3(OnAltSvc, | 83 MOCK_METHOD3(OnAltSvc, |
86 void(SpdyStreamId stream_id, | 84 void(SpdyStreamId stream_id, |
87 StringPiece origin, | 85 StringPiece origin, |
88 const SpdyAltSvcWireFormat::AlternativeServiceVector& | 86 const SpdyAltSvcWireFormat::AlternativeServiceVector& |
89 altsvc_vector)); | 87 altsvc_vector)); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 } | 504 } |
507 | 505 |
508 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) { | 506 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) { |
509 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( | 507 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( |
510 headers_stream_)); | 508 headers_stream_)); |
511 } | 509 } |
512 | 510 |
513 } // namespace | 511 } // namespace |
514 } // namespace test | 512 } // namespace test |
515 } // namespace net | 513 } // namespace net |
OLD | NEW |