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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 MOCK_METHOD5(OnSynStream, | 53 MOCK_METHOD5(OnSynStream, |
54 void(SpdyStreamId stream_id, | 54 void(SpdyStreamId stream_id, |
55 SpdyStreamId associated_stream_id, | 55 SpdyStreamId associated_stream_id, |
56 SpdyPriority priority, | 56 SpdyPriority priority, |
57 bool fin, | 57 bool fin, |
58 bool unidirectional)); | 58 bool unidirectional)); |
59 MOCK_METHOD2(OnSynReply, void(SpdyStreamId stream_id, bool fin)); | 59 MOCK_METHOD2(OnSynReply, void(SpdyStreamId stream_id, bool fin)); |
60 MOCK_METHOD2(OnRstStream, | 60 MOCK_METHOD2(OnRstStream, |
61 void(SpdyStreamId stream_id, SpdyRstStreamStatus status)); | 61 void(SpdyStreamId stream_id, SpdyRstStreamStatus status)); |
62 MOCK_METHOD1(OnSettings, void(bool clear_persisted)); | 62 MOCK_METHOD1(OnSettings, void(bool clear_persisted)); |
63 MOCK_METHOD3(OnSetting, void(SpdySettingsIds id, uint8 flags, uint32 value)); | 63 MOCK_METHOD3(OnSetting, |
| 64 void(SpdySettingsIds id, uint8_t flags, uint32_t value)); |
64 MOCK_METHOD0(OnSettingsAck, void()); | 65 MOCK_METHOD0(OnSettingsAck, void()); |
65 MOCK_METHOD0(OnSettingsEnd, void()); | 66 MOCK_METHOD0(OnSettingsEnd, void()); |
66 MOCK_METHOD2(OnPing, void(SpdyPingId unique_id, bool is_ack)); | 67 MOCK_METHOD2(OnPing, void(SpdyPingId unique_id, bool is_ack)); |
67 MOCK_METHOD2(OnGoAway, | 68 MOCK_METHOD2(OnGoAway, |
68 void(SpdyStreamId last_accepted_stream_id, | 69 void(SpdyStreamId last_accepted_stream_id, |
69 SpdyGoAwayStatus status)); | 70 SpdyGoAwayStatus status)); |
70 MOCK_METHOD7(OnHeaders, | 71 MOCK_METHOD7(OnHeaders, |
71 void(SpdyStreamId stream_id, | 72 void(SpdyStreamId stream_id, |
72 bool has_priority, | 73 bool has_priority, |
73 SpdyPriority priority, | 74 SpdyPriority priority, |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 } | 547 } |
547 | 548 |
548 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) { | 549 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) { |
549 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( | 550 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( |
550 headers_stream_)); | 551 headers_stream_)); |
551 } | 552 } |
552 | 553 |
553 } // namespace | 554 } // namespace |
554 } // namespace test | 555 } // namespace test |
555 } // namespace net | 556 } // namespace net |
OLD | NEW |