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

Side by Side Diff: net/tools/quic/test_tools/quic_test_client.h

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 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 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory>
11 #include <string> 12 #include <string>
12 13
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "net/base/ip_address.h" 15 #include "net/base/ip_address.h"
16 #include "net/base/ip_endpoint.h" 16 #include "net/base/ip_endpoint.h"
17 #include "net/quic/proto/cached_network_parameters.pb.h" 17 #include "net/quic/proto/cached_network_parameters.pb.h"
18 #include "net/quic/quic_framer.h" 18 #include "net/quic/quic_framer.h"
19 #include "net/quic/quic_packet_creator.h" 19 #include "net/quic/quic_packet_creator.h"
20 #include "net/quic/quic_protocol.h" 20 #include "net/quic/quic_protocol.h"
21 #include "net/tools/balsa/balsa_frame.h" 21 #include "net/tools/balsa/balsa_frame.h"
22 #include "net/tools/epoll_server/epoll_server.h" 22 #include "net/tools/epoll_server/epoll_server.h"
23 #include "net/tools/quic/quic_client.h" 23 #include "net/tools/quic/quic_client.h"
24 #include "net/tools/quic/test_tools/simple_client.h" 24 #include "net/tools/quic/test_tools/simple_client.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 QuicTestClient* test_client_; 226 QuicTestClient* test_client_;
227 QuicAckListenerInterface* delegate_; 227 QuicAckListenerInterface* delegate_;
228 }; 228 };
229 229
230 // Given a uri, creates a simple HTTPMessage request message for testing. 230 // Given a uri, creates a simple HTTPMessage request message for testing.
231 static void FillInRequest(const std::string& uri, HTTPMessage* message); 231 static void FillInRequest(const std::string& uri, HTTPMessage* message);
232 232
233 bool HaveActiveStream(); 233 bool HaveActiveStream();
234 234
235 EpollServer epoll_server_; 235 EpollServer epoll_server_;
236 scoped_ptr<MockableQuicClient> client_; // The actual client 236 std::unique_ptr<MockableQuicClient> client_; // The actual client
237 QuicSpdyClientStream* stream_; 237 QuicSpdyClientStream* stream_;
238 238
239 QuicRstStreamErrorCode stream_error_; 239 QuicRstStreamErrorCode stream_error_;
240 240
241 bool response_complete_; 241 bool response_complete_;
242 bool response_headers_complete_; 242 bool response_headers_complete_;
243 mutable BalsaHeaders response_headers_; 243 mutable BalsaHeaders response_headers_;
244 244
245 // Parsed response trailers (if present), copied from the stream in OnClose. 245 // Parsed response trailers (if present), copied from the stream in OnClose.
246 SpdyHeaderBlock response_trailers_; 246 SpdyHeaderBlock response_trailers_;
(...skipping 25 matching lines...) Expand all
272 size_t num_responses_; 272 size_t num_responses_;
273 273
274 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); 274 DISALLOW_COPY_AND_ASSIGN(QuicTestClient);
275 }; 275 };
276 276
277 } // namespace test 277 } // namespace test
278 278
279 } // namespace net 279 } // namespace net
280 280
281 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 281 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/packet_dropping_test_writer.h ('k') | net/tools/quic/test_tools/quic_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698