| 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 TestQuicSpdyServerSession(QuicConnection* connection, | 510 TestQuicSpdyServerSession(QuicConnection* connection, |
| 511 const QuicConfig& config, | 511 const QuicConfig& config, |
| 512 const QuicCryptoServerConfig* crypto_config, | 512 const QuicCryptoServerConfig* crypto_config, |
| 513 QuicCompressedCertsCache* compressed_certs_cache); | 513 QuicCompressedCertsCache* compressed_certs_cache); |
| 514 ~TestQuicSpdyServerSession() override; | 514 ~TestQuicSpdyServerSession() override; |
| 515 | 515 |
| 516 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); | 516 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); |
| 517 MOCK_METHOD1(CreateOutgoingDynamicStream, | 517 MOCK_METHOD1(CreateOutgoingDynamicStream, |
| 518 QuicSpdyStream*(SpdyPriority priority)); | 518 QuicSpdyStream*(SpdyPriority priority)); |
| 519 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( | 519 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( |
| 520 const QuicCryptoServerConfig* crypto_config) override; | 520 const QuicCryptoServerConfig* crypto_config, |
| 521 QuicCompressedCertsCache* compressed_certs_cache) override; |
| 521 | 522 |
| 522 QuicCryptoServerStream* GetCryptoStream() override; | 523 QuicCryptoServerStream* GetCryptoStream() override; |
| 523 | 524 |
| 524 private: | 525 private: |
| 525 MockQuicServerSessionVisitor visitor_; | 526 MockQuicServerSessionVisitor visitor_; |
| 526 | 527 |
| 527 DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession); | 528 DISALLOW_COPY_AND_ASSIGN(TestQuicSpdyServerSession); |
| 528 }; | 529 }; |
| 529 | 530 |
| 530 class TestQuicSpdyClientSession : public QuicClientSessionBase { | 531 class TestQuicSpdyClientSession : public QuicClientSessionBase { |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 TestQuicSpdyServerSession** server_session); | 811 TestQuicSpdyServerSession** server_session); |
| 811 | 812 |
| 812 // Helper to generate client side stream ids, generalizes | 813 // Helper to generate client side stream ids, generalizes |
| 813 // kClientDataStreamId1 etc. above. | 814 // kClientDataStreamId1 etc. above. |
| 814 QuicStreamId QuicClientDataStreamId(int i); | 815 QuicStreamId QuicClientDataStreamId(int i); |
| 815 | 816 |
| 816 } // namespace test | 817 } // namespace test |
| 817 } // namespace net | 818 } // namespace net |
| 818 | 819 |
| 819 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 820 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |