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

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

Issue 670183003: Update from chromium 62675d9fb31fb8cedc40f68e78e8445a74f362e7 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/socket/ssl_client_socket_unittest.cc ('k') | net/tools/testserver/testserver.py » ('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/tools/quic/quic_client_session.h" 5 #include "net/tools/quic/quic_client_session.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "net/base/ip_endpoint.h" 9 #include "net/base/ip_endpoint.h"
10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" 10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h"
(...skipping 15 matching lines...) Expand all
26 using net::test::kTestPort; 26 using net::test::kTestPort;
27 using net::tools::test::MockConnection; 27 using net::tools::test::MockConnection;
28 using testing::Invoke; 28 using testing::Invoke;
29 using testing::_; 29 using testing::_;
30 30
31 namespace net { 31 namespace net {
32 namespace tools { 32 namespace tools {
33 namespace test { 33 namespace test {
34 namespace { 34 namespace {
35 35
36 const char kServerHostname[] = "www.example.com"; 36 const char kServerHostname[] = "www.example.org";
37 const uint16 kPort = 80; 37 const uint16 kPort = 80;
38 38
39 class ToolsQuicClientSessionTest 39 class ToolsQuicClientSessionTest
40 : public ::testing::TestWithParam<QuicVersion> { 40 : public ::testing::TestWithParam<QuicVersion> {
41 protected: 41 protected:
42 ToolsQuicClientSessionTest() 42 ToolsQuicClientSessionTest()
43 : connection_( 43 : connection_(
44 new PacketSavingConnection(false, SupportedVersions(GetParam()))) { 44 new PacketSavingConnection(false, SupportedVersions(GetParam()))) {
45 session_.reset(new QuicClientSession(DefaultQuicConfig(), connection_)); 45 session_.reset(new QuicClientSession(DefaultQuicConfig(), connection_));
46 session_->InitializeSession( 46 session_->InitializeSession(
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Close connection shouldn't be called. 135 // Close connection shouldn't be called.
136 EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(_, _)).Times(0); 136 EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(_, _)).Times(0);
137 session_->connection()->ProcessUdpPacket(client_address, server_address, 137 session_->connection()->ProcessUdpPacket(client_address, server_address,
138 valid_packet); 138 valid_packet);
139 } 139 }
140 140
141 } // namespace 141 } // namespace
142 } // namespace test 142 } // namespace test
143 } // namespace tools 143 } // namespace tools
144 } // namespace net 144 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698