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 "base/test/histogram_tester.h" | 7 #include "base/test/histogram_tester.h" |
8 #include "net/quic/quic_utils.h" | 8 #include "net/quic/quic_utils.h" |
9 #include "net/quic/spdy_utils.h" | 9 #include "net/quic/spdy_utils.h" |
10 #include "net/quic/test_tools/quic_connection_peer.h" | 10 #include "net/quic/test_tools/quic_connection_peer.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 return versions; | 219 return versions; |
220 } | 220 } |
221 | 221 |
222 void CloseConnection() { | 222 void CloseConnection() { |
223 QuicConnectionPeer::CloseConnection(connection_); | 223 QuicConnectionPeer::CloseConnection(connection_); |
224 } | 224 } |
225 | 225 |
226 static const bool kFrameComplete = true; | 226 static const bool kFrameComplete = true; |
227 static const bool kHasPriority = true; | 227 static const bool kHasPriority = true; |
228 | 228 |
229 MockHelper helper_; | 229 MockConnectionHelper helper_; |
230 StrictMock<MockConnection>* connection_; | 230 StrictMock<MockConnection>* connection_; |
231 StrictMock<MockQuicSpdySession> session_; | 231 StrictMock<MockQuicSpdySession> session_; |
232 QuicHeadersStream* headers_stream_; | 232 QuicHeadersStream* headers_stream_; |
233 SpdyHeaderBlock headers_; | 233 SpdyHeaderBlock headers_; |
234 string body_; | 234 string body_; |
235 string saved_data_; | 235 string saved_data_; |
236 string saved_header_data_; | 236 string saved_header_data_; |
237 SpdyFramer framer_; | 237 SpdyFramer framer_; |
238 StrictMock<MockVisitor> visitor_; | 238 StrictMock<MockVisitor> visitor_; |
239 QuicStreamFrame stream_frame_; | 239 QuicStreamFrame stream_frame_; |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 } | 543 } |
544 | 544 |
545 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) { | 545 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) { |
546 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( | 546 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( |
547 headers_stream_)); | 547 headers_stream_)); |
548 } | 548 } |
549 | 549 |
550 } // namespace | 550 } // namespace |
551 } // namespace test | 551 } // namespace test |
552 } // namespace net | 552 } // namespace net |
OLD | NEW |