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

Side by Side Diff: net/tools/quic/quic_dispatcher_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
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 "net/tools/quic/quic_dispatcher.h" 5 #include "net/tools/quic/quic_dispatcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 #include "testing/gmock_mutant.h" 34 #include "testing/gmock_mutant.h"
35 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
36 36
37 using base::IntToString; 37 using base::IntToString;
38 using base::StringPiece; 38 using base::StringPiece;
39 using net::EpollServer; 39 using net::EpollServer;
40 using net::test::ConstructEncryptedPacket; 40 using net::test::ConstructEncryptedPacket;
41 using net::test::CryptoTestUtils; 41 using net::test::CryptoTestUtils;
42 using net::test::MockQuicConnection; 42 using net::test::MockQuicConnection;
43 using net::test::MockQuicConnectionHelper; 43 using net::test::MockQuicConnectionHelper;
44 using net::test::ValueRestore;
45 using std::ostream; 44 using std::ostream;
46 using std::string; 45 using std::string;
47 using std::vector; 46 using std::vector;
48 using testing::CreateFunctor; 47 using testing::CreateFunctor;
49 using testing::DoAll; 48 using testing::DoAll;
50 using testing::InSequence; 49 using testing::InSequence;
51 using testing::Invoke; 50 using testing::Invoke;
52 using testing::WithoutArgs; 51 using testing::WithoutArgs;
53 using testing::_; 52 using testing::_;
54 53
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 // New arrived CHLO will be dropped because this connection is in time wait 1276 // New arrived CHLO will be dropped because this connection is in time wait
1278 // list. 1277 // list.
1279 ASSERT_TRUE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); 1278 ASSERT_TRUE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id));
1280 EXPECT_CALL(*time_wait_list_manager_, ProcessPacket(_, _, conn_id, _, _)); 1279 EXPECT_CALL(*time_wait_list_manager_, ProcessPacket(_, _, conn_id, _, _));
1281 ProcessPacket(client_address, conn_id, true, false, SerializeFullCHLO()); 1280 ProcessPacket(client_address, conn_id, true, false, SerializeFullCHLO());
1282 } 1281 }
1283 1282
1284 } // namespace 1283 } // namespace
1285 } // namespace test 1284 } // namespace test
1286 } // namespace net 1285 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_session_test.cc ('k') | net/tools/quic/quic_simple_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698