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

Unified Diff: net/quic/chromium/quic_end_to_end_unittest.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/quic/chromium/quic_connection_logger.cc ('k') | net/quic/chromium/quic_http_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_end_to_end_unittest.cc
diff --git a/net/quic/chromium/quic_end_to_end_unittest.cc b/net/quic/chromium/quic_end_to_end_unittest.cc
index 8b7bde71a1d07675fe5844879f977f1cbb4db93b..18a7c168084dce164a4917c27b412cdd904c2352 100644
--- a/net/quic/chromium/quic_end_to_end_unittest.cc
+++ b/net/quic/chromium/quic_end_to_end_unittest.cc
@@ -36,7 +36,7 @@
#include "net/test/cert_test_util.h"
#include "net/test/gtest_util.h"
#include "net/test/test_data_directory.h"
-#include "net/tools/quic/quic_in_memory_cache.h"
+#include "net/tools/quic/quic_http_response_cache.h"
#include "net/tools/quic/quic_simple_server.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -179,7 +179,7 @@ class QuicEndToEndTest : public ::testing::TestWithParam<TestParams> {
server_config_options_.token_binding_params = QuicTagVector{kTB10, kP256};
server_.reset(new QuicSimpleServer(
CryptoTestUtils::ProofSourceForTesting(), server_config_,
- server_config_options_, AllSupportedVersions(), &in_memory_cache_));
+ server_config_options_, AllSupportedVersions(), &response_cache_));
server_->Listen(server_address_);
server_address_ = server_->server_address();
server_->StartReading();
@@ -192,8 +192,8 @@ class QuicEndToEndTest : public ::testing::TestWithParam<TestParams> {
int response_code,
StringPiece response_detail,
StringPiece body) {
- in_memory_cache_.AddSimpleResponse("test.example.com", path, response_code,
- body);
+ response_cache_.AddSimpleResponse("test.example.com", path, response_code,
+ body);
}
// Populates |request_body_| with |length_| ASCII bytes.
@@ -248,7 +248,7 @@ class QuicEndToEndTest : public ::testing::TestWithParam<TestParams> {
std::string request_body_;
std::unique_ptr<UploadDataStream> upload_data_stream_;
std::unique_ptr<QuicSimpleServer> server_;
- QuicInMemoryCache in_memory_cache_;
+ QuicHttpResponseCache response_cache_;
IPEndPoint server_address_;
std::string server_hostname_;
QuicConfig server_config_;
« no previous file with comments | « net/quic/chromium/quic_connection_logger.cc ('k') | net/quic/chromium/quic_http_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698