| OLD | NEW |
| 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/test_tools/quic_test_utils.h" | 5 #include "net/tools/quic/test_tools/quic_test_utils.h" |
| 6 | 6 |
| 7 #include "net/quic/quic_connection.h" | 7 #include "net/quic/quic_connection.h" |
| 8 #include "net/quic/test_tools/quic_connection_peer.h" | 8 #include "net/quic/test_tools/quic_connection_peer.h" |
| 9 #include "net/quic/test_tools/quic_test_utils.h" | 9 #include "net/quic/test_tools/quic_test_utils.h" |
| 10 #include "net/tools/epoll_server/epoll_server.h" | 10 #include "net/tools/epoll_server/epoll_server.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 | 117 |
| 118 MockTimeWaitListManager::MockTimeWaitListManager( | 118 MockTimeWaitListManager::MockTimeWaitListManager( |
| 119 QuicPacketWriter* writer, | 119 QuicPacketWriter* writer, |
| 120 QuicServerSessionVisitor* visitor, | 120 QuicServerSessionVisitor* visitor, |
| 121 QuicConnectionHelperInterface* helper) | 121 QuicConnectionHelperInterface* helper) |
| 122 : QuicTimeWaitListManager(writer, visitor, helper, | 122 : QuicTimeWaitListManager(writer, visitor, helper, |
| 123 QuicSupportedVersions()) { | 123 QuicSupportedVersions()) { |
| 124 // Though AddConnectionIdToTimeWait is mocked, we want to retain its | 124 // Though AddConnectionIdToTimeWait is mocked, we want to retain its |
| 125 // functionality. | 125 // functionality. |
| 126 EXPECT_CALL(*this, AddConnectionIdToTimeWait(_, _, _)).Times(AnyNumber()); | 126 EXPECT_CALL(*this, AddConnectionIdToTimeWait(_, _, _, _)).Times(AnyNumber()); |
| 127 ON_CALL(*this, AddConnectionIdToTimeWait(_, _, _)) | 127 ON_CALL(*this, AddConnectionIdToTimeWait(_, _, _, _)) |
| 128 .WillByDefault( | 128 .WillByDefault( |
| 129 Invoke(this, &MockTimeWaitListManager:: | 129 Invoke(this, &MockTimeWaitListManager:: |
| 130 QuicTimeWaitListManager_AddConnectionIdToTimeWait)); | 130 QuicTimeWaitListManager_AddConnectionIdToTimeWait)); |
| 131 } | 131 } |
| 132 | 132 |
| 133 MockTimeWaitListManager::~MockTimeWaitListManager() { | 133 MockTimeWaitListManager::~MockTimeWaitListManager() { |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace test | 136 } // namespace test |
| 137 } // namespace tools | 137 } // namespace tools |
| 138 } // namespace net | 138 } // namespace net |
| OLD | NEW |