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

Side by Side Diff: net/quic/chromium/quic_network_transaction_unittest.cc

Issue 2338933002: Update recent QUIC flag changes. (Closed)
Patch Set: Created 4 years, 3 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_flags_list.h » ('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 (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 2547 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 2558
2559 // Check that we logged a QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM 2559 // Check that we logged a QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM
2560 int pos = ExpectLogContainsSomewhere( 2560 int pos = ExpectLogContainsSomewhere(
2561 entries, 0, NetLogEventType::QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM, 2561 entries, 0, NetLogEventType::QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM,
2562 NetLogEventPhase::NONE); 2562 NetLogEventPhase::NONE);
2563 EXPECT_LT(0, pos); 2563 EXPECT_LT(0, pos);
2564 } 2564 }
2565 2565
2566 TEST_P(QuicNetworkTransactionTest, QuicForceHolBlocking) { 2566 TEST_P(QuicNetworkTransactionTest, QuicForceHolBlocking) {
2567 FLAGS_quic_enable_version_35 = true; 2567 FLAGS_quic_enable_version_35 = true;
2568 FLAGS_quic_enable_version_36 = true; 2568 FLAGS_quic_enable_version_36_v2 = true;
2569 params_.quic_force_hol_blocking = true; 2569 params_.quic_force_hol_blocking = true;
2570 params_.origins_to_force_quic_on.insert( 2570 params_.origins_to_force_quic_on.insert(
2571 HostPortPair::FromString("mail.example.org:443")); 2571 HostPortPair::FromString("mail.example.org:443"));
2572 2572
2573 MockQuicData mock_quic_data; 2573 MockQuicData mock_quic_data;
2574 2574
2575 QuicStreamOffset offset = 0; 2575 QuicStreamOffset offset = 0;
2576 mock_quic_data.AddWrite(ConstructClientRequestHeadersPacket( 2576 mock_quic_data.AddWrite(ConstructClientRequestHeadersPacket(
2577 1, kClientDataStreamId1, true, false, 2577 1, kClientDataStreamId1, true, false,
2578 GetRequestHeaders("POST", "https", "/"), &offset)); 2578 GetRequestHeaders("POST", "https", "/"), &offset));
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
3185 AddHangingSocketData(); 3185 AddHangingSocketData();
3186 3186
3187 SendRequestAndExpectQuicResponse(origin1_); 3187 SendRequestAndExpectQuicResponse(origin1_);
3188 SendRequestAndExpectQuicResponse(origin2_); 3188 SendRequestAndExpectQuicResponse(origin2_);
3189 3189
3190 EXPECT_TRUE(AllDataConsumed()); 3190 EXPECT_TRUE(AllDataConsumed());
3191 } 3191 }
3192 3192
3193 } // namespace test 3193 } // namespace test
3194 } // namespace net 3194 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698