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

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

Issue 1918953003: Landing Recent QUIC changes until 4/22/2016 14:55 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted SpdyFramerTests missed while mergeing 120451808 Created 4 years, 7 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
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/quic/test_tools/simple_quic_framer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 7 #include <memory>
8 8
9 #include "base/sha1.h" 9 #include "base/sha1.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 .WillByDefault(testing::Return(true)); 107 .WillByDefault(testing::Return(true));
108 108
109 ON_CALL(*this, OnPacketHeader(_)).WillByDefault(testing::Return(true)); 109 ON_CALL(*this, OnPacketHeader(_)).WillByDefault(testing::Return(true));
110 110
111 ON_CALL(*this, OnStreamFrame(_)).WillByDefault(testing::Return(true)); 111 ON_CALL(*this, OnStreamFrame(_)).WillByDefault(testing::Return(true));
112 112
113 ON_CALL(*this, OnAckFrame(_)).WillByDefault(testing::Return(true)); 113 ON_CALL(*this, OnAckFrame(_)).WillByDefault(testing::Return(true));
114 114
115 ON_CALL(*this, OnStopWaitingFrame(_)).WillByDefault(testing::Return(true)); 115 ON_CALL(*this, OnStopWaitingFrame(_)).WillByDefault(testing::Return(true));
116 116
117 ON_CALL(*this, OnPaddingFrame(_)).WillByDefault(testing::Return(true));
118
117 ON_CALL(*this, OnPingFrame(_)).WillByDefault(testing::Return(true)); 119 ON_CALL(*this, OnPingFrame(_)).WillByDefault(testing::Return(true));
118 120
119 ON_CALL(*this, OnRstStreamFrame(_)).WillByDefault(testing::Return(true)); 121 ON_CALL(*this, OnRstStreamFrame(_)).WillByDefault(testing::Return(true));
120 122
121 ON_CALL(*this, OnConnectionCloseFrame(_)) 123 ON_CALL(*this, OnConnectionCloseFrame(_))
122 .WillByDefault(testing::Return(true)); 124 .WillByDefault(testing::Return(true));
123 125
124 ON_CALL(*this, OnGoAwayFrame(_)).WillByDefault(testing::Return(true)); 126 ON_CALL(*this, OnGoAwayFrame(_)).WillByDefault(testing::Return(true));
125 } 127 }
126 128
(...skipping 22 matching lines...) Expand all
149 } 151 }
150 152
151 bool NoOpFramerVisitor::OnAckFrame(const QuicAckFrame& frame) { 153 bool NoOpFramerVisitor::OnAckFrame(const QuicAckFrame& frame) {
152 return true; 154 return true;
153 } 155 }
154 156
155 bool NoOpFramerVisitor::OnStopWaitingFrame(const QuicStopWaitingFrame& frame) { 157 bool NoOpFramerVisitor::OnStopWaitingFrame(const QuicStopWaitingFrame& frame) {
156 return true; 158 return true;
157 } 159 }
158 160
161 bool NoOpFramerVisitor::OnPaddingFrame(const QuicPaddingFrame& frame) {
162 return true;
163 }
164
159 bool NoOpFramerVisitor::OnPingFrame(const QuicPingFrame& frame) { 165 bool NoOpFramerVisitor::OnPingFrame(const QuicPingFrame& frame) {
160 return true; 166 return true;
161 } 167 }
162 168
163 bool NoOpFramerVisitor::OnRstStreamFrame(const QuicRstStreamFrame& frame) { 169 bool NoOpFramerVisitor::OnRstStreamFrame(const QuicRstStreamFrame& frame) {
164 return true; 170 return true;
165 } 171 }
166 172
167 bool NoOpFramerVisitor::OnConnectionCloseFrame( 173 bool NoOpFramerVisitor::OnConnectionCloseFrame(
168 const QuicConnectionCloseFrame& frame) { 174 const QuicConnectionCloseFrame& frame) {
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 // strike register worries that we've just overflowed a uint32_t time. 830 // strike register worries that we've just overflowed a uint32_t time.
825 (*server_connection)->AdvanceTime(connection_start_time); 831 (*server_connection)->AdvanceTime(connection_start_time);
826 } 832 }
827 833
828 QuicStreamId QuicClientDataStreamId(int i) { 834 QuicStreamId QuicClientDataStreamId(int i) {
829 return kClientDataStreamId1 + 2 * i; 835 return kClientDataStreamId1 + 2 * i;
830 } 836 }
831 837
832 } // namespace test 838 } // namespace test
833 } // namespace net 839 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/quic/test_tools/simple_quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698