| 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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 | 656 |
| 657 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); | 657 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); |
| 658 MOCK_METHOD1(CreateOutgoingDynamicStream, | 658 MOCK_METHOD1(CreateOutgoingDynamicStream, |
| 659 QuicSpdyStream*(SpdyPriority priority)); | 659 QuicSpdyStream*(SpdyPriority priority)); |
| 660 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( | 660 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( |
| 661 const QuicCryptoServerConfig* crypto_config, | 661 const QuicCryptoServerConfig* crypto_config, |
| 662 QuicCompressedCertsCache* compressed_certs_cache) override; | 662 QuicCompressedCertsCache* compressed_certs_cache) override; |
| 663 | 663 |
| 664 QuicCryptoServerStream* GetCryptoStream() override; | 664 QuicCryptoServerStream* GetCryptoStream() override; |
| 665 | 665 |
| 666 MockQuicServerSessionHelper* helper() { return &helper_; } | 666 MockQuicCryptoServerStreamHelper* helper() { return &helper_; } |
| 667 | 667 |
| 668 private: | 668 private: |
| 669 MockQuicServerSessionVisitor visitor_; | 669 MockQuicServerSessionVisitor visitor_; |
| 670 MockQuicServerSessionHelper helper_; | 670 MockQuicCryptoServerStreamHelper helper_; |
| 671 | 671 |
| 672 DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession); | 672 DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession); |
| 673 }; | 673 }; |
| 674 | 674 |
| 675 class TestQuicSpdyClientSession : public QuicClientSessionBase { | 675 class TestQuicSpdyClientSession : public QuicClientSessionBase { |
| 676 public: | 676 public: |
| 677 TestQuicSpdyClientSession(QuicConnection* connection, | 677 TestQuicSpdyClientSession(QuicConnection* connection, |
| 678 const QuicConfig& config, | 678 const QuicConfig& config, |
| 679 const QuicServerId& server_id, | 679 const QuicServerId& server_id, |
| 680 QuicCryptoClientConfig* crypto_config); | 680 QuicCryptoClientConfig* crypto_config); |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1028 TestQuicSpdyServerSession** server_session); | 1028 TestQuicSpdyServerSession** server_session); |
| 1029 | 1029 |
| 1030 // Helper to generate client side stream ids, generalizes | 1030 // Helper to generate client side stream ids, generalizes |
| 1031 // kClientDataStreamId1 etc. above. | 1031 // kClientDataStreamId1 etc. above. |
| 1032 QuicStreamId QuicClientDataStreamId(int i); | 1032 QuicStreamId QuicClientDataStreamId(int i); |
| 1033 | 1033 |
| 1034 } // namespace test | 1034 } // namespace test |
| 1035 } // namespace net | 1035 } // namespace net |
| 1036 | 1036 |
| 1037 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 1037 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |