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

Unified Diff: net/quic/test_tools/quic_test_packet_maker.h

Issue 1142523004: Custom hosts in QuicTestPacketMaker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add QuicTestPacketMaker::set_hostname() method. Created 5 years, 7 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/quic/test_tools/quic_test_packet_maker.h
diff --git a/net/quic/test_tools/quic_test_packet_maker.h b/net/quic/test_tools/quic_test_packet_maker.h
index 6a75e7cf8d4ab0205871432b8d912276d93699dd..23eb85642f2aa450992bb29e7fe148a7f7bd1399 100644
--- a/net/quic/test_tools/quic_test_packet_maker.h
+++ b/net/quic/test_tools/quic_test_packet_maker.h
@@ -22,9 +22,11 @@ class QuicTestPacketMaker {
public:
QuicTestPacketMaker(QuicVersion version,
QuicConnectionId connection_id,
- MockClock* clock);
+ MockClock* clock,
+ const std::string& host);
~QuicTestPacketMaker();
+ void set_hostname(const std::string& host);
scoped_ptr<QuicEncryptedPacket> MakeRstPacket(
QuicPacketSequenceNumber num,
bool include_version,
@@ -82,6 +84,7 @@ class QuicTestPacketMaker {
QuicVersion version_;
QuicConnectionId connection_id_;
MockClock* clock_; // Owned by QuicStreamFactory.
+ std::string host_;
SpdyFramer spdy_request_framer_;
SpdyFramer spdy_response_framer_;
MockRandom random_generator_;

Powered by Google App Engine
This is Rietveld 408576698