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

Side by Side Diff: net/quic/core/quic_connection_test.cc

Issue 2743883002: Remove PathCloseFrame, QuicPathId, DefaultPathId and InvalidPathId. (Closed)
Patch Set: Created 3 years, 9 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/core/quic_connection.cc ('k') | net/quic/core/quic_constants.h » ('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/core/quic_connection.h" 5 #include "net/quic/core/quic_connection.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <memory> 8 #include <memory>
9 #include <ostream> 9 #include <ostream>
10 #include <utility> 10 #include <utility>
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 QuicStopWaitingFrame* frame, 922 QuicStopWaitingFrame* frame,
923 EncryptionLevel level) { 923 EncryptionLevel level) {
924 return ProcessFramePacketAtLevel(number, QuicFrame(frame), 924 return ProcessFramePacketAtLevel(number, QuicFrame(frame),
925 ENCRYPTION_INITIAL); 925 ENCRYPTION_INITIAL);
926 } 926 }
927 927
928 void ProcessGoAwayPacket(QuicGoAwayFrame* frame) { 928 void ProcessGoAwayPacket(QuicGoAwayFrame* frame) {
929 ProcessFramePacket(QuicFrame(frame)); 929 ProcessFramePacket(QuicFrame(frame));
930 } 930 }
931 931
932 void ProcessPathClosePacket(QuicPathCloseFrame* frame) {
933 ProcessFramePacket(QuicFrame(frame));
934 }
935
936 bool IsMissing(QuicPacketNumber number) { 932 bool IsMissing(QuicPacketNumber number) {
937 return IsAwaitingPacket(*outgoing_ack(), number, 0); 933 return IsAwaitingPacket(*outgoing_ack(), number, 0);
938 } 934 }
939 935
940 QuicPacket* ConstructPacket(QuicPacketHeader header, QuicFrames frames) { 936 QuicPacket* ConstructPacket(QuicPacketHeader header, QuicFrames frames) {
941 QuicPacket* packet = BuildUnsizedDataPacket(&peer_framer_, header, frames); 937 QuicPacket* packet = BuildUnsizedDataPacket(&peer_framer_, header, frames);
942 EXPECT_NE(nullptr, packet); 938 EXPECT_NE(nullptr, packet);
943 return packet; 939 return packet;
944 } 940 }
945 941
(...skipping 4188 matching lines...) Expand 10 before | Expand all | Expand 10 after
5134 error_details, ConnectionCloseSource::FROM_PEER)); 5130 error_details, ConnectionCloseSource::FROM_PEER));
5135 connection_.set_perspective(Perspective::IS_CLIENT); 5131 connection_.set_perspective(Perspective::IS_CLIENT);
5136 connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT, 5132 connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT,
5137 error_details, 5133 error_details,
5138 ConnectionCloseBehavior::SILENT_CLOSE); 5134 ConnectionCloseBehavior::SILENT_CLOSE);
5139 } 5135 }
5140 5136
5141 } // namespace 5137 } // namespace
5142 } // namespace test 5138 } // namespace test
5143 } // namespace net 5139 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection.cc ('k') | net/quic/core/quic_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698