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

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

Issue 1986313002: QUIC test-only change. Removes unnecessary mock method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@122225917
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 | « no previous file | no next file » | 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 <stddef.h> 10 #include <stddef.h>
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 void(QuicStreamId stream_id, 524 void(QuicStreamId stream_id,
525 QuicRstStreamErrorCode error, 525 QuicRstStreamErrorCode error,
526 QuicStreamOffset bytes_written)); 526 QuicStreamOffset bytes_written));
527 527
528 MOCK_METHOD2(OnStreamHeaders, 528 MOCK_METHOD2(OnStreamHeaders,
529 void(QuicStreamId stream_id, base::StringPiece headers_data)); 529 void(QuicStreamId stream_id, base::StringPiece headers_data));
530 MOCK_METHOD2(OnStreamHeadersPriority, 530 MOCK_METHOD2(OnStreamHeadersPriority,
531 void(QuicStreamId stream_id, SpdyPriority priority)); 531 void(QuicStreamId stream_id, SpdyPriority priority));
532 MOCK_METHOD3(OnStreamHeadersComplete, 532 MOCK_METHOD3(OnStreamHeadersComplete,
533 void(QuicStreamId stream_id, bool fin, size_t frame_len)); 533 void(QuicStreamId stream_id, bool fin, size_t frame_len));
534 MOCK_METHOD4(OnStreamHeaderList,
535 void(QuicStreamId stream_id,
536 bool fin,
537 size_t frame_len,
538 const QuicHeaderList& header_list));
539 MOCK_METHOD0(IsCryptoHandshakeConfirmed, bool()); 534 MOCK_METHOD0(IsCryptoHandshakeConfirmed, bool());
540 535
541 using QuicSession::ActivateStream; 536 using QuicSession::ActivateStream;
542 537
543 // Returns a QuicConsumedData that indicates all of |data| (and |fin| if set) 538 // Returns a QuicConsumedData that indicates all of |data| (and |fin| if set)
544 // has been consumed. 539 // has been consumed.
545 static QuicConsumedData ConsumeAllData( 540 static QuicConsumedData ConsumeAllData(
546 ReliableQuicStream* stream, 541 ReliableQuicStream* stream,
547 QuicStreamId id, 542 QuicStreamId id,
548 const QuicIOVector& data, 543 const QuicIOVector& data,
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 TestQuicSpdyServerSession** server_session); 931 TestQuicSpdyServerSession** server_session);
937 932
938 // Helper to generate client side stream ids, generalizes 933 // Helper to generate client side stream ids, generalizes
939 // kClientDataStreamId1 etc. above. 934 // kClientDataStreamId1 etc. above.
940 QuicStreamId QuicClientDataStreamId(int i); 935 QuicStreamId QuicClientDataStreamId(int i);
941 936
942 } // namespace test 937 } // namespace test
943 } // namespace net 938 } // namespace net
944 939
945 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 940 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698