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/quic/test_tools/quic_test_utils.h" | 5 #include "net/quic/test_tools/quic_test_utils.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "net/quic/core/crypto/crypto_framer.h" | 10 #include "net/quic/core/crypto/crypto_framer.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 bool NoOpFramerVisitor::OnWindowUpdateFrame( | 215 bool NoOpFramerVisitor::OnWindowUpdateFrame( |
216 const QuicWindowUpdateFrame& frame) { | 216 const QuicWindowUpdateFrame& frame) { |
217 return true; | 217 return true; |
218 } | 218 } |
219 | 219 |
220 bool NoOpFramerVisitor::OnBlockedFrame(const QuicBlockedFrame& frame) { | 220 bool NoOpFramerVisitor::OnBlockedFrame(const QuicBlockedFrame& frame) { |
221 return true; | 221 return true; |
222 } | 222 } |
223 | 223 |
224 bool NoOpFramerVisitor::OnPathCloseFrame(const QuicPathCloseFrame& frame) { | |
225 return true; | |
226 } | |
227 | |
228 MockQuicConnectionVisitor::MockQuicConnectionVisitor() {} | 224 MockQuicConnectionVisitor::MockQuicConnectionVisitor() {} |
229 | 225 |
230 MockQuicConnectionVisitor::~MockQuicConnectionVisitor() {} | 226 MockQuicConnectionVisitor::~MockQuicConnectionVisitor() {} |
231 | 227 |
232 MockQuicConnectionHelper::MockQuicConnectionHelper() {} | 228 MockQuicConnectionHelper::MockQuicConnectionHelper() {} |
233 | 229 |
234 MockQuicConnectionHelper::~MockQuicConnectionHelper() {} | 230 MockQuicConnectionHelper::~MockQuicConnectionHelper() {} |
235 | 231 |
236 const QuicClock* MockQuicConnectionHelper::GetClock() const { | 232 const QuicClock* MockQuicConnectionHelper::GetClock() const { |
237 return &clock_; | 233 return &clock_; |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 // strike register worries that we've just overflowed a uint32_t time. | 820 // strike register worries that we've just overflowed a uint32_t time. |
825 (*server_connection)->AdvanceTime(connection_start_time); | 821 (*server_connection)->AdvanceTime(connection_start_time); |
826 } | 822 } |
827 | 823 |
828 QuicStreamId QuicClientDataStreamId(int i) { | 824 QuicStreamId QuicClientDataStreamId(int i) { |
829 return kClientDataStreamId1 + 2 * i; | 825 return kClientDataStreamId1 + 2 * i; |
830 } | 826 } |
831 | 827 |
832 } // namespace test | 828 } // namespace test |
833 } // namespace net | 829 } // namespace net |
OLD | NEW |