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

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

Issue 1397983007: relnote: remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rch_insecure_quic
Patch Set: Compile fix Created 5 years, 2 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/quic_connection.cc ('k') | net/quic/quic_crypto_client_stream.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/quic_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 TestConnectionHelper* helper, 405 TestConnectionHelper* helper,
406 const PacketWriterFactory& factory, 406 const PacketWriterFactory& factory,
407 Perspective perspective, 407 Perspective perspective,
408 QuicVersion version) 408 QuicVersion version)
409 : QuicConnection(connection_id, 409 : QuicConnection(connection_id,
410 address, 410 address,
411 helper, 411 helper,
412 factory, 412 factory,
413 /* owns_writer= */ false, 413 /* owns_writer= */ false,
414 perspective, 414 perspective,
415 /* is_secure= */ false,
416 SupportedVersions(version)) { 415 SupportedVersions(version)) {
417 // Disable tail loss probes for most tests. 416 // Disable tail loss probes for most tests.
418 QuicSentPacketManagerPeer::SetMaxTailLossProbes( 417 QuicSentPacketManagerPeer::SetMaxTailLossProbes(
419 QuicConnectionPeer::GetSentPacketManager(this), 0); 418 QuicConnectionPeer::GetSentPacketManager(this), 0);
420 writer()->set_perspective(perspective); 419 writer()->set_perspective(perspective);
421 } 420 }
422 421
423 void SendAck() { 422 void SendAck() {
424 QuicConnectionPeer::SendAck(this); 423 QuicConnectionPeer::SendAck(this);
425 } 424 }
(...skipping 4380 matching lines...) Expand 10 before | Expand all | Expand 10 after
4806 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1); 4805 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1);
4807 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); 4806 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away.");
4808 EXPECT_TRUE(connection_.goaway_sent()); 4807 EXPECT_TRUE(connection_.goaway_sent());
4809 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0); 4808 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0);
4810 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); 4809 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away.");
4811 } 4810 }
4812 4811
4813 } // namespace 4812 } // namespace
4814 } // namespace test 4813 } // namespace test
4815 } // namespace net 4814 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698