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

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

Issue 1665743003: Refactor QuicCryptoClientStream to use QuicSession directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@113297234
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.cc ('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"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "net/base/ip_endpoint.h" 16 #include "net/base/ip_endpoint.h"
17 #include "net/quic/congestion_control/tcp_cubic_sender.h" 17 #include "net/quic/congestion_control/tcp_cubic_sender.h"
18 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" 18 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h"
19 #include "net/quic/crypto/null_encrypter.h" 19 #include "net/quic/crypto/null_encrypter.h"
20 #include "net/quic/quic_client_session_base.h"
20 #include "net/quic/quic_flags.h" 21 #include "net/quic/quic_flags.h"
21 #include "net/quic/quic_framer.h" 22 #include "net/quic/quic_framer.h"
22 #include "net/quic/quic_packet_creator.h" 23 #include "net/quic/quic_packet_creator.h"
23 #include "net/quic/quic_protocol.h" 24 #include "net/quic/quic_protocol.h"
24 #include "net/quic/quic_server_id.h" 25 #include "net/quic/quic_server_id.h"
25 #include "net/quic/quic_session.h" 26 #include "net/quic/quic_session.h"
26 #include "net/quic/quic_utils.h" 27 #include "net/quic/quic_utils.h"
27 #include "net/quic/test_tools/crypto_test_utils.h" 28 #include "net/quic/test_tools/crypto_test_utils.h"
28 #include "net/quic/test_tools/quic_connection_peer.h" 29 #include "net/quic/test_tools/quic_connection_peer.h"
29 #include "net/quic/test_tools/quic_flow_controller_peer.h" 30 #include "net/quic/test_tools/quic_flow_controller_peer.h"
(...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 "www.google.com", "/trailer_url", headers, kBody, trailers); 2169 "www.google.com", "/trailer_url", headers, kBody, trailers);
2169 2170
2170 EXPECT_EQ(kBody, client_->SendSynchronousRequest("/trailer_url")); 2171 EXPECT_EQ(kBody, client_->SendSynchronousRequest("/trailer_url"));
2171 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code()); 2172 EXPECT_EQ(200u, client_->response_headers()->parsed_response_code());
2172 EXPECT_EQ(trailers, client_->response_trailers()); 2173 EXPECT_EQ(trailers, client_->response_trailers());
2173 } 2174 }
2174 2175
2175 } // namespace 2176 } // namespace
2176 } // namespace test 2177 } // namespace test
2177 } // namespace net 2178 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698