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

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

Issue 2477703002: Remove now unused Balsa code. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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_client.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_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", "/");
« no previous file with comments | « net/tools/quic/quic_client.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