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

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

Issue 2115033002: Adds QUIC_VERSION_36 which adds support to force HOL blocking between streams for measurement purpo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@126085461
Patch Set: typo Created 4 years, 5 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 | « net/quic/test_tools/quic_spdy_session_peer.cc ('k') | net/tools/quic/end_to_end_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 (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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 return WriteHeadersMock(id, write_headers_, fin, priority, 618 return WriteHeadersMock(id, write_headers_, fin, priority,
619 ack_notifier_delegate); 619 ack_notifier_delegate);
620 } 620 }
621 MOCK_METHOD5(WriteHeadersMock, 621 MOCK_METHOD5(WriteHeadersMock,
622 size_t(QuicStreamId id, 622 size_t(QuicStreamId id,
623 const SpdyHeaderBlock& headers, 623 const SpdyHeaderBlock& headers,
624 bool fin, 624 bool fin,
625 SpdyPriority priority, 625 SpdyPriority priority,
626 QuicAckListenerInterface* ack_notifier_delegate)); 626 QuicAckListenerInterface* ack_notifier_delegate));
627 MOCK_METHOD1(OnHeadersHeadOfLineBlocking, void(QuicTime::Delta delta)); 627 MOCK_METHOD1(OnHeadersHeadOfLineBlocking, void(QuicTime::Delta delta));
628 MOCK_METHOD4(
629 OnStreamFrameData,
630 void(QuicStreamId stream_id, const char* data, size_t len, bool fin));
628 631
629 using QuicSession::ActivateStream; 632 using QuicSession::ActivateStream;
630 633
631 private: 634 private:
632 std::unique_ptr<QuicCryptoStream> crypto_stream_; 635 std::unique_ptr<QuicCryptoStream> crypto_stream_;
633 SpdyHeaderBlock write_headers_; 636 SpdyHeaderBlock write_headers_;
634 637
635 DISALLOW_COPY_AND_ASSIGN(MockQuicSpdySession); 638 DISALLOW_COPY_AND_ASSIGN(MockQuicSpdySession);
636 }; 639 };
637 640
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 TestQuicSpdyServerSession** server_session); 953 TestQuicSpdyServerSession** server_session);
951 954
952 // Helper to generate client side stream ids, generalizes 955 // Helper to generate client side stream ids, generalizes
953 // kClientDataStreamId1 etc. above. 956 // kClientDataStreamId1 etc. above.
954 QuicStreamId QuicClientDataStreamId(int i); 957 QuicStreamId QuicClientDataStreamId(int i);
955 958
956 } // namespace test 959 } // namespace test
957 } // namespace net 960 } // namespace net
958 961
959 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 962 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_spdy_session_peer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698