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

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

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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_bin.cc ('k') | net/tools/quic/quic_simple_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server_test.cc
diff --git a/net/tools/quic/quic_server_test.cc b/net/tools/quic/quic_server_test.cc
index 4c7587f8c9d9fefced8cb97dbe598022408efa37..ea381d933e47af9e992fa99b117d8460a3b14290 100644
--- a/net/tools/quic/quic_server_test.cc
+++ b/net/tools/quic/quic_server_test.cc
@@ -33,14 +33,14 @@ class MockQuicSimpleDispatcher : public QuicSimpleDispatcher {
std::unique_ptr<QuicConnectionHelperInterface> helper,
std::unique_ptr<QuicCryptoServerStream::Helper> session_helper,
std::unique_ptr<QuicAlarmFactory> alarm_factory,
- QuicInMemoryCache* in_memory_cache)
+ QuicHttpResponseCache* response_cache)
: QuicSimpleDispatcher(config,
crypto_config,
version_manager,
std::move(helper),
std::move(session_helper),
std::move(alarm_factory),
- in_memory_cache) {}
+ response_cache) {}
~MockQuicSimpleDispatcher() override {}
MOCK_METHOD0(OnCanWrite, void());
@@ -52,8 +52,8 @@ class MockQuicSimpleDispatcher : public QuicSimpleDispatcher {
class TestQuicServer : public QuicServer {
public:
TestQuicServer()
- : QuicServer(CryptoTestUtils::ProofSourceForTesting(),
- &in_memory_cache_) {}
+ : QuicServer(CryptoTestUtils::ProofSourceForTesting(), &response_cache_) {
+ }
~TestQuicServer() override {}
@@ -70,12 +70,12 @@ class TestQuicServer : public QuicServer {
new QuicSimpleCryptoServerStreamHelper(QuicRandom::GetInstance())),
std::unique_ptr<QuicEpollAlarmFactory>(
new QuicEpollAlarmFactory(epoll_server())),
- &in_memory_cache_);
+ &response_cache_);
return mock_dispatcher_;
}
MockQuicSimpleDispatcher* mock_dispatcher_;
- QuicInMemoryCache in_memory_cache_;
+ QuicHttpResponseCache response_cache_;
};
class QuicServerEpollInTest : public ::testing::Test {
@@ -162,7 +162,7 @@ class QuicServerDispatchPacketTest : public ::testing::Test {
QuicRandom::GetInstance())),
std::unique_ptr<QuicEpollAlarmFactory>(
new QuicEpollAlarmFactory(&eps_)),
- &in_memory_cache_) {
+ &response_cache_) {
dispatcher_.InitializeWithWriter(new QuicDefaultPacketWriter(1234));
}
@@ -176,7 +176,7 @@ class QuicServerDispatchPacketTest : public ::testing::Test {
QuicCryptoServerConfig crypto_config_;
QuicVersionManager version_manager_;
EpollServer eps_;
- QuicInMemoryCache in_memory_cache_;
+ QuicHttpResponseCache response_cache_;
MockQuicDispatcher dispatcher_;
};
« no previous file with comments | « net/tools/quic/quic_server_bin.cc ('k') | net/tools/quic/quic_simple_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698