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

Side by Side Diff: net/tools/quic/test_tools/mock_quic_time_wait_list_manager.h

Issue 1908103002: Landing Recent QUIC changes until 4/15/2016 17:20 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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 // Common utilities for Quic tests 5 // Common utilities for Quic tests
6 6
7 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ 7 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_
8 #define NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ 8 #define NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_
9 9
10 #include "net/tools/quic/quic_time_wait_list_manager.h" 10 #include "net/tools/quic/quic_time_wait_list_manager.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace net { 13 namespace net {
14 namespace test { 14 namespace test {
15 15
16 class MockTimeWaitListManager : public QuicTimeWaitListManager { 16 class MockTimeWaitListManager : public QuicTimeWaitListManager {
17 public: 17 public:
18 MockTimeWaitListManager(QuicPacketWriter* writer, 18 MockTimeWaitListManager(QuicPacketWriter* writer,
19 QuicServerSessionVisitor* visitor, 19 QuicServerSessionVisitor* visitor,
20 QuicConnectionHelperInterface* helper); 20 QuicConnectionHelperInterface* helper,
21 QuicAlarmFactory* alarm_factory);
21 ~MockTimeWaitListManager() override; 22 ~MockTimeWaitListManager() override;
22 23
23 MOCK_METHOD4(AddConnectionIdToTimeWait, 24 MOCK_METHOD4(AddConnectionIdToTimeWait,
24 void(QuicConnectionId connection_id, 25 void(QuicConnectionId connection_id,
25 QuicVersion version, 26 QuicVersion version,
26 bool connection_rejected_statelessly, 27 bool connection_rejected_statelessly,
27 std::vector<QuicEncryptedPacket*>* termination_packets)); 28 std::vector<QuicEncryptedPacket*>* termination_packets));
28 29
29 void QuicTimeWaitListManager_AddConnectionIdToTimeWait( 30 void QuicTimeWaitListManager_AddConnectionIdToTimeWait(
30 QuicConnectionId connection_id, 31 QuicConnectionId connection_id,
(...skipping 16 matching lines...) Expand all
47 void(QuicConnectionId connection_id, 48 void(QuicConnectionId connection_id,
48 const QuicVersionVector& supported_versions, 49 const QuicVersionVector& supported_versions,
49 const IPEndPoint& server_address, 50 const IPEndPoint& server_address,
50 const IPEndPoint& client_address)); 51 const IPEndPoint& client_address));
51 }; 52 };
52 53
53 } // namespace test 54 } // namespace test
54 } // namespace net 55 } // namespace net
55 56
56 #endif // NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ 57 #endif // NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_time_wait_list_manager_test.cc ('k') | net/tools/quic/test_tools/mock_quic_time_wait_list_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698