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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_connection_logger.cc ('k') | net/quic/quic_crypto_client_stream.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/quic_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/quic/congestion_control/receive_algorithm_interface.h" 10 #include "net/quic/congestion_control/receive_algorithm_interface.h"
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 1882
1883 entropy_hash ^= packet_entropy_hash; 1883 entropy_hash ^= packet_entropy_hash;
1884 } 1884 }
1885 EXPECT_TRUE(QuicConnectionPeer::IsValidEntropy( 1885 EXPECT_TRUE(QuicConnectionPeer::IsValidEntropy(
1886 &connection_, max_sequence_number, missing_packets, entropy_hash)) 1886 &connection_, max_sequence_number, missing_packets, entropy_hash))
1887 << ""; 1887 << "";
1888 } 1888 }
1889 1889
1890 // TODO(satyamsehkhar): Add more test when we start supporting more versions. 1890 // TODO(satyamsehkhar): Add more test when we start supporting more versions.
1891 TEST_F(QuicConnectionTest, SendVersionNegotiationPacket) { 1891 TEST_F(QuicConnectionTest, SendVersionNegotiationPacket) {
1892 QuicVersionTag kRandomVersion = 143; 1892 QuicTag kRandomVersion = 143;
1893 QuicFramerPeer::SetVersion(&framer_, kRandomVersion); 1893 QuicFramerPeer::SetVersion(&framer_, kRandomVersion);
1894 1894
1895 QuicPacketHeader header; 1895 QuicPacketHeader header;
1896 header.public_header.guid = guid_; 1896 header.public_header.guid = guid_;
1897 header.public_header.reset_flag = false; 1897 header.public_header.reset_flag = false;
1898 header.public_header.version_flag = true; 1898 header.public_header.version_flag = true;
1899 header.entropy_flag = false; 1899 header.entropy_flag = false;
1900 header.fec_flag = false; 1900 header.fec_flag = false;
1901 header.fec_entropy_flag = false; 1901 header.fec_entropy_flag = false;
1902 header.packet_sequence_number = 12; 1902 header.packet_sequence_number = 12;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1989 EXPECT_EQ(received_bytes, stats.bytes_received); 1989 EXPECT_EQ(received_bytes, stats.bytes_received);
1990 EXPECT_EQ(4u, stats.packets_received); 1990 EXPECT_EQ(4u, stats.packets_received);
1991 1991
1992 EXPECT_EQ(1u, stats.packets_revived); 1992 EXPECT_EQ(1u, stats.packets_revived);
1993 EXPECT_EQ(1u, stats.packets_dropped); 1993 EXPECT_EQ(1u, stats.packets_dropped);
1994 } 1994 }
1995 1995
1996 } // namespace 1996 } // namespace
1997 } // namespace test 1997 } // namespace test
1998 } // namespace net 1998 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection_logger.cc ('k') | net/quic/quic_crypto_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698