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

Side by Side Diff: net/tools/quic/quic_simple_server_session_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/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_spdy_client_stream_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/tools/quic/quic_simple_server_session.h" 5 #include "net/tools/quic/quic_simple_server_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 25 matching lines...) Expand all
36 using net::test::MockQuicConnection; 36 using net::test::MockQuicConnection;
37 using net::test::MockQuicConnectionHelper; 37 using net::test::MockQuicConnectionHelper;
38 using net::test::QuicConfigPeer; 38 using net::test::QuicConfigPeer;
39 using net::test::QuicConnectionPeer; 39 using net::test::QuicConnectionPeer;
40 using net::test::QuicSpdyStreamPeer; 40 using net::test::QuicSpdyStreamPeer;
41 using net::test::QuicSentPacketManagerPeer; 41 using net::test::QuicSentPacketManagerPeer;
42 using net::test::QuicSessionPeer; 42 using net::test::QuicSessionPeer;
43 using net::test::QuicSpdySessionPeer; 43 using net::test::QuicSpdySessionPeer;
44 using net::test::QuicSustainedBandwidthRecorderPeer; 44 using net::test::QuicSustainedBandwidthRecorderPeer;
45 using net::test::SupportedVersions; 45 using net::test::SupportedVersions;
46 using net::test::ValueRestore;
47 using net::test::kClientDataStreamId1; 46 using net::test::kClientDataStreamId1;
48 using net::test::kClientDataStreamId2; 47 using net::test::kClientDataStreamId2;
49 using net::test::kClientDataStreamId3; 48 using net::test::kClientDataStreamId3;
50 using net::test::kInitialSessionFlowControlWindowForTest; 49 using net::test::kInitialSessionFlowControlWindowForTest;
51 using net::test::kInitialStreamFlowControlWindowForTest; 50 using net::test::kInitialStreamFlowControlWindowForTest;
52 using std::string; 51 using std::string;
53 using testing::StrictMock; 52 using testing::StrictMock;
54 using testing::_; 53 using testing::_;
55 using testing::InSequence; 54 using testing::InSequence;
56 using testing::Return; 55 using testing::Return;
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false))); 619 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false)));
621 620
622 EXPECT_CALL(*connection_, SendBlocked(stream_to_open)); 621 EXPECT_CALL(*connection_, SendBlocked(stream_to_open));
623 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); 622 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0);
624 visitor_->OnRstStream(rst); 623 visitor_->OnRstStream(rst);
625 } 624 }
626 625
627 } // namespace 626 } // namespace
628 } // namespace test 627 } // namespace test
629 } // namespace net 628 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_spdy_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698