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

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

Issue 1977153002: Rename various MockConnectionFoo classes to MockQuicConnectionFoo. No behavior change. This is cons… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121576119
Patch Set: Created 4 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
« no previous file with comments | « net/tools/quic/quic_server_session_base_test.cc ('k') | net/tools/quic/quic_simple_server_stream_test.cc » ('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 af742b2452f1de28c801fddfeb6a551167431f0b..5275a12570ccc561ce67bce5bee7c52d09f72910 100644
--- a/net/tools/quic/quic_simple_server_session_test.cc
+++ b/net/tools/quic/quic_simple_server_session_test.cc
@@ -33,8 +33,8 @@
using net::test::CryptoTestUtils;
using net::test::GenerateBody;
-using net::test::MockConnection;
-using net::test::MockConnectionHelper;
+using net::test::MockQuicConnection;
+using net::test::MockQuicConnectionHelper;
using net::test::QuicConfigPeer;
using net::test::QuicConnectionPeer;
using net::test::QuicSpdyStreamPeer;
@@ -103,14 +103,17 @@ class MockQuicCryptoServerStream : public QuicCryptoServerStream {
DISALLOW_COPY_AND_ASSIGN(MockQuicCryptoServerStream);
};
-class MockConnectionWithSendStreamData : public MockConnection {
+class MockQuicConnectionWithSendStreamData : public MockQuicConnection {
public:
- MockConnectionWithSendStreamData(MockConnectionHelper* helper,
- MockAlarmFactory* alarm_factory,
- Perspective perspective,
- const QuicVersionVector& supported_versions)
- : MockConnection(helper, alarm_factory, perspective, supported_versions) {
- }
+ MockQuicConnectionWithSendStreamData(
+ MockQuicConnectionHelper* helper,
+ MockAlarmFactory* alarm_factory,
+ Perspective perspective,
+ const QuicVersionVector& supported_versions)
+ : MockQuicConnection(helper,
+ alarm_factory,
+ perspective,
+ supported_versions) {}
MOCK_METHOD5(SendStreamData,
QuicConsumedData(QuicStreamId id,
@@ -169,7 +172,7 @@ class QuicSimpleServerSessionTest
config_.SetInitialSessionFlowControlWindowToSend(
kInitialSessionFlowControlWindowForTest);
- connection_ = new StrictMock<MockConnectionWithSendStreamData>(
+ connection_ = new StrictMock<MockQuicConnectionWithSendStreamData>(
&helper_, &alarm_factory_, Perspective::IS_SERVER,
SupportedVersions(GetParam()));
session_.reset(new QuicSimpleServerSession(config_, connection_, &owner_,
@@ -188,9 +191,9 @@ class QuicSimpleServerSessionTest
}
StrictMock<MockQuicServerSessionVisitor> owner_;
- MockConnectionHelper helper_;
+ MockQuicConnectionHelper helper_;
MockAlarmFactory alarm_factory_;
- StrictMock<MockConnectionWithSendStreamData>* connection_;
+ StrictMock<MockQuicConnectionWithSendStreamData>* connection_;
QuicConfig config_;
QuicCryptoServerConfig crypto_config_;
QuicCompressedCertsCache compressed_certs_cache_;
@@ -406,7 +409,7 @@ class QuicSimpleServerSessionServerPushTest
copt.push_back(kSPSH);
QuicConfigPeer::SetReceivedConnectionOptions(&config_, copt);
- connection_ = new StrictMock<MockConnectionWithSendStreamData>(
+ connection_ = new StrictMock<MockQuicConnectionWithSendStreamData>(
&helper_, &alarm_factory_, Perspective::IS_SERVER,
SupportedVersions(GetParam()));
session_.reset(new QuicSimpleServerSession(config_, connection_, &owner_,
« no previous file with comments | « net/tools/quic/quic_server_session_base_test.cc ('k') | net/tools/quic/quic_simple_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698