OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <memory> | 5 #include <memory> |
6 #include <ostream> | 6 #include <ostream> |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3969 EXPECT_LT(0u, entries.size()); | 3969 EXPECT_LT(0u, entries.size()); |
3970 | 3970 |
3971 // Check that we logged a QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM | 3971 // Check that we logged a QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM |
3972 int pos = ExpectLogContainsSomewhere( | 3972 int pos = ExpectLogContainsSomewhere( |
3973 entries, 0, NetLogEventType::QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM, | 3973 entries, 0, NetLogEventType::QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM, |
3974 NetLogEventPhase::NONE); | 3974 NetLogEventPhase::NONE); |
3975 EXPECT_LT(0, pos); | 3975 EXPECT_LT(0, pos); |
3976 } | 3976 } |
3977 | 3977 |
3978 TEST_P(QuicNetworkTransactionTest, QuicForceHolBlocking) { | 3978 TEST_P(QuicNetworkTransactionTest, QuicForceHolBlocking) { |
3979 FLAGS_quic_reloadable_flag_quic_enable_version_36_v3 = true; | |
3980 params_.quic_force_hol_blocking = true; | 3979 params_.quic_force_hol_blocking = true; |
3981 params_.origins_to_force_quic_on.insert( | 3980 params_.origins_to_force_quic_on.insert( |
3982 HostPortPair::FromString("mail.example.org:443")); | 3981 HostPortPair::FromString("mail.example.org:443")); |
3983 | 3982 |
3984 MockQuicData mock_quic_data; | 3983 MockQuicData mock_quic_data; |
3985 | 3984 |
3986 QuicStreamOffset offset = 0; | 3985 QuicStreamOffset offset = 0; |
3987 mock_quic_data.AddWrite( | 3986 mock_quic_data.AddWrite( |
3988 ConstructSettingsPacket(1, SETTINGS_MAX_HEADER_LIST_SIZE, | 3987 ConstructSettingsPacket(1, SETTINGS_MAX_HEADER_LIST_SIZE, |
3989 kDefaultMaxUncompressedHeaderSize, &offset)); | 3988 kDefaultMaxUncompressedHeaderSize, &offset)); |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4694 | 4693 |
4695 request_.url = GURL("https://mail.example.org/pushed.jpg"); | 4694 request_.url = GURL("https://mail.example.org/pushed.jpg"); |
4696 ChunkedUploadDataStream upload_data(0); | 4695 ChunkedUploadDataStream upload_data(0); |
4697 upload_data.AppendData("1", 1, true); | 4696 upload_data.AppendData("1", 1, true); |
4698 request_.upload_data_stream = &upload_data; | 4697 request_.upload_data_stream = &upload_data; |
4699 SendRequestAndExpectQuicResponse("and hello!"); | 4698 SendRequestAndExpectQuicResponse("and hello!"); |
4700 } | 4699 } |
4701 | 4700 |
4702 } // namespace test | 4701 } // namespace test |
4703 } // namespace net | 4702 } // namespace net |
OLD | NEW |