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

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 1660533002: Landing Recent QUIC changes until 01/26/2016 18:14 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/tools/quic/quic_client_session.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 <stddef.h> 5 #include <stddef.h>
6 #include <sys/epoll.h> 6 #include <sys/epoll.h>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 } 1161 }
1162 1162
1163 TEST_P(EndToEndTest, NegotiateMaxOpenStreams) { 1163 TEST_P(EndToEndTest, NegotiateMaxOpenStreams) {
1164 // Negotiate 1 max open stream. 1164 // Negotiate 1 max open stream.
1165 client_config_.SetMaxStreamsPerConnection(1, 1); 1165 client_config_.SetMaxStreamsPerConnection(1, 1);
1166 ASSERT_TRUE(Initialize()); 1166 ASSERT_TRUE(Initialize());
1167 client_->client()->WaitForCryptoHandshakeConfirmed(); 1167 client_->client()->WaitForCryptoHandshakeConfirmed();
1168 1168
1169 // Make the client misbehave after negotiation. 1169 // Make the client misbehave after negotiation.
1170 const int kServerMaxStreams = kMaxStreamsMinimumIncrement + 1; 1170 const int kServerMaxStreams = kMaxStreamsMinimumIncrement + 1;
1171 QuicSessionPeer::SetMaxOpenStreams(client_->client()->session(), 1171 QuicSessionPeer::SetMaxOpenOutgoingStreams(client_->client()->session(),
1172 kServerMaxStreams + 1); 1172 kServerMaxStreams + 1);
1173 1173
1174 HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo"); 1174 HTTPMessage request(HttpConstants::HTTP_1_1, HttpConstants::POST, "/foo");
1175 request.AddHeader("content-length", "3"); 1175 request.AddHeader("content-length", "3");
1176 request.set_has_complete_message(false); 1176 request.set_has_complete_message(false);
1177 1177
1178 // The server supports a small number of additional streams beyond the 1178 // The server supports a small number of additional streams beyond the
1179 // negotiated limit. Open enough streams to go beyond that limit. 1179 // negotiated limit. Open enough streams to go beyond that limit.
1180 for (int i = 0; i < kServerMaxStreams + 1; ++i) { 1180 for (int i = 0; i < kServerMaxStreams + 1; ++i) {
1181 client_->SendMessage(request); 1181 client_->SendMessage(request);
1182 } 1182 }
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 public: 1454 public:
1455 WrongAddressWriter() { 1455 WrongAddressWriter() {
1456 IPAddressNumber ip; 1456 IPAddressNumber ip;
1457 CHECK(net::ParseIPLiteralToNumber("127.0.0.2", &ip)); 1457 CHECK(net::ParseIPLiteralToNumber("127.0.0.2", &ip));
1458 self_address_ = IPEndPoint(ip, 0); 1458 self_address_ = IPEndPoint(ip, 0);
1459 } 1459 }
1460 1460
1461 WriteResult WritePacket(const char* buffer, 1461 WriteResult WritePacket(const char* buffer,
1462 size_t buf_len, 1462 size_t buf_len,
1463 const IPAddressNumber& /*real_self_address*/, 1463 const IPAddressNumber& /*real_self_address*/,
1464 const IPEndPoint& peer_address) override { 1464 const IPEndPoint& peer_address,
1465 PerPacketOptions* options) override {
1465 // Use wrong address! 1466 // Use wrong address!
1466 return QuicPacketWriterWrapper::WritePacket( 1467 return QuicPacketWriterWrapper::WritePacket(buffer, buf_len,
1467 buffer, buf_len, self_address_.address().bytes(), peer_address); 1468 self_address_.address().bytes(),
1469 peer_address, options);
1468 } 1470 }
1469 1471
1470 bool IsWriteBlockedDataBuffered() const override { return false; } 1472 bool IsWriteBlockedDataBuffered() const override { return false; }
1471 1473
1472 IPEndPoint self_address_; 1474 IPEndPoint self_address_;
1473 }; 1475 };
1474 1476
1475 TEST_P(EndToEndTest, ConnectionMigrationClientIPChanged) { 1477 TEST_P(EndToEndTest, ConnectionMigrationClientIPChanged) {
1476 ValueRestore<bool> old_flag(&FLAGS_quic_disable_non_nat_address_migration,
1477 false);
1478 ASSERT_TRUE(Initialize()); 1478 ASSERT_TRUE(Initialize());
1479 1479
1480 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo")); 1480 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo"));
1481 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 1481 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
1482 1482
1483 // Store the client IP address which was used to send the first request. 1483 // Store the client IP address which was used to send the first request.
1484 IPAddressNumber old_host = 1484 IPAddressNumber old_host =
1485 client_->client()->GetLatestClientAddress().address().bytes(); 1485 client_->client()->GetLatestClientAddress().address().bytes();
1486 1486
1487 // Migrate socket to the new IP address. 1487 // Migrate socket to the new IP address.
1488 IPAddressNumber new_host; 1488 IPAddressNumber new_host;
1489 CHECK(net::ParseIPLiteralToNumber("127.0.0.2", &new_host)); 1489 CHECK(net::ParseIPLiteralToNumber("127.0.0.2", &new_host));
1490 EXPECT_NE(old_host, new_host); 1490 EXPECT_NE(old_host, new_host);
1491 ASSERT_TRUE(client_->client()->MigrateSocket(new_host)); 1491 ASSERT_TRUE(client_->client()->MigrateSocket(new_host));
1492 1492
1493 // Send a request using the new socket. 1493 // Send a request using the new socket.
1494 EXPECT_EQ(kBarResponseBody, client_->SendSynchronousRequest("/bar")); 1494 EXPECT_EQ(kBarResponseBody, client_->SendSynchronousRequest("/bar"));
1495 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 1495 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
1496 } 1496 }
1497 1497
1498 TEST_P(EndToEndTest, ConnectionMigrationClientPortChanged) { 1498 TEST_P(EndToEndTest, ConnectionMigrationClientPortChanged) {
1499 ValueRestore<bool> old_flag(&FLAGS_quic_disable_non_nat_address_migration,
1500 false);
1501 // Tests that the client's port can change during an established QUIC 1499 // Tests that the client's port can change during an established QUIC
1502 // connection, and that doing so does not result in the connection being 1500 // connection, and that doing so does not result in the connection being
1503 // closed by the server. 1501 // closed by the server.
1504 ASSERT_TRUE(Initialize()); 1502 ASSERT_TRUE(Initialize());
1505 1503
1506 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo")); 1504 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo"));
1507 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 1505 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
1508 1506
1509 // Store the client address which was used to send the first request. 1507 // Store the client address which was used to send the first request.
1510 IPEndPoint old_address = client_->client()->GetLatestClientAddress(); 1508 IPEndPoint old_address = client_->client()->GetLatestClientAddress();
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 QuicFramer framer(server_supported_versions_, QuicTime::Zero(), 1798 QuicFramer framer(server_supported_versions_, QuicTime::Zero(),
1801 Perspective::IS_SERVER); 1799 Perspective::IS_SERVER);
1802 scoped_ptr<QuicEncryptedPacket> packet(framer.BuildPublicResetPacket(header)); 1800 scoped_ptr<QuicEncryptedPacket> packet(framer.BuildPublicResetPacket(header));
1803 testing::NiceMock<MockQuicConnectionDebugVisitor> visitor; 1801 testing::NiceMock<MockQuicConnectionDebugVisitor> visitor;
1804 client_->client()->session()->connection()->set_debug_visitor(&visitor); 1802 client_->client()->session()->connection()->set_debug_visitor(&visitor);
1805 EXPECT_CALL(visitor, OnIncorrectConnectionId(incorrect_connection_id)) 1803 EXPECT_CALL(visitor, OnIncorrectConnectionId(incorrect_connection_id))
1806 .Times(1); 1804 .Times(1);
1807 // We must pause the server's thread in order to call WritePacket without 1805 // We must pause the server's thread in order to call WritePacket without
1808 // race conditions. 1806 // race conditions.
1809 server_thread_->Pause(); 1807 server_thread_->Pause();
1810 server_writer_->WritePacket(packet->data(), packet->length(), 1808 server_writer_->WritePacket(
1811 server_address_.address().bytes(), 1809 packet->data(), packet->length(), server_address_.address().bytes(),
1812 client_->client()->GetLatestClientAddress()); 1810 client_->client()->GetLatestClientAddress(), nullptr);
1813 server_thread_->Resume(); 1811 server_thread_->Resume();
1814 1812
1815 // The connection should be unaffected. 1813 // The connection should be unaffected.
1816 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo")); 1814 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo"));
1817 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 1815 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
1818 1816
1819 client_->client()->session()->connection()->set_debug_visitor(nullptr); 1817 client_->client()->session()->connection()->set_debug_visitor(nullptr);
1820 } 1818 }
1821 1819
1822 // Send a public reset from the client for a different connection ID. 1820 // Send a public reset from the client for a different connection ID.
1823 // It should be ignored. 1821 // It should be ignored.
1824 TEST_P(EndToEndTest, ClientSendPublicResetWithDifferentConnectionId) { 1822 TEST_P(EndToEndTest, ClientSendPublicResetWithDifferentConnectionId) {
1825 ASSERT_TRUE(Initialize()); 1823 ASSERT_TRUE(Initialize());
1826 1824
1827 // Send the public reset. 1825 // Send the public reset.
1828 QuicConnectionId incorrect_connection_id = 1826 QuicConnectionId incorrect_connection_id =
1829 client_->client()->session()->connection()->connection_id() + 1; 1827 client_->client()->session()->connection()->connection_id() + 1;
1830 QuicPublicResetPacket header; 1828 QuicPublicResetPacket header;
1831 header.public_header.connection_id = incorrect_connection_id; 1829 header.public_header.connection_id = incorrect_connection_id;
1832 header.public_header.reset_flag = true; 1830 header.public_header.reset_flag = true;
1833 header.public_header.version_flag = false; 1831 header.public_header.version_flag = false;
1834 header.rejected_packet_number = 10101; 1832 header.rejected_packet_number = 10101;
1835 QuicFramer framer(server_supported_versions_, QuicTime::Zero(), 1833 QuicFramer framer(server_supported_versions_, QuicTime::Zero(),
1836 Perspective::IS_CLIENT); 1834 Perspective::IS_CLIENT);
1837 scoped_ptr<QuicEncryptedPacket> packet(framer.BuildPublicResetPacket(header)); 1835 scoped_ptr<QuicEncryptedPacket> packet(framer.BuildPublicResetPacket(header));
1838 client_writer_->WritePacket( 1836 client_writer_->WritePacket(
1839 packet->data(), packet->length(), 1837 packet->data(), packet->length(),
1840 client_->client()->GetLatestClientAddress().address().bytes(), 1838 client_->client()->GetLatestClientAddress().address().bytes(),
1841 server_address_); 1839 server_address_, nullptr);
1842 1840
1843 // The connection should be unaffected. 1841 // The connection should be unaffected.
1844 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo")); 1842 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo"));
1845 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 1843 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
1846 } 1844 }
1847 1845
1848 // Send a version negotiation packet from the server for a different 1846 // Send a version negotiation packet from the server for a different
1849 // connection ID. It should be ignored. 1847 // connection ID. It should be ignored.
1850 TEST_P(EndToEndTest, ServerSendVersionNegotiationWithDifferentConnectionId) { 1848 TEST_P(EndToEndTest, ServerSendVersionNegotiationWithDifferentConnectionId) {
1851 ASSERT_TRUE(Initialize()); 1849 ASSERT_TRUE(Initialize());
1852 1850
1853 // Send the version negotiation packet. 1851 // Send the version negotiation packet.
1854 QuicConnectionId incorrect_connection_id = 1852 QuicConnectionId incorrect_connection_id =
1855 client_->client()->session()->connection()->connection_id() + 1; 1853 client_->client()->session()->connection()->connection_id() + 1;
1856 scoped_ptr<QuicEncryptedPacket> packet( 1854 scoped_ptr<QuicEncryptedPacket> packet(
1857 QuicFramer::BuildVersionNegotiationPacket(incorrect_connection_id, 1855 QuicFramer::BuildVersionNegotiationPacket(incorrect_connection_id,
1858 server_supported_versions_)); 1856 server_supported_versions_));
1859 testing::NiceMock<MockQuicConnectionDebugVisitor> visitor; 1857 testing::NiceMock<MockQuicConnectionDebugVisitor> visitor;
1860 client_->client()->session()->connection()->set_debug_visitor(&visitor); 1858 client_->client()->session()->connection()->set_debug_visitor(&visitor);
1861 EXPECT_CALL(visitor, OnIncorrectConnectionId(incorrect_connection_id)) 1859 EXPECT_CALL(visitor, OnIncorrectConnectionId(incorrect_connection_id))
1862 .Times(1); 1860 .Times(1);
1863 // We must pause the server's thread in order to call WritePacket without 1861 // We must pause the server's thread in order to call WritePacket without
1864 // race conditions. 1862 // race conditions.
1865 server_thread_->Pause(); 1863 server_thread_->Pause();
1866 server_writer_->WritePacket(packet->data(), packet->length(), 1864 server_writer_->WritePacket(
1867 server_address_.address().bytes(), 1865 packet->data(), packet->length(), server_address_.address().bytes(),
1868 client_->client()->GetLatestClientAddress()); 1866 client_->client()->GetLatestClientAddress(), nullptr);
1869 server_thread_->Resume(); 1867 server_thread_->Resume();
1870 1868
1871 // The connection should be unaffected. 1869 // The connection should be unaffected.
1872 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo")); 1870 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo"));
1873 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 1871 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
1874 1872
1875 client_->client()->session()->connection()->set_debug_visitor(nullptr); 1873 client_->client()->session()->connection()->set_debug_visitor(nullptr);
1876 } 1874 }
1877 1875
1878 // A bad header shouldn't tear down the connection, because the receiver can't 1876 // A bad header shouldn't tear down the connection, because the receiver can't
1879 // tell the connection ID. 1877 // tell the connection ID.
1880 TEST_P(EndToEndTest, BadPacketHeaderTruncated) { 1878 TEST_P(EndToEndTest, BadPacketHeaderTruncated) {
1881 ASSERT_TRUE(Initialize()); 1879 ASSERT_TRUE(Initialize());
1882 1880
1883 // Start the connection. 1881 // Start the connection.
1884 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo")); 1882 EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo"));
1885 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 1883 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
1886 1884
1887 // Packet with invalid public flags. 1885 // Packet with invalid public flags.
1888 char packet[] = {// public flags (8 byte connection_id) 1886 char packet[] = {// public flags (8 byte connection_id)
1889 0x3C, 1887 0x3C,
1890 // truncated connection ID 1888 // truncated connection ID
1891 0x11}; 1889 0x11};
1892 client_writer_->WritePacket( 1890 client_writer_->WritePacket(
1893 &packet[0], sizeof(packet), 1891 &packet[0], sizeof(packet),
1894 client_->client()->GetLatestClientAddress().address().bytes(), 1892 client_->client()->GetLatestClientAddress().address().bytes(),
1895 server_address_); 1893 server_address_, nullptr);
1896 // Give the server time to process the packet. 1894 // Give the server time to process the packet.
1897 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); 1895 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
1898 // Pause the server so we can access the server's internals without races. 1896 // Pause the server so we can access the server's internals without races.
1899 server_thread_->Pause(); 1897 server_thread_->Pause();
1900 QuicDispatcher* dispatcher = 1898 QuicDispatcher* dispatcher =
1901 QuicServerPeer::GetDispatcher(server_thread_->server()); 1899 QuicServerPeer::GetDispatcher(server_thread_->server());
1902 EXPECT_EQ(QUIC_INVALID_PACKET_HEADER, 1900 EXPECT_EQ(QUIC_INVALID_PACKET_HEADER,
1903 QuicDispatcherPeer::GetAndClearLastError(dispatcher)); 1901 QuicDispatcherPeer::GetAndClearLastError(dispatcher));
1904 server_thread_->Resume(); 1902 server_thread_->Resume();
1905 1903
(...skipping 18 matching lines...) Expand all
1924 // connection_id 1922 // connection_id
1925 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE, 1923 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE,
1926 // packet sequence number 1924 // packet sequence number
1927 0xBC, 0x9A, 0x78, 0x56, 0x34, 0x12, 1925 0xBC, 0x9A, 0x78, 0x56, 0x34, 0x12,
1928 // private flags 1926 // private flags
1929 0x00, 1927 0x00,
1930 }; 1928 };
1931 client_writer_->WritePacket( 1929 client_writer_->WritePacket(
1932 &packet[0], sizeof(packet), 1930 &packet[0], sizeof(packet),
1933 client_->client()->GetLatestClientAddress().address().bytes(), 1931 client_->client()->GetLatestClientAddress().address().bytes(),
1934 server_address_); 1932 server_address_, nullptr);
1935 // Give the server time to process the packet. 1933 // Give the server time to process the packet.
1936 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); 1934 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
1937 // Pause the server so we can access the server's internals without races. 1935 // Pause the server so we can access the server's internals without races.
1938 server_thread_->Pause(); 1936 server_thread_->Pause();
1939 QuicDispatcher* dispatcher = 1937 QuicDispatcher* dispatcher =
1940 QuicServerPeer::GetDispatcher(server_thread_->server()); 1938 QuicServerPeer::GetDispatcher(server_thread_->server());
1941 EXPECT_EQ(QUIC_INVALID_PACKET_HEADER, 1939 EXPECT_EQ(QUIC_INVALID_PACKET_HEADER,
1942 QuicDispatcherPeer::GetAndClearLastError(dispatcher)); 1940 QuicDispatcherPeer::GetAndClearLastError(dispatcher));
1943 server_thread_->Resume(); 1941 server_thread_->Resume();
1944 1942
(...skipping 15 matching lines...) Expand all
1960 client_->client()->session()->connection()->connection_id(), false, false, 1958 client_->client()->session()->connection()->connection_id(), false, false,
1961 false, kDefaultPathId, 1, "At least 20 characters.", 1959 false, kDefaultPathId, 1, "At least 20 characters.",
1962 PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER)); 1960 PACKET_8BYTE_CONNECTION_ID, PACKET_6BYTE_PACKET_NUMBER));
1963 // Damage the encrypted data. 1961 // Damage the encrypted data.
1964 string damaged_packet(packet->data(), packet->length()); 1962 string damaged_packet(packet->data(), packet->length());
1965 damaged_packet[30] ^= 0x01; 1963 damaged_packet[30] ^= 0x01;
1966 DVLOG(1) << "Sending bad packet."; 1964 DVLOG(1) << "Sending bad packet.";
1967 client_writer_->WritePacket( 1965 client_writer_->WritePacket(
1968 damaged_packet.data(), damaged_packet.length(), 1966 damaged_packet.data(), damaged_packet.length(),
1969 client_->client()->GetLatestClientAddress().address().bytes(), 1967 client_->client()->GetLatestClientAddress().address().bytes(),
1970 server_address_); 1968 server_address_, nullptr);
1971 // Give the server time to process the packet. 1969 // Give the server time to process the packet.
1972 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); 1970 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
1973 // This error is sent to the connection's OnError (which ignores it), so the 1971 // This error is sent to the connection's OnError (which ignores it), so the
1974 // dispatcher doesn't see it. 1972 // dispatcher doesn't see it.
1975 // Pause the server so we can access the server's internals without races. 1973 // Pause the server so we can access the server's internals without races.
1976 server_thread_->Pause(); 1974 server_thread_->Pause();
1977 QuicDispatcher* dispatcher = 1975 QuicDispatcher* dispatcher =
1978 QuicServerPeer::GetDispatcher(server_thread_->server()); 1976 QuicServerPeer::GetDispatcher(server_thread_->server());
1979 EXPECT_EQ(QUIC_NO_ERROR, 1977 EXPECT_EQ(QUIC_NO_ERROR,
1980 QuicDispatcherPeer::GetAndClearLastError(dispatcher)); 1978 QuicDispatcherPeer::GetAndClearLastError(dispatcher));
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 "www.google.com", "/trailer_url", headers, kBody, trailers); 2168 "www.google.com", "/trailer_url", headers, kBody, trailers);
2171 2169
2172 EXPECT_EQ(kBody, client_->SendSynchronousRequest("/trailer_url")); 2170 EXPECT_EQ(kBody, client_->SendSynchronousRequest("/trailer_url"));
2173 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 2171 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
2174 EXPECT_EQ(trailers, client_->response_trailers()); 2172 EXPECT_EQ(trailers, client_->response_trailers());
2175 } 2173 }
2176 2174
2177 } // namespace 2175 } // namespace
2178 } // namespace test 2176 } // namespace test
2179 } // namespace net 2177 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698