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/core/quic_headers_stream.h" | 5 #include "net/quic/core/quic_headers_stream.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "net/quic/core/quic_bug_tracker.h" | 10 #include "net/quic/core/quic_bug_tracker.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 bool fin, | 103 bool fin, |
104 bool end)); | 104 bool end)); |
105 MOCK_METHOD2(OnWindowUpdate, | 105 MOCK_METHOD2(OnWindowUpdate, |
106 void(SpdyStreamId stream_id, int delta_window_size)); | 106 void(SpdyStreamId stream_id, int delta_window_size)); |
107 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id)); | 107 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id)); |
108 MOCK_METHOD3(OnPushPromise, | 108 MOCK_METHOD3(OnPushPromise, |
109 void(SpdyStreamId stream_id, | 109 void(SpdyStreamId stream_id, |
110 SpdyStreamId promised_stream_id, | 110 SpdyStreamId promised_stream_id, |
111 bool end)); | 111 bool end)); |
112 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end)); | 112 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end)); |
113 MOCK_METHOD4(OnPriority, | |
114 void(SpdyStreamId stream_id, | |
115 SpdyStreamId parent_id, | |
116 int weight, | |
117 bool exclusive)); | |
118 MOCK_METHOD3(OnAltSvc, | 113 MOCK_METHOD3(OnAltSvc, |
119 void(SpdyStreamId stream_id, | 114 void(SpdyStreamId stream_id, |
120 StringPiece origin, | 115 StringPiece origin, |
121 const SpdyAltSvcWireFormat::AlternativeServiceVector& | 116 const SpdyAltSvcWireFormat::AlternativeServiceVector& |
122 altsvc_vector)); | 117 altsvc_vector)); |
| 118 MOCK_METHOD4(OnPriority, |
| 119 void(SpdyStreamId stream_id, |
| 120 SpdyStreamId parent_stream_id, |
| 121 int weight, |
| 122 bool exclusive)); |
123 MOCK_METHOD2(OnUnknownFrame, bool(SpdyStreamId stream_id, int frame_type)); | 123 MOCK_METHOD2(OnUnknownFrame, bool(SpdyStreamId stream_id, int frame_type)); |
124 }; | 124 }; |
125 | 125 |
126 class ForceHolAckListener : public QuicAckListenerInterface { | 126 class ForceHolAckListener : public QuicAckListenerInterface { |
127 public: | 127 public: |
128 ForceHolAckListener() : total_acked_bytes_(0) {} | 128 ForceHolAckListener() : total_acked_bytes_(0) {} |
129 | 129 |
130 void OnPacketAcked(int acked_bytes, QuicTime::Delta ack_delay_time) override { | 130 void OnPacketAcked(int acked_bytes, QuicTime::Delta ack_delay_time) override { |
131 total_acked_bytes_ += acked_bytes; | 131 total_acked_bytes_ += acked_bytes; |
132 } | 132 } |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 } | 963 } |
964 saved_data_.clear(); | 964 saved_data_.clear(); |
965 saved_payloads_.clear(); | 965 saved_payloads_.clear(); |
966 } | 966 } |
967 } | 967 } |
968 } | 968 } |
969 | 969 |
970 } // namespace | 970 } // namespace |
971 } // namespace test | 971 } // namespace test |
972 } // namespace net | 972 } // namespace net |
OLD | NEW |