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

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

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enough! Created 5 years, 1 month 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 TestConnectionHelper* helper, 417 TestConnectionHelper* helper,
418 const PacketWriterFactory& factory, 418 const PacketWriterFactory& factory,
419 Perspective perspective, 419 Perspective perspective,
420 QuicVersion version) 420 QuicVersion version)
421 : QuicConnection(connection_id, 421 : QuicConnection(connection_id,
422 address, 422 address,
423 helper, 423 helper,
424 factory, 424 factory,
425 /* owns_writer= */ false, 425 /* owns_writer= */ false,
426 perspective, 426 perspective,
427 /* is_secure= */ false,
428 SupportedVersions(version)) { 427 SupportedVersions(version)) {
429 // Disable tail loss probes for most tests. 428 // Disable tail loss probes for most tests.
430 QuicSentPacketManagerPeer::SetMaxTailLossProbes( 429 QuicSentPacketManagerPeer::SetMaxTailLossProbes(
431 QuicConnectionPeer::GetSentPacketManager(this), 0); 430 QuicConnectionPeer::GetSentPacketManager(this), 0);
432 writer()->set_perspective(perspective); 431 writer()->set_perspective(perspective);
433 } 432 }
434 433
435 void SendAck() { 434 void SendAck() {
436 QuicConnectionPeer::SendAck(this); 435 QuicConnectionPeer::SendAck(this);
437 } 436 }
(...skipping 4418 matching lines...) Expand 10 before | Expand all | Expand 10 after
4856 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1); 4855 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1);
4857 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); 4856 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away.");
4858 EXPECT_TRUE(connection_.goaway_sent()); 4857 EXPECT_TRUE(connection_.goaway_sent());
4859 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0); 4858 EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0);
4860 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away."); 4859 connection_.SendGoAway(QUIC_PEER_GOING_AWAY, kHeadersStreamId, "Going Away.");
4861 } 4860 }
4862 4861
4863 } // namespace 4862 } // namespace
4864 } // namespace test 4863 } // namespace test
4865 } // namespace net 4864 } // 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