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

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

Issue 1979763002: Landing Recent QUIC changes until Sun May 8 00:39:29 2016 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_packet_creator.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 (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/quic_http_stream.h" 5 #include "net/quic/quic_http_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 BoundTestNetLog net_log_; 462 BoundTestNetLog net_log_;
463 bool use_closing_stream_; 463 bool use_closing_stream_;
464 MockSendAlgorithm* send_algorithm_; 464 MockSendAlgorithm* send_algorithm_;
465 scoped_refptr<TestTaskRunner> runner_; 465 scoped_refptr<TestTaskRunner> runner_;
466 std::unique_ptr<MockWrite[]> mock_writes_; 466 std::unique_ptr<MockWrite[]> mock_writes_;
467 MockClock clock_; 467 MockClock clock_;
468 TestQuicConnection* connection_; 468 TestQuicConnection* connection_;
469 std::unique_ptr<QuicChromiumConnectionHelper> helper_; 469 std::unique_ptr<QuicChromiumConnectionHelper> helper_;
470 std::unique_ptr<QuicChromiumAlarmFactory> alarm_factory_; 470 std::unique_ptr<QuicChromiumAlarmFactory> alarm_factory_;
471 testing::StrictMock<MockConnectionVisitor> visitor_; 471 testing::StrictMock<MockQuicConnectionVisitor> visitor_;
472 std::unique_ptr<QuicHttpStream> stream_; 472 std::unique_ptr<QuicHttpStream> stream_;
473 TransportSecurityState transport_security_state_; 473 TransportSecurityState transport_security_state_;
474 std::unique_ptr<QuicChromiumClientSession> session_; 474 std::unique_ptr<QuicChromiumClientSession> session_;
475 QuicCryptoClientConfig crypto_config_; 475 QuicCryptoClientConfig crypto_config_;
476 TestCompletionCallback callback_; 476 TestCompletionCallback callback_;
477 HttpRequestInfo request_; 477 HttpRequestInfo request_;
478 HttpRequestHeaders headers_; 478 HttpRequestHeaders headers_;
479 HttpResponseInfo response_; 479 HttpResponseInfo response_;
480 scoped_refptr<IOBufferWithSize> read_buffer_; 480 scoped_refptr<IOBufferWithSize> read_buffer_;
481 SpdyHeaderBlock request_headers_; 481 SpdyHeaderBlock request_headers_;
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 // QuicHttpStream::GetTotalSent/ReceivedBytes currently only includes the 1718 // QuicHttpStream::GetTotalSent/ReceivedBytes currently only includes the
1719 // headers and payload. 1719 // headers and payload.
1720 EXPECT_EQ(static_cast<int64_t>(spdy_request_header_frame_length), 1720 EXPECT_EQ(static_cast<int64_t>(spdy_request_header_frame_length),
1721 promised_stream_->GetTotalSentBytes()); 1721 promised_stream_->GetTotalSentBytes());
1722 EXPECT_EQ(static_cast<int64_t>(spdy_response_header_frame_length), 1722 EXPECT_EQ(static_cast<int64_t>(spdy_response_header_frame_length),
1723 promised_stream_->GetTotalReceivedBytes()); 1723 promised_stream_->GetTotalReceivedBytes());
1724 } 1724 }
1725 1725
1726 } // namespace test 1726 } // namespace test
1727 } // namespace net 1727 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_packet_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698