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

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

Issue 2607873002: QUIC - refactor in preparation for two streams per HTTP transaction. (Closed)
Patch Set: Fixed namespaces and formatting. 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_simple_server_session_test.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_simple_server_stream_test.cc
diff --git a/net/tools/quic/quic_simple_server_stream_test.cc b/net/tools/quic/quic_simple_server_stream_test.cc
index 57eba3ecebb83ec3de1bc2813b24724c50185c83..4eb335ec66e643653ad7a045a46b11702466e018 100644
--- a/net/tools/quic/quic_simple_server_stream_test.cc
+++ b/net/tools/quic/quic_simple_server_stream_test.cc
@@ -79,6 +79,8 @@ class QuicSimpleServerStreamPeer : public QuicSimpleServerStream {
}
};
+namespace {
+
class MockQuicSimpleServerSession : public QuicSimpleServerSession {
public:
const size_t kMaxStreamsForTest = 100;
@@ -172,8 +174,6 @@ class MockQuicSimpleServerSession : public QuicSimpleServerSession {
DISALLOW_COPY_AND_ASSIGN(MockQuicSimpleServerSession);
};
-namespace {
-
class QuicSimpleServerStreamTest
: public ::testing::TestWithParam<QuicVersion> {
public:
@@ -504,12 +504,14 @@ TEST_P(QuicSimpleServerStreamTest, PushResponseOnServerInitiatedStream) {
.Times(1)
.WillOnce(Return(QuicConsumedData(kBody.size(), true)));
server_initiated_stream->PushResponse(std::move(headers));
- EXPECT_EQ(kPath, QuicSimpleServerStreamPeer::headers(
- server_initiated_stream)[":path"]
- .as_string());
- EXPECT_EQ("GET", QuicSimpleServerStreamPeer::headers(
- server_initiated_stream)[":method"]
- .as_string());
+ EXPECT_EQ(
+ kPath,
+ QuicSimpleServerStreamPeer::headers(server_initiated_stream)[":path"]
+ .as_string());
+ EXPECT_EQ(
+ "GET",
+ QuicSimpleServerStreamPeer::headers(server_initiated_stream)[":method"]
+ .as_string());
}
TEST_P(QuicSimpleServerStreamTest, TestSendErrorResponse) {
« no previous file with comments | « net/tools/quic/quic_simple_server_session_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698