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

Unified Diff: net/quic/quic_stream_factory_test.cc

Issue 11633030: Send the ClientHello handshake message. Fix a bug in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove an extraneous test:: before TestCryptoVisitor Created 7 years, 11 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
« no previous file with comments | « net/quic/quic_crypto_stream_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_factory_test.cc
===================================================================
--- net/quic/quic_stream_factory_test.cc (revision 177030)
+++ net/quic/quic_stream_factory_test.cc (working copy)
@@ -23,15 +23,17 @@
class QuicStreamFactoryTest : public ::testing::Test {
protected:
QuicStreamFactoryTest()
- : factory_(&host_resolver_, &socket_factory_,
- &random_generator_,
- new MockClock()),
+ : clock_(new MockClock()),
+ factory_(&host_resolver_, &socket_factory_,
+ &random_generator_, clock_),
host_port_proxy_pair_(HostPortPair("www.google.com", 443),
ProxyServer::Direct()) {
}
scoped_ptr<QuicEncryptedPacket> ConstructChlo() {
- scoped_ptr<QuicPacket> chlo(ConstructHandshakePacket(0xDEADBEEF, kCHLO));
+ scoped_ptr<QuicPacket> chlo(ConstructClientHelloPacket(0xDEADBEEF,
+ clock_,
+ &random_generator_));
QuicFramer framer(QuicDecrypter::Create(kNULL),
QuicEncrypter::Create(kNULL));
return scoped_ptr<QuicEncryptedPacket>(framer.EncryptPacket(*chlo));
@@ -117,6 +119,7 @@
MockHostResolver host_resolver_;
MockClientSocketFactory socket_factory_;
MockRandom random_generator_;
+ MockClock* clock_; // Owned by factory_.
QuicStreamFactory factory_;
HostPortProxyPair host_port_proxy_pair_;
BoundNetLog net_log_;
« no previous file with comments | « net/quic/quic_crypto_stream_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698