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

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

Issue 2422233003: Remove references to BalsaHeaders from a number of files and use SpdyHeaderBlock instead. (Closed)
Patch Set: Created 4 years, 2 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_client_bin.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_spdy_client_stream_test.cc
diff --git a/net/tools/quic/quic_spdy_client_stream_test.cc b/net/tools/quic/quic_spdy_client_stream_test.cc
index 20f524a2ba1a22890b75eca50f4657f81b061839..1248831062e21ac0419a0e7a43a081154eadf75f 100644
--- a/net/tools/quic/quic_spdy_client_stream_test.cc
+++ b/net/tools/quic/quic_spdy_client_stream_test.cc
@@ -13,7 +13,6 @@
#include "net/quic/test_tools/crypto_test_utils.h"
#include "net/quic/test_tools/quic_test_utils.h"
#include "net/tools/quic/quic_client_session.h"
-#include "net/tools/quic/spdy_balsa_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -69,10 +68,9 @@ class QuicSpdyClientStreamTest : public ::testing::Test {
body_("hello world") {
session_.Initialize();
- headers_.SetResponseFirstlineFromStringPieces("HTTP/1.1", "200", "Ok");
- headers_.ReplaceOrAppendHeader("content-length", "11");
-
- headers_string_ = net::SpdyBalsaUtils::SerializeResponseHeaders(headers_);
+ headers_[":status"] = "200";
+ headers_["content-length"] = "11";
+ headers_string_ = SpdyUtils::SerializeUncompressedHeaders(headers_);
stream_.reset(new QuicSpdyClientStream(kClientDataStreamId1, &session_));
stream_visitor_.reset(new StreamVisitor());
@@ -93,14 +91,14 @@ class QuicSpdyClientStreamTest : public ::testing::Test {
MockQuicClientSession session_;
std::unique_ptr<QuicSpdyClientStream> stream_;
std::unique_ptr<StreamVisitor> stream_visitor_;
- BalsaHeaders headers_;
+ SpdyHeaderBlock headers_;
string headers_string_;
string body_;
};
TEST_F(QuicSpdyClientStreamTest, TestReceivingIllegalResponseStatusCode) {
- headers_.ReplaceOrAppendHeader(":status", "200 ok");
- headers_string_ = SpdyBalsaUtils::SerializeResponseHeaders(headers_);
+ headers_[":status"] = "200 ok";
+ headers_string_ = SpdyUtils::SerializeUncompressedHeaders(headers_);
stream_->OnStreamHeaders(headers_string_);
EXPECT_CALL(*connection_,
« no previous file with comments | « net/tools/quic/quic_client_bin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698