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

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

Issue 341083007: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 6 years, 6 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/tools/quic/quic_client_bin.cc ('k') | net/tools/quic/quic_server_session_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/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"
11 #include "net/quic/test_tools/crypto_test_utils.h" 11 #include "net/quic/test_tools/crypto_test_utils.h"
12 #include "net/quic/test_tools/quic_test_utils.h" 12 #include "net/quic/test_tools/quic_test_utils.h"
13 #include "net/tools/quic/quic_spdy_client_stream.h" 13 #include "net/tools/quic/quic_spdy_client_stream.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using net::test::CryptoTestUtils; 16 using net::test::CryptoTestUtils;
17 using net::test::DefaultQuicConfig; 17 using net::test::DefaultQuicConfig;
18 using net::test::PacketSavingConnection; 18 using net::test::PacketSavingConnection;
19 using net::test::SupportedVersions; 19 using net::test::SupportedVersions;
20 using net::test::kInitialFlowControlWindowForTest;
21 using testing::_; 20 using testing::_;
22 21
23 namespace net { 22 namespace net {
24 namespace tools { 23 namespace tools {
25 namespace test { 24 namespace test {
26 namespace { 25 namespace {
27 26
28 const char kServerHostname[] = "www.example.com"; 27 const char kServerHostname[] = "www.example.com";
29 const uint16 kPort = 80; 28 const uint16 kPort = 80;
30 29
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // After receiving a GoAway, I should no longer be able to create outgoing 83 // After receiving a GoAway, I should no longer be able to create outgoing
85 // streams. 84 // streams.
86 session_->OnGoAway(QuicGoAwayFrame(QUIC_PEER_GOING_AWAY, 1u, "Going away.")); 85 session_->OnGoAway(QuicGoAwayFrame(QUIC_PEER_GOING_AWAY, 1u, "Going away."));
87 EXPECT_EQ(NULL, session_->CreateOutgoingDataStream()); 86 EXPECT_EQ(NULL, session_->CreateOutgoingDataStream());
88 } 87 }
89 88
90 } // namespace 89 } // namespace
91 } // namespace test 90 } // namespace test
92 } // namespace tools 91 } // namespace tools
93 } // namespace net 92 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_bin.cc ('k') | net/tools/quic/quic_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698