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

Side by Side Diff: net/quic/core/quic_server_session_base_test.cc

Issue 2306173003: Add a new QuicFlagSaver class for saving/restoring the values of QUIC flags in tests. (Closed)
Patch Set: Better 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 | « net/quic/core/quic_sent_packet_manager_test.cc ('k') | net/quic/core/quic_session_test.cc » ('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 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_server_session_base.h" 5 #include "net/quic/core/quic_server_session_base.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 using net::test::MockQuicConnection; 33 using net::test::MockQuicConnection;
34 using net::test::MockQuicConnectionHelper; 34 using net::test::MockQuicConnectionHelper;
35 using net::test::QuicConfigPeer; 35 using net::test::QuicConfigPeer;
36 using net::test::QuicConnectionPeer; 36 using net::test::QuicConnectionPeer;
37 using net::test::QuicSpdyStreamPeer; 37 using net::test::QuicSpdyStreamPeer;
38 using net::test::QuicSentPacketManagerPeer; 38 using net::test::QuicSentPacketManagerPeer;
39 using net::test::QuicSessionPeer; 39 using net::test::QuicSessionPeer;
40 using net::test::QuicSpdySessionPeer; 40 using net::test::QuicSpdySessionPeer;
41 using net::test::QuicSustainedBandwidthRecorderPeer; 41 using net::test::QuicSustainedBandwidthRecorderPeer;
42 using net::test::SupportedVersions; 42 using net::test::SupportedVersions;
43 using net::test::ValueRestore;
44 using net::test::kClientDataStreamId1; 43 using net::test::kClientDataStreamId1;
45 using net::test::kClientDataStreamId2; 44 using net::test::kClientDataStreamId2;
46 using net::test::kClientDataStreamId3; 45 using net::test::kClientDataStreamId3;
47 using net::test::kInitialSessionFlowControlWindowForTest; 46 using net::test::kInitialSessionFlowControlWindowForTest;
48 using net::test::kInitialStreamFlowControlWindowForTest; 47 using net::test::kInitialStreamFlowControlWindowForTest;
49 using std::string; 48 using std::string;
50 using testing::StrictMock; 49 using testing::StrictMock;
51 using testing::_; 50 using testing::_;
52 51
53 namespace net { 52 namespace net {
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 EXPECT_FALSE( 555 EXPECT_FALSE(
557 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); 556 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get()));
558 session_->OnConfigNegotiated(); 557 session_->OnConfigNegotiated();
559 EXPECT_FALSE( 558 EXPECT_FALSE(
560 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); 559 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get()));
561 } 560 }
562 561
563 } // namespace 562 } // namespace
564 } // namespace test 563 } // namespace test
565 } // namespace net 564 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_sent_packet_manager_test.cc ('k') | net/quic/core/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698