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

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

Issue 2515783003: Deprecate FLAGS_quic_enable_version_35. (Closed)
Patch Set: Created 4 years, 1 month 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 2639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 EXPECT_LT(0u, entries.size()); 2650 EXPECT_LT(0u, entries.size());
2651 2651
2652 // Check that we logged a QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM 2652 // Check that we logged a QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM
2653 int pos = ExpectLogContainsSomewhere( 2653 int pos = ExpectLogContainsSomewhere(
2654 entries, 0, NetLogEventType::QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM, 2654 entries, 0, NetLogEventType::QUIC_HTTP_STREAM_ADOPTED_PUSH_STREAM,
2655 NetLogEventPhase::NONE); 2655 NetLogEventPhase::NONE);
2656 EXPECT_LT(0, pos); 2656 EXPECT_LT(0, pos);
2657 } 2657 }
2658 2658
2659 TEST_P(QuicNetworkTransactionTest, QuicForceHolBlocking) { 2659 TEST_P(QuicNetworkTransactionTest, QuicForceHolBlocking) {
2660 FLAGS_quic_enable_version_35 = true;
2661 FLAGS_quic_enable_version_36_v2 = true; 2660 FLAGS_quic_enable_version_36_v2 = true;
2662 params_.quic_force_hol_blocking = true; 2661 params_.quic_force_hol_blocking = true;
2663 params_.origins_to_force_quic_on.insert( 2662 params_.origins_to_force_quic_on.insert(
2664 HostPortPair::FromString("mail.example.org:443")); 2663 HostPortPair::FromString("mail.example.org:443"));
2665 2664
2666 MockQuicData mock_quic_data; 2665 MockQuicData mock_quic_data;
2667 2666
2668 QuicStreamOffset offset = 0; 2667 QuicStreamOffset offset = 0;
2669 mock_quic_data.AddWrite(ConstructClientRequestHeadersPacket( 2668 mock_quic_data.AddWrite(ConstructClientRequestHeadersPacket(
2670 1, kClientDataStreamId1, true, false, 2669 1, kClientDataStreamId1, true, false,
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
3278 AddHangingSocketData(); 3277 AddHangingSocketData();
3279 3278
3280 SendRequestAndExpectQuicResponse(origin1_); 3279 SendRequestAndExpectQuicResponse(origin1_);
3281 SendRequestAndExpectQuicResponse(origin2_); 3280 SendRequestAndExpectQuicResponse(origin2_);
3282 3281
3283 EXPECT_TRUE(AllDataConsumed()); 3282 EXPECT_TRUE(AllDataConsumed());
3284 } 3283 }
3285 3284
3286 } // namespace test 3285 } // namespace test
3287 } // namespace net 3286 } // 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