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

Side by Side Diff: net/quic/chromium/quic_http_stream_test.cc

Issue 2462823002: Deletes dead code. (Closed)
Patch Set: Updated patchset dependency 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromium/quic_http_stream.h" 5 #include "net/quic/chromium/quic_http_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 std::unique_ptr<QuicReceivedPacket> ConstructServerAckPacket( 517 std::unique_ptr<QuicReceivedPacket> ConstructServerAckPacket(
518 QuicPacketNumber packet_number, 518 QuicPacketNumber packet_number,
519 QuicPacketNumber largest_received, 519 QuicPacketNumber largest_received,
520 QuicPacketNumber least_unacked) { 520 QuicPacketNumber least_unacked) {
521 return server_maker_.MakeAckPacket(packet_number, largest_received, 521 return server_maker_.MakeAckPacket(packet_number, largest_received,
522 least_unacked, 522 least_unacked,
523 !kIncludeCongestionFeedback); 523 !kIncludeCongestionFeedback);
524 } 524 }
525 525
526 void ReceivePromise(QuicStreamId id) { 526 void ReceivePromise(QuicStreamId id) {
527 auto headers = AsHeaderList(push_promise_);
527 QuicChromiumClientStream* stream = 528 QuicChromiumClientStream* stream =
528 QuicHttpStreamPeer::GetQuicChromiumClientStream(stream_.get()); 529 QuicHttpStreamPeer::GetQuicChromiumClientStream(stream_.get());
529 stream->OnStreamHeaders(serialized_push_promise_); 530 stream->OnPromiseHeaderList(id, headers.uncompressed_header_bytes(),
530 531 headers);
531 stream->OnPromiseHeadersComplete(id, serialized_push_promise_.size());
532 } 532 }
533 533
534 void ExpectLoadTimingValid(const LoadTimingInfo& load_timing_info, 534 void ExpectLoadTimingValid(const LoadTimingInfo& load_timing_info,
535 bool session_reused) { 535 bool session_reused) {
536 EXPECT_EQ(session_reused, load_timing_info.socket_reused); 536 EXPECT_EQ(session_reused, load_timing_info.socket_reused);
537 if (session_reused) { 537 if (session_reused) {
538 ExpectConnectTimingHasNoTimes(load_timing_info.connect_timing); 538 ExpectConnectTimingHasNoTimes(load_timing_info.connect_timing);
539 } else { 539 } else {
540 ExpectConnectTimingHasTimes( 540 ExpectConnectTimingHasTimes(
541 load_timing_info.connect_timing, 541 load_timing_info.connect_timing,
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 EXPECT_TRUE(AtEof()); 2059 EXPECT_TRUE(AtEof());
2060 2060
2061 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. 2061 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers.
2062 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), 2062 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length),
2063 stream_->GetTotalSentBytes()); 2063 stream_->GetTotalSentBytes());
2064 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); 2064 EXPECT_EQ(0, stream_->GetTotalReceivedBytes());
2065 } 2065 }
2066 2066
2067 } // namespace test 2067 } // namespace test
2068 } // namespace net 2068 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_stream_test.cc ('k') | net/quic/core/quic_client_promised_info_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698