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

Unified Diff: net/tools/quic/test_tools/quic_test_client.h

Issue 330333006: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linus_tsan error - reverted the change to ConnectionMigrationClientPortChanged unitttest 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 side-by-side diff with in-line comments
Download patch
Index: net/tools/quic/test_tools/quic_test_client.h
diff --git a/net/tools/quic/test_tools/quic_test_client.h b/net/tools/quic/test_tools/quic_test_client.h
index 975ce5aa7f428a6e3c1e8b36b5a14e9b487b3c9a..1c70c33a18644164525c951feb1350f32c5387dd 100644
--- a/net/tools/quic/test_tools/quic_test_client.h
+++ b/net/tools/quic/test_tools/quic_test_client.h
@@ -35,14 +35,12 @@ class MockableQuicClient : public QuicClient {
public:
MockableQuicClient(IPEndPoint server_address,
const QuicServerId& server_id,
- const QuicVersionVector& supported_versions,
- uint32 initial_flow_control_window);
+ const QuicVersionVector& supported_versions);
MockableQuicClient(IPEndPoint server_address,
const QuicServerId& server_id,
const QuicConfig& config,
- const QuicVersionVector& supported_versions,
- uint32 initial_flow_control_window);
+ const QuicVersionVector& supported_versions);
virtual ~MockableQuicClient() OVERRIDE;
virtual QuicPacketWriter* CreateQuicPacketWriter() OVERRIDE;
@@ -72,8 +70,7 @@ class QuicTestClient : public SimpleClient,
const string& server_hostname,
bool secure,
const QuicConfig& config,
- const QuicVersionVector& supported_versions,
- uint32 client_initial_flow_control_receive_window);
+ const QuicVersionVector& supported_versions);
virtual ~QuicTestClient();
@@ -154,6 +151,10 @@ class QuicTestClient : public SimpleClient,
void set_priority(QuicPriority priority) { priority_ = priority; }
+ // Sets client's FEC policy. This policy applies to the data stream(s), and
+ // also to the headers and crypto streams.
+ void SetFecPolicy(FecPolicy fec_policy);
+
void WaitForWriteToFlush();
protected:
@@ -189,7 +190,8 @@ class QuicTestClient : public SimpleClient,
bool auto_reconnect_;
// Should we buffer the response body? Defaults to true.
bool buffer_body_;
-
+ // FEC policy for data sent by this client.
+ FecPolicy fec_policy_;
// proof_verifier_ points to a RecordingProofVerifier that is owned by
// client_.
ProofVerifier* proof_verifier_;
« no previous file with comments | « net/tools/quic/test_tools/packet_dropping_test_writer.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