| Index: net/tools/quic/quic_in_memory_cache_test.cc
|
| diff --git a/net/tools/quic/quic_in_memory_cache_test.cc b/net/tools/quic/quic_in_memory_cache_test.cc
|
| index 218a0e5ea14307d8a85770e7b51a809008fe2093..249f6618f98abd91e5d71c1518512881273adad8 100644
|
| --- a/net/tools/quic/quic_in_memory_cache_test.cc
|
| +++ b/net/tools/quic/quic_in_memory_cache_test.cc
|
| @@ -12,7 +12,6 @@
|
| #include "base/strings/string_piece.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "net/spdy/spdy_framer.h"
|
| -#include "net/tools/balsa/balsa_headers.h"
|
| #include "net/tools/quic/quic_in_memory_cache.h"
|
| #include "net/tools/quic/test_tools/quic_in_memory_cache_peer.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -38,9 +37,11 @@ class QuicInMemoryCacheTest : public ::testing::Test {
|
|
|
| ~QuicInMemoryCacheTest() override { QuicInMemoryCachePeer::ResetForTests(); }
|
|
|
| - void CreateRequest(string host, string path, BalsaHeaders* headers) {
|
| - headers->SetRequestFirstlineFromStringPieces("GET", path, "HTTP/1.1");
|
| - headers->ReplaceOrAppendHeader("host", host);
|
| + void CreateRequest(string host, string path, SpdyHeaderBlock* headers) {
|
| + (*headers)[":method"] = "GET";
|
| + (*headers)[":path"] = path;
|
| + (*headers)[":authority"] = host;
|
| + (*headers)[":scheme"] = "https";
|
| }
|
|
|
| string CacheDirectory() {
|
| @@ -65,7 +66,7 @@ TEST_F(QuicInMemoryCacheTest, AddSimpleResponseGetResponse) {
|
| QuicInMemoryCache* cache = QuicInMemoryCache::GetInstance();
|
| cache->AddSimpleResponse("www.google.com", "/", 200, response_body);
|
|
|
| - BalsaHeaders request_headers;
|
| + SpdyHeaderBlock request_headers;
|
| CreateRequest("www.google.com", "/", &request_headers);
|
| const QuicInMemoryCache::Response* response =
|
| cache->GetResponse("www.google.com", "/");
|
|
|