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

Side by Side Diff: net/quic/test_tools/quic_test_utils.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/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
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698