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

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

Issue 1433433003: Rename MockHelper to the more descriptive (and more consistent with other Mock classes) MockConnect… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106414015
Patch Set: Created 5 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
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('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/reliable_quic_stream.h" 5 #include "net/quic/reliable_quic_stream.h"
6 6
7 #include "net/quic/quic_connection.h" 7 #include "net/quic/quic_connection.h"
8 #include "net/quic/quic_flags.h" 8 #include "net/quic/quic_flags.h"
9 #include "net/quic/quic_utils.h" 9 #include "net/quic/quic_utils.h"
10 #include "net/quic/quic_write_blocked_list.h" 10 #include "net/quic/quic_write_blocked_list.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void set_initial_flow_control_window_bytes(uint32 val) { 134 void set_initial_flow_control_window_bytes(uint32 val) {
135 initial_flow_control_window_bytes_ = val; 135 initial_flow_control_window_bytes_ = val;
136 } 136 }
137 137
138 bool HasWriteBlockedStreams() { 138 bool HasWriteBlockedStreams() {
139 return write_blocked_list_->HasWriteBlockedCryptoOrHeadersStream() || 139 return write_blocked_list_->HasWriteBlockedCryptoOrHeadersStream() ||
140 write_blocked_list_->HasWriteBlockedDataStreams(); 140 write_blocked_list_->HasWriteBlockedDataStreams();
141 } 141 }
142 142
143 protected: 143 protected:
144 MockHelper helper_; 144 MockConnectionHelper helper_;
145 MockConnection* connection_; 145 MockConnection* connection_;
146 scoped_ptr<MockQuicSpdySession> session_; 146 scoped_ptr<MockQuicSpdySession> session_;
147 TestStream* stream_; 147 TestStream* stream_;
148 SpdyHeaderBlock headers_; 148 SpdyHeaderBlock headers_;
149 QuicWriteBlockedList* write_blocked_list_; 149 QuicWriteBlockedList* write_blocked_list_;
150 uint32 initial_flow_control_window_bytes_; 150 uint32 initial_flow_control_window_bytes_;
151 QuicTime::Delta zero_; 151 QuicTime::Delta zero_;
152 QuicVersionVector supported_versions_; 152 QuicVersionVector supported_versions_;
153 const QuicStreamId kTestStreamId = 5u; 153 const QuicStreamId kTestStreamId = 5u;
154 }; 154 };
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 EXPECT_TRUE(stream_->HasFinalReceivedByteOffset()); 742 EXPECT_TRUE(stream_->HasFinalReceivedByteOffset());
743 } else { 743 } else {
744 EXPECT_FALSE(stream_->fin_received()); 744 EXPECT_FALSE(stream_->fin_received());
745 EXPECT_FALSE(stream_->HasFinalReceivedByteOffset()); 745 EXPECT_FALSE(stream_->HasFinalReceivedByteOffset());
746 } 746 }
747 } 747 }
748 748
749 } // namespace 749 } // namespace
750 } // namespace test 750 } // namespace test
751 } // namespace net 751 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698