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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 ostream& operator<<(ostream& os, HpackDecoderChoice v) { | 164 ostream& operator<<(ostream& os, HpackDecoderChoice v) { |
165 switch (v) { | 165 switch (v) { |
166 case HPACK_DECODER_SPDY: | 166 case HPACK_DECODER_SPDY: |
167 return os << "SPDY"; | 167 return os << "SPDY"; |
168 case HPACK_DECODER_NEW: | 168 case HPACK_DECODER_NEW: |
169 return os << "NEW"; | 169 return os << "NEW"; |
170 } | 170 } |
171 return os; | 171 return os; |
172 } | 172 } |
173 | 173 |
174 typedef std:: | 174 typedef testing:: |
175 tuple<QuicVersion, Perspective, Http2DecoderChoice, HpackDecoderChoice> | 175 tuple<QuicVersion, Perspective, Http2DecoderChoice, HpackDecoderChoice> |
176 TestParamsTuple; | 176 TestParamsTuple; |
177 | 177 |
178 struct TestParams { | 178 struct TestParams { |
179 explicit TestParams(TestParamsTuple params) | 179 explicit TestParams(TestParamsTuple params) |
180 : version(std::get<0>(params)), | 180 : version(testing::get<0>(params)), |
181 perspective(std::get<1>(params)), | 181 perspective(testing::get<1>(params)), |
182 http2_decoder(std::get<2>(params)), | 182 http2_decoder(testing::get<2>(params)), |
183 hpack_decoder(std::get<3>(params)) { | 183 hpack_decoder(testing::get<3>(params)) { |
184 switch (http2_decoder) { | 184 switch (http2_decoder) { |
185 case HTTP2_DECODER_SPDY: | 185 case HTTP2_DECODER_SPDY: |
186 FLAGS_use_nested_spdy_framer_decoder = false; | 186 FLAGS_use_nested_spdy_framer_decoder = false; |
187 FLAGS_use_http2_frame_decoder_adapter = false; | 187 FLAGS_use_http2_frame_decoder_adapter = false; |
188 break; | 188 break; |
189 case HTTP2_DECODER_NESTED_SPDY: | 189 case HTTP2_DECODER_NESTED_SPDY: |
190 FLAGS_use_nested_spdy_framer_decoder = true; | 190 FLAGS_use_nested_spdy_framer_decoder = true; |
191 FLAGS_use_http2_frame_decoder_adapter = false; | 191 FLAGS_use_http2_frame_decoder_adapter = false; |
192 break; | 192 break; |
193 case HTTP2_DECODER_NEW: | 193 case HTTP2_DECODER_NEW: |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 } | 964 } |
965 saved_data_.clear(); | 965 saved_data_.clear(); |
966 saved_payloads_.clear(); | 966 saved_payloads_.clear(); |
967 } | 967 } |
968 } | 968 } |
969 } | 969 } |
970 | 970 |
971 } // namespace | 971 } // namespace |
972 } // namespace test | 972 } // namespace test |
973 } // namespace net | 973 } // namespace net |
OLD | NEW |