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

Unified Diff: net/tools/quic/quic_simple_server_session_test.cc

Issue 1908103002: Landing Recent QUIC changes until 4/15/2016 17:20 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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/tools/quic/quic_simple_server.cc ('k') | net/tools/quic/quic_simple_server_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server_session_test.cc
diff --git a/net/tools/quic/quic_simple_server_session_test.cc b/net/tools/quic/quic_simple_server_session_test.cc
index fb402633c3c49454d5ce0d9b7deed7a758ab004e..af742b2452f1de28c801fddfeb6a551167431f0b 100644
--- a/net/tools/quic/quic_simple_server_session_test.cc
+++ b/net/tools/quic/quic_simple_server_session_test.cc
@@ -5,6 +5,7 @@
#include "net/tools/quic/quic_simple_server_session.h"
#include <algorithm>
+#include <memory>
#include "base/macros.h"
#include "base/strings/string_number_conversions.h"
@@ -105,9 +106,11 @@ class MockQuicCryptoServerStream : public QuicCryptoServerStream {
class MockConnectionWithSendStreamData : public MockConnection {
public:
MockConnectionWithSendStreamData(MockConnectionHelper* helper,
+ MockAlarmFactory* alarm_factory,
Perspective perspective,
const QuicVersionVector& supported_versions)
- : MockConnection(helper, perspective, supported_versions) {}
+ : MockConnection(helper, alarm_factory, perspective, supported_versions) {
+ }
MOCK_METHOD5(SendStreamData,
QuicConsumedData(QuicStreamId id,
@@ -167,7 +170,8 @@ class QuicSimpleServerSessionTest
kInitialSessionFlowControlWindowForTest);
connection_ = new StrictMock<MockConnectionWithSendStreamData>(
- &helper_, Perspective::IS_SERVER, SupportedVersions(GetParam()));
+ &helper_, &alarm_factory_, Perspective::IS_SERVER,
+ SupportedVersions(GetParam()));
session_.reset(new QuicSimpleServerSession(config_, connection_, &owner_,
&crypto_config_,
&compressed_certs_cache_));
@@ -185,6 +189,7 @@ class QuicSimpleServerSessionTest
StrictMock<MockQuicServerSessionVisitor> owner_;
MockConnectionHelper helper_;
+ MockAlarmFactory alarm_factory_;
StrictMock<MockConnectionWithSendStreamData>* connection_;
QuicConfig config_;
QuicCryptoServerConfig crypto_config_;
@@ -402,7 +407,8 @@ class QuicSimpleServerSessionServerPushTest
QuicConfigPeer::SetReceivedConnectionOptions(&config_, copt);
connection_ = new StrictMock<MockConnectionWithSendStreamData>(
- &helper_, Perspective::IS_SERVER, SupportedVersions(GetParam()));
+ &helper_, &alarm_factory_, Perspective::IS_SERVER,
+ SupportedVersions(GetParam()));
session_.reset(new QuicSimpleServerSession(config_, connection_, &owner_,
&crypto_config_,
&compressed_certs_cache_));
« no previous file with comments | « net/tools/quic/quic_simple_server.cc ('k') | net/tools/quic/quic_simple_server_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698