OLD | NEW |
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_chromium_client_session.h" | 5 #include "net/quic/quic_chromium_client_session.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "net/spdy/spdy_test_utils.h" | 41 #include "net/spdy/spdy_test_utils.h" |
42 #include "net/test/cert_test_util.h" | 42 #include "net/test/cert_test_util.h" |
43 #include "net/udp/datagram_client_socket.h" | 43 #include "net/udp/datagram_client_socket.h" |
44 | 44 |
45 using testing::_; | 45 using testing::_; |
46 | 46 |
47 namespace net { | 47 namespace net { |
48 namespace test { | 48 namespace test { |
49 namespace { | 49 namespace { |
50 | 50 |
51 const IPEndPoint kIpEndPoint = | 51 const IPEndPoint kIpEndPoint = IPEndPoint(IPAddress::IPv4AllZeros(), 0); |
52 IPEndPoint(IPAddress(std::vector<uint8_t>(kIPv4AddressSize, 0)), 0); | |
53 const char kServerHostname[] = "test.example.com"; | 52 const char kServerHostname[] = "test.example.com"; |
54 const uint16_t kServerPort = 443; | 53 const uint16_t kServerPort = 443; |
55 const size_t kMaxReadersPerQuicSession = 5; | 54 const size_t kMaxReadersPerQuicSession = 5; |
56 | 55 |
57 class QuicChromiumClientSessionTest | 56 class QuicChromiumClientSessionTest |
58 : public ::testing::TestWithParam<QuicVersion> { | 57 : public ::testing::TestWithParam<QuicVersion> { |
59 protected: | 58 protected: |
60 QuicChromiumClientSessionTest() | 59 QuicChromiumClientSessionTest() |
61 : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()), | 60 : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()), |
62 default_read_(new MockRead(SYNCHRONOUS, ERR_IO_PENDING, 0)), | 61 default_read_(new MockRead(SYNCHRONOUS, ERR_IO_PENDING, 0)), |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 session_->connection()->SendPing(); | 520 session_->connection()->SendPing(); |
522 EXPECT_FALSE(session_->connection()->connected()); | 521 EXPECT_FALSE(session_->connection()->connected()); |
523 | 522 |
524 EXPECT_TRUE(socket_data.AllReadDataConsumed()); | 523 EXPECT_TRUE(socket_data.AllReadDataConsumed()); |
525 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); | 524 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); |
526 } | 525 } |
527 | 526 |
528 } // namespace | 527 } // namespace |
529 } // namespace test | 528 } // namespace test |
530 } // namespace net | 529 } // namespace net |
OLD | NEW |