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

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

Issue 1910593004: Plumbs new SpdyFramerVisitorInterface method handling through QUIC test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119562680
Patch Set: Rebase Created 4 years, 8 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
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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 void(QuicStreamId stream_id, 479 void(QuicStreamId stream_id,
480 QuicRstStreamErrorCode error, 480 QuicRstStreamErrorCode error,
481 QuicStreamOffset bytes_written)); 481 QuicStreamOffset bytes_written));
482 482
483 MOCK_METHOD2(OnStreamHeaders, 483 MOCK_METHOD2(OnStreamHeaders,
484 void(QuicStreamId stream_id, base::StringPiece headers_data)); 484 void(QuicStreamId stream_id, base::StringPiece headers_data));
485 MOCK_METHOD2(OnStreamHeadersPriority, 485 MOCK_METHOD2(OnStreamHeadersPriority,
486 void(QuicStreamId stream_id, SpdyPriority priority)); 486 void(QuicStreamId stream_id, SpdyPriority priority));
487 MOCK_METHOD3(OnStreamHeadersComplete, 487 MOCK_METHOD3(OnStreamHeadersComplete,
488 void(QuicStreamId stream_id, bool fin, size_t frame_len)); 488 void(QuicStreamId stream_id, bool fin, size_t frame_len));
489 MOCK_METHOD4(OnStreamHeaderList,
490 void(QuicStreamId stream_id,
491 bool fin,
492 size_t frame_len,
493 const QuicHeaderList& header_list));
494 MOCK_METHOD0(IsCryptoHandshakeConfirmed, bool());
489 MOCK_METHOD2(OnPromiseHeaders, 495 MOCK_METHOD2(OnPromiseHeaders,
490 void(QuicStreamId stream_id, StringPiece headers_data)); 496 void(QuicStreamId stream_id, StringPiece headers_data));
491 MOCK_METHOD3(OnPromiseHeadersComplete, 497 MOCK_METHOD3(OnPromiseHeadersComplete,
492 void(QuicStreamId stream_id, 498 void(QuicStreamId stream_id,
493 QuicStreamId promised_stream_id, 499 QuicStreamId promised_stream_id,
494 size_t frame_len)); 500 size_t frame_len));
495 MOCK_METHOD0(IsCryptoHandshakeConfirmed, bool()); 501 MOCK_METHOD4(OnPromiseHeaderList,
502 void(QuicStreamId stream_id,
503 QuicStreamId promised_stream_id,
504 size_t frame_len,
505 const QuicHeaderList& header_list));
496 MOCK_METHOD5(WriteHeaders, 506 MOCK_METHOD5(WriteHeaders,
497 size_t(QuicStreamId id, 507 size_t(QuicStreamId id,
498 const SpdyHeaderBlock& headers, 508 const SpdyHeaderBlock& headers,
499 bool fin, 509 bool fin,
500 SpdyPriority priority, 510 SpdyPriority priority,
501 QuicAckListenerInterface* ack_notifier_delegate)); 511 QuicAckListenerInterface* ack_notifier_delegate));
502 MOCK_METHOD1(OnHeadersHeadOfLineBlocking, void(QuicTime::Delta delta)); 512 MOCK_METHOD1(OnHeadersHeadOfLineBlocking, void(QuicTime::Delta delta));
503 513
504 using QuicSession::ActivateStream; 514 using QuicSession::ActivateStream;
505 515
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 TestQuicSpdyServerSession** server_session); 831 TestQuicSpdyServerSession** server_session);
822 832
823 // Helper to generate client side stream ids, generalizes 833 // Helper to generate client side stream ids, generalizes
824 // kClientDataStreamId1 etc. above. 834 // kClientDataStreamId1 etc. above.
825 QuicStreamId QuicClientDataStreamId(int i); 835 QuicStreamId QuicClientDataStreamId(int i);
826 836
827 } // namespace test 837 } // namespace test
828 } // namespace net 838 } // namespace net
829 839
830 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 840 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698