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

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

Issue 2101863004: net: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after
2202 EpollServer* epoll_server) 2202 EpollServer* epoll_server)
2203 : MockableQuicClient(server_address, 2203 : MockableQuicClient(server_address,
2204 server_id, 2204 server_id,
2205 config, 2205 config,
2206 supported_versions, 2206 supported_versions,
2207 epoll_server) {} 2207 epoll_server) {}
2208 ~MockableQuicClientThatDropsBody() override {} 2208 ~MockableQuicClientThatDropsBody() override {}
2209 2209
2210 QuicClientSession* CreateQuicClientSession( 2210 QuicClientSession* CreateQuicClientSession(
2211 QuicConnection* connection) override { 2211 QuicConnection* connection) override {
2212 auto session = 2212 auto* session =
2213 new ClientSessionThatDropsBody(*config(), connection, server_id(), 2213 new ClientSessionThatDropsBody(*config(), connection, server_id(),
2214 crypto_config(), push_promise_index()); 2214 crypto_config(), push_promise_index());
2215 set_session(session); 2215 set_session(session);
2216 return session; 2216 return session;
2217 } 2217 }
2218 }; 2218 };
2219 2219
2220 class QuicTestClientThatDropsBody : public QuicTestClient { 2220 class QuicTestClientThatDropsBody : public QuicTestClient {
2221 public: 2221 public:
2222 QuicTestClientThatDropsBody(IPEndPoint server_address, 2222 QuicTestClientThatDropsBody(IPEndPoint server_address,
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 client_->WaitForResponse(); 2739 client_->WaitForResponse();
2740 // TODO(fayang): Fix this test to work with stateless rejects. 2740 // TODO(fayang): Fix this test to work with stateless rejects.
2741 if (!BothSidesSupportStatelessRejects()) { 2741 if (!BothSidesSupportStatelessRejects()) {
2742 VerifyCleanConnection(true); 2742 VerifyCleanConnection(true);
2743 } 2743 }
2744 } 2744 }
2745 2745
2746 } // namespace 2746 } // namespace
2747 } // namespace test 2747 } // namespace test
2748 } // namespace net 2748 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/cert_verify_tool/verify_using_cert_verify_proc.cc ('k') | net/tools/quic/quic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698