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

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

Issue 2363393004: Remove usage of BalsaHeaders from QuicClient. Also move QuicDataToResend from QuicClient to QuicCli… (Closed)
Patch Set: Fix win Created 4 years, 2 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/tools/quic/spdy_balsa_utils_test.cc ('k') | net/tools/quic/test_tools/quic_test_client.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 #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
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 protected: 246 protected:
247 QuicTestClient(); 247 QuicTestClient();
248 248
249 void Initialize(); 249 void Initialize();
250 250
251 void set_client(MockableQuicClient* client) { client_.reset(client); } 251 void set_client(MockableQuicClient* client) { client_.reset(client); }
252 252
253 private: 253 private:
254 class TestClientDataToResend : public QuicClient::QuicDataToResend { 254 class TestClientDataToResend : public QuicClient::QuicDataToResend {
255 public: 255 public:
256 TestClientDataToResend(BalsaHeaders* headers, 256 TestClientDataToResend(std::unique_ptr<SpdyHeaderBlock> headers,
257 StringPiece body, 257 base::StringPiece body,
258 bool fin, 258 bool fin,
259 QuicTestClient* test_client, 259 QuicTestClient* test_client,
260 QuicAckListenerInterface* delegate) 260 QuicAckListenerInterface* delegate)
261 : QuicClient::QuicDataToResend(headers, body, fin), 261 : QuicClient::QuicDataToResend(std::move(headers), body, fin),
262 test_client_(test_client), 262 test_client_(test_client),
263 delegate_(delegate) {} 263 delegate_(delegate) {}
264 264
265 ~TestClientDataToResend() override {} 265 ~TestClientDataToResend() override {}
266 266
267 void Resend() override; 267 void Resend() override;
268 268
269 protected: 269 protected:
270 QuicTestClient* test_client_; 270 QuicTestClient* test_client_;
271 QuicAckListenerInterface* delegate_; 271 QuicAckListenerInterface* delegate_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 std::string override_sni_; 323 std::string override_sni_;
324 324
325 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); 325 DISALLOW_COPY_AND_ASSIGN(QuicTestClient);
326 }; 326 };
327 327
328 } // namespace test 328 } // namespace test
329 329
330 } // namespace net 330 } // namespace net
331 331
332 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 332 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
OLDNEW
« no previous file with comments | « net/tools/quic/spdy_balsa_utils_test.cc ('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