| 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 MockQuicCryptoServerStreamHelper* helper() { return &helper_; } | 666 MockQuicCryptoServerStreamHelper* helper() { return &helper_; } |
| 667 | 667 |
| 668 private: | 668 private: |
| 669 MockQuicServerSessionVisitor visitor_; | 669 MockQuicSessionVisitor visitor_; |
| 670 MockQuicCryptoServerStreamHelper 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, |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 l.OnHeader(p.first, p.second); | 1057 l.OnHeader(p.first, p.second); |
| 1058 } | 1058 } |
| 1059 l.OnHeaderBlockEnd(total_size); | 1059 l.OnHeaderBlockEnd(total_size); |
| 1060 return l; | 1060 return l; |
| 1061 } | 1061 } |
| 1062 | 1062 |
| 1063 } // namespace test | 1063 } // namespace test |
| 1064 } // namespace net | 1064 } // namespace net |
| 1065 | 1065 |
| 1066 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 1066 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |