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

Side by Side Diff: net/quic/core/quic_headers_stream_test.cc

Issue 2544813002: Remove enum SpdyMajorVersion. (Closed)
Patch Set: Merge comment changes from 140661724. 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 unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_headers_stream.cc ('k') | net/quic/core/spdy_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/core/quic_headers_stream.h" 5 #include "net/quic/core/quic_headers_stream.h"
6 6
7 #include <string> 7 #include <string>
8 #include <tuple> 8 #include <tuple>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 session_(connection_), 230 session_(connection_),
231 headers_stream_(QuicSpdySessionPeer::GetHeadersStream(&session_)), 231 headers_stream_(QuicSpdySessionPeer::GetHeadersStream(&session_)),
232 body_("hello world"), 232 body_("hello world"),
233 hpack_encoder_visitor_(new StrictMock<MockHpackDebugVisitor>), 233 hpack_encoder_visitor_(new StrictMock<MockHpackDebugVisitor>),
234 hpack_decoder_visitor_(new StrictMock<MockHpackDebugVisitor>), 234 hpack_decoder_visitor_(new StrictMock<MockHpackDebugVisitor>),
235 stream_frame_(kHeadersStreamId, /*fin=*/false, /*offset=*/0, ""), 235 stream_frame_(kHeadersStreamId, /*fin=*/false, /*offset=*/0, ""),
236 next_promised_stream_id_(2) { 236 next_promised_stream_id_(2) {
237 headers_[":version"] = "HTTP/1.1"; 237 headers_[":version"] = "HTTP/1.1";
238 headers_[":status"] = "200 Ok"; 238 headers_[":status"] = "200 Ok";
239 headers_["content-length"] = "11"; 239 headers_["content-length"] = "11";
240 framer_ = std::unique_ptr<SpdyFramer>(new SpdyFramer(HTTP2)); 240 framer_ = std::unique_ptr<SpdyFramer>(new SpdyFramer);
241 framer_->set_visitor(&visitor_); 241 framer_->set_visitor(&visitor_);
242 EXPECT_EQ(version(), session_.connection()->version()); 242 EXPECT_EQ(version(), session_.connection()->version());
243 EXPECT_TRUE(headers_stream_ != nullptr); 243 EXPECT_TRUE(headers_stream_ != nullptr);
244 connection_->AdvanceTime(QuicTime::Delta::FromMilliseconds(1)); 244 connection_->AdvanceTime(QuicTime::Delta::FromMilliseconds(1));
245 } 245 }
246 246
247 QuicConsumedData SaveIov(const QuicIOVector& data) { 247 QuicConsumedData SaveIov(const QuicIOVector& data) {
248 const iovec* iov = data.iov; 248 const iovec* iov = data.iov;
249 int count = data.iov_count; 249 int count = data.iov_count;
250 int consumed = 0; 250 int consumed = 0;
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 } 984 }
985 saved_data_.clear(); 985 saved_data_.clear();
986 saved_payloads_.clear(); 986 saved_payloads_.clear();
987 } 987 }
988 } 988 }
989 } 989 }
990 990
991 } // namespace 991 } // namespace
992 } // namespace test 992 } // namespace test
993 } // namespace net 993 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_headers_stream.cc ('k') | net/quic/core/spdy_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698