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

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

Issue 11633030: Send the ClientHello handshake message. Fix a bug in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add QuicCryptoClientStreamTest.CryptoConnect 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
Index: net/quic/test_tools/quic_test_utils.h
===================================================================
--- net/quic/test_tools/quic_test_utils.h (revision 174485)
+++ net/quic/test_tools/quic_test_utils.h (working copy)
@@ -32,6 +32,11 @@
// Constructs a basic crypto handshake message
QuicPacket* ConstructHandshakePacket(QuicGuid guid, CryptoTag tag);
+// Constructs a ClientHello crypto handshake message
+QuicPacket* ConstructClientHelloPacket(QuicGuid guid,
+ const QuicClock* clock,
+ QuicRandom* random_generator);
+
class MockFramerVisitor : public QuicFramerVisitorInterface {
public:
MockFramerVisitor();
@@ -148,6 +153,8 @@
class MockConnection : public QuicConnection {
public:
MockConnection(QuicGuid guid, IPEndPoint address);
+ MockConnection(QuicGuid guid, IPEndPoint address,
+ QuicConnectionHelperInterface* helper);
wtc 2013/01/15 23:11:03 This formatting is allowed by the current Style Gu
Ryan Hamilton 2013/01/16 00:29:36 Are you sure? jar complains about this every time
wtc 2013/01/16 00:43:49 Yes, I am sure. See the second code example at htt
virtual ~MockConnection();
MOCK_METHOD3(ProcessUdpPacket, void(const IPEndPoint& self_address,
@@ -197,8 +204,6 @@
ReliableQuicStream*(QuicStreamId id));
MOCK_METHOD0(GetCryptoStream, QuicCryptoStream*());
MOCK_METHOD0(CreateOutgoingReliableStream, ReliableQuicStream*());
- MOCK_METHOD3(WriteData,
- void(QuicStreamId id, base::StringPiece data, bool fin));
MOCK_METHOD4(WriteData, int(QuicStreamId id, base::StringPiece data,
QuicStreamOffset offset, bool fin));
MOCK_METHOD0(IsHandshakeComplete, bool());

Powered by Google App Engine
This is Rietveld 408576698