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

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

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 years, 4 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 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 MockRandom random_generator_; 567 MockRandom random_generator_;
568 ProofVerifyDetailsChromium verify_details_; 568 ProofVerifyDetailsChromium verify_details_;
569 MockCryptoClientStreamFactory crypto_client_stream_factory_; 569 MockCryptoClientStreamFactory crypto_client_stream_factory_;
570 std::unique_ptr<StaticSocketDataProvider> socket_data_; 570 std::unique_ptr<StaticSocketDataProvider> socket_data_;
571 std::vector<PacketToWrite> writes_; 571 std::vector<PacketToWrite> writes_;
572 QuicStreamOffset response_offset_; 572 QuicStreamOffset response_offset_;
573 }; 573 };
574 574
575 INSTANTIATE_TEST_CASE_P(Version, 575 INSTANTIATE_TEST_CASE_P(Version,
576 QuicHttpStreamTest, 576 QuicHttpStreamTest,
577 ::testing::ValuesIn(QuicSupportedVersions())); 577 ::testing::ValuesIn(AllSupportedVersions()));
578 578
579 TEST_P(QuicHttpStreamTest, RenewStreamForAuth) { 579 TEST_P(QuicHttpStreamTest, RenewStreamForAuth) {
580 Initialize(); 580 Initialize();
581 EXPECT_EQ(nullptr, stream_->RenewStreamForAuth()); 581 EXPECT_EQ(nullptr, stream_->RenewStreamForAuth());
582 } 582 }
583 583
584 TEST_P(QuicHttpStreamTest, CanReuseConnection) { 584 TEST_P(QuicHttpStreamTest, CanReuseConnection) {
585 Initialize(); 585 Initialize();
586 EXPECT_FALSE(stream_->CanReuseConnection()); 586 EXPECT_FALSE(stream_->CanReuseConnection());
587 } 587 }
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 EXPECT_TRUE(AtEof()); 1907 EXPECT_TRUE(AtEof());
1908 1908
1909 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers. 1909 // QuicHttpStream::GetTotalSent/ReceivedBytes includes only headers.
1910 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length), 1910 EXPECT_EQ(static_cast<int64_t>(spdy_request_headers_frame_length),
1911 stream_->GetTotalSentBytes()); 1911 stream_->GetTotalSentBytes());
1912 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); 1912 EXPECT_EQ(0, stream_->GetTotalReceivedBytes());
1913 } 1913 }
1914 1914
1915 } // namespace test 1915 } // namespace test
1916 } // namespace net 1916 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_stream_test.cc ('k') | net/quic/chromium/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698