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

Side by Side Diff: net/quic/test_tools/quic_test_utils.h

Issue 177203006: Preparation for only writing a fraction of the iov due to flow control (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/quic/test_tools/quic_test_utils.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 // Common utilities for Quic tests 5 // Common utilities for Quic tests
6 6
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 }; 335 };
336 336
337 class MockSession : public QuicSession { 337 class MockSession : public QuicSession {
338 public: 338 public:
339 explicit MockSession(QuicConnection* connection); 339 explicit MockSession(QuicConnection* connection);
340 virtual ~MockSession(); 340 virtual ~MockSession();
341 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); 341 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer));
342 MOCK_METHOD1(CreateIncomingDataStream, QuicDataStream*(QuicStreamId id)); 342 MOCK_METHOD1(CreateIncomingDataStream, QuicDataStream*(QuicStreamId id));
343 MOCK_METHOD0(GetCryptoStream, QuicCryptoStream*()); 343 MOCK_METHOD0(GetCryptoStream, QuicCryptoStream*());
344 MOCK_METHOD0(CreateOutgoingDataStream, QuicDataStream*()); 344 MOCK_METHOD0(CreateOutgoingDataStream, QuicDataStream*());
345 MOCK_METHOD6(WritevData, 345 MOCK_METHOD5(WritevData,
346 QuicConsumedData(QuicStreamId id, 346 QuicConsumedData(QuicStreamId id,
347 const struct iovec* iov, 347 const IOVector& data,
348 int count,
349 QuicStreamOffset offset, 348 QuicStreamOffset offset,
350 bool fin, 349 bool fin,
351 QuicAckNotifier::DelegateInterface*)); 350 QuicAckNotifier::DelegateInterface*));
352 MOCK_METHOD2(OnStreamHeaders, void(QuicStreamId stream_id, 351 MOCK_METHOD2(OnStreamHeaders, void(QuicStreamId stream_id,
353 base::StringPiece headers_data)); 352 base::StringPiece headers_data));
354 MOCK_METHOD2(OnStreamHeadersPriority, void(QuicStreamId stream_id, 353 MOCK_METHOD2(OnStreamHeadersPriority, void(QuicStreamId stream_id,
355 QuicPriority priority)); 354 QuicPriority priority));
356 MOCK_METHOD3(OnStreamHeadersComplete, void(QuicStreamId stream_id, 355 MOCK_METHOD3(OnStreamHeadersComplete, void(QuicStreamId stream_id,
357 bool fin, 356 bool fin,
358 size_t frame_len)); 357 size_t frame_len));
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 472
474 protected: 473 protected:
475 // Object is ref counted. 474 // Object is ref counted.
476 virtual ~MockAckNotifierDelegate(); 475 virtual ~MockAckNotifierDelegate();
477 }; 476 };
478 477
479 } // namespace test 478 } // namespace test
480 } // namespace net 479 } // namespace net
481 480
482 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 481 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698