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

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

Issue 2247903003: QUIC - sync'ing chromium source with the internal source tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final
Patch Set: Created 4 years, 4 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 | « no previous file | net/quic/core/quic_packet_creator_test.cc » ('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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/quic_packet_creator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698