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

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

Issue 1809863002: Update some callers to use more direct ways of constructing IPAddress from well known literals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rch feedbak Created 4 years, 9 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/p2p/quic_p2p_session_test.cc ('k') | net/quic/quic_connection_test.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_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
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
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
OLDNEW
« no previous file with comments | « net/quic/p2p/quic_p2p_session_test.cc ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698