| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |