| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 QuicStreamFrame stream_frame_; | 401 QuicStreamFrame stream_frame_; |
| 402 QuicStreamId next_promised_stream_id_; | 402 QuicStreamId next_promised_stream_id_; |
| 403 }; | 403 }; |
| 404 | 404 |
| 405 // Run all tests with each version, perspective (client or server), | 405 // Run all tests with each version, perspective (client or server), |
| 406 // HTTP/2 and HPACK decoder. | 406 // HTTP/2 and HPACK decoder. |
| 407 INSTANTIATE_TEST_CASE_P( | 407 INSTANTIATE_TEST_CASE_P( |
| 408 Tests, | 408 Tests, |
| 409 QuicHeadersStreamTest, | 409 QuicHeadersStreamTest, |
| 410 ::testing::Combine( | 410 ::testing::Combine( |
| 411 ::testing::ValuesIn(QuicSupportedVersions()), | 411 ::testing::ValuesIn(AllSupportedVersions()), |
| 412 ::testing::Values(Perspective::IS_CLIENT, Perspective::IS_SERVER), | 412 ::testing::Values(Perspective::IS_CLIENT, Perspective::IS_SERVER), |
| 413 ::testing::Values(HTTP2_DECODER_SPDY, | 413 ::testing::Values(HTTP2_DECODER_SPDY, |
| 414 HTTP2_DECODER_NESTED_SPDY, | 414 HTTP2_DECODER_NESTED_SPDY, |
| 415 HTTP2_DECODER_NEW), | 415 HTTP2_DECODER_NEW), |
| 416 ::testing::Values(HPACK_DECODER_SPDY, HPACK_DECODER_NEW))); | 416 ::testing::Values(HPACK_DECODER_SPDY, HPACK_DECODER_NEW))); |
| 417 | 417 |
| 418 TEST_P(QuicHeadersStreamTest, StreamId) { | 418 TEST_P(QuicHeadersStreamTest, StreamId) { |
| 419 EXPECT_EQ(3u, headers_stream_->id()); | 419 EXPECT_EQ(3u, headers_stream_->id()); |
| 420 } | 420 } |
| 421 | 421 |
| (...skipping 542 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 |