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

Side by Side Diff: net/quic/quic_headers_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_flow_controller_test.cc ('k') | net/quic/quic_reliable_client_stream_test.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/quic_headers_stream.h" 5 #include "net/quic/quic_headers_stream.h"
6 6
7 #include "base/test/histogram_tester.h" 7 #include "base/test/histogram_tester.h"
8 #include "net/quic/quic_utils.h" 8 #include "net/quic/quic_utils.h"
9 #include "net/quic/spdy_utils.h" 9 #include "net/quic/spdy_utils.h"
10 #include "net/quic/test_tools/quic_connection_peer.h" 10 #include "net/quic/test_tools/quic_connection_peer.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 return versions; 219 return versions;
220 } 220 }
221 221
222 void CloseConnection() { 222 void CloseConnection() {
223 QuicConnectionPeer::CloseConnection(connection_); 223 QuicConnectionPeer::CloseConnection(connection_);
224 } 224 }
225 225
226 static const bool kFrameComplete = true; 226 static const bool kFrameComplete = true;
227 static const bool kHasPriority = true; 227 static const bool kHasPriority = true;
228 228
229 MockHelper helper_; 229 MockConnectionHelper helper_;
230 StrictMock<MockConnection>* connection_; 230 StrictMock<MockConnection>* connection_;
231 StrictMock<MockQuicSpdySession> session_; 231 StrictMock<MockQuicSpdySession> session_;
232 QuicHeadersStream* headers_stream_; 232 QuicHeadersStream* headers_stream_;
233 SpdyHeaderBlock headers_; 233 SpdyHeaderBlock headers_;
234 string body_; 234 string body_;
235 string saved_data_; 235 string saved_data_;
236 string saved_header_data_; 236 string saved_header_data_;
237 SpdyFramer framer_; 237 SpdyFramer framer_;
238 StrictMock<MockVisitor> visitor_; 238 StrictMock<MockVisitor> visitor_;
239 QuicStreamFrame stream_frame_; 239 QuicStreamFrame stream_frame_;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 } 543 }
544 544
545 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) { 545 TEST_P(QuicHeadersStreamTest, NoConnectionLevelFlowControl) {
546 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( 546 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl(
547 headers_stream_)); 547 headers_stream_));
548 } 548 }
549 549
550 } // namespace 550 } // namespace
551 } // namespace test 551 } // namespace test
552 } // namespace net 552 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_flow_controller_test.cc ('k') | net/quic/quic_reliable_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698