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 "base/sha1.h" | 7 #include "base/sha1.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "net/quic/crypto/crypto_framer.h" | 10 #include "net/quic/crypto/crypto_framer.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 ON_CALL(*this, OnPacketHeader(_)) | 102 ON_CALL(*this, OnPacketHeader(_)) |
103 .WillByDefault(testing::Return(true)); | 103 .WillByDefault(testing::Return(true)); |
104 | 104 |
105 ON_CALL(*this, OnStreamFrame(_)) | 105 ON_CALL(*this, OnStreamFrame(_)) |
106 .WillByDefault(testing::Return(true)); | 106 .WillByDefault(testing::Return(true)); |
107 | 107 |
108 ON_CALL(*this, OnAckFrame(_)) | 108 ON_CALL(*this, OnAckFrame(_)) |
109 .WillByDefault(testing::Return(true)); | 109 .WillByDefault(testing::Return(true)); |
110 | 110 |
111 ON_CALL(*this, OnCongestionFeedbackFrame(_)) | |
112 .WillByDefault(testing::Return(true)); | |
113 | |
114 ON_CALL(*this, OnStopWaitingFrame(_)) | 111 ON_CALL(*this, OnStopWaitingFrame(_)) |
115 .WillByDefault(testing::Return(true)); | 112 .WillByDefault(testing::Return(true)); |
116 | 113 |
117 ON_CALL(*this, OnPingFrame(_)) | 114 ON_CALL(*this, OnPingFrame(_)) |
118 .WillByDefault(testing::Return(true)); | 115 .WillByDefault(testing::Return(true)); |
119 | 116 |
120 ON_CALL(*this, OnRstStreamFrame(_)) | 117 ON_CALL(*this, OnRstStreamFrame(_)) |
121 .WillByDefault(testing::Return(true)); | 118 .WillByDefault(testing::Return(true)); |
122 | 119 |
123 ON_CALL(*this, OnConnectionCloseFrame(_)) | 120 ON_CALL(*this, OnConnectionCloseFrame(_)) |
(...skipping 25 matching lines...) Expand all Loading... |
149 } | 146 } |
150 | 147 |
151 bool NoOpFramerVisitor::OnStreamFrame(const QuicStreamFrame& frame) { | 148 bool NoOpFramerVisitor::OnStreamFrame(const QuicStreamFrame& frame) { |
152 return true; | 149 return true; |
153 } | 150 } |
154 | 151 |
155 bool NoOpFramerVisitor::OnAckFrame(const QuicAckFrame& frame) { | 152 bool NoOpFramerVisitor::OnAckFrame(const QuicAckFrame& frame) { |
156 return true; | 153 return true; |
157 } | 154 } |
158 | 155 |
159 bool NoOpFramerVisitor::OnCongestionFeedbackFrame( | |
160 const QuicCongestionFeedbackFrame& frame) { | |
161 return true; | |
162 } | |
163 | |
164 bool NoOpFramerVisitor::OnStopWaitingFrame( | 156 bool NoOpFramerVisitor::OnStopWaitingFrame( |
165 const QuicStopWaitingFrame& frame) { | 157 const QuicStopWaitingFrame& frame) { |
166 return true; | 158 return true; |
167 } | 159 } |
168 | 160 |
169 bool NoOpFramerVisitor::OnPingFrame(const QuicPingFrame& frame) { | 161 bool NoOpFramerVisitor::OnPingFrame(const QuicPingFrame& frame) { |
170 return true; | 162 return true; |
171 } | 163 } |
172 | 164 |
173 bool NoOpFramerVisitor::OnRstStreamFrame( | 165 bool NoOpFramerVisitor::OnRstStreamFrame( |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 // called. | 668 // called. |
677 factory_->current_writer_ = this; | 669 factory_->current_writer_ = this; |
678 return QuicPerConnectionPacketWriter::WritePacket(buffer, | 670 return QuicPerConnectionPacketWriter::WritePacket(buffer, |
679 buf_len, | 671 buf_len, |
680 self_address, | 672 self_address, |
681 peer_address); | 673 peer_address); |
682 } | 674 } |
683 | 675 |
684 } // namespace test | 676 } // namespace test |
685 } // namespace net | 677 } // namespace net |
OLD | NEW |