| 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 const QuicConfig& config, | 652 const QuicConfig& config, |
| 653 const QuicServerId& server_id, | 653 const QuicServerId& server_id, |
| 654 QuicCryptoClientConfig* crypto_config); | 654 QuicCryptoClientConfig* crypto_config); |
| 655 ~TestQuicSpdyClientSession() override; | 655 ~TestQuicSpdyClientSession() override; |
| 656 | 656 |
| 657 bool IsAuthorized(const std::string& authority) override; | 657 bool IsAuthorized(const std::string& authority) override; |
| 658 | 658 |
| 659 // QuicClientSessionBase | 659 // QuicClientSessionBase |
| 660 MOCK_METHOD1(OnProofValid, | 660 MOCK_METHOD1(OnProofValid, |
| 661 void(const QuicCryptoClientConfig::CachedState& cached)); | 661 void(const QuicCryptoClientConfig::CachedState& cached)); |
| 662 MOCK_METHOD0(OnChannelValid, void()); |
| 662 MOCK_METHOD1(OnProofVerifyDetailsAvailable, | 663 MOCK_METHOD1(OnProofVerifyDetailsAvailable, |
| 663 void(const ProofVerifyDetails& verify_details)); | 664 void(const ProofVerifyDetails& verify_details)); |
| 664 | 665 |
| 665 // TestQuicSpdyClientSession | 666 // TestQuicSpdyClientSession |
| 666 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); | 667 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); |
| 667 MOCK_METHOD1(CreateOutgoingDynamicStream, | 668 MOCK_METHOD1(CreateOutgoingDynamicStream, |
| 668 QuicSpdyStream*(SpdyPriority priority)); | 669 QuicSpdyStream*(SpdyPriority priority)); |
| 669 MOCK_METHOD1(ShouldCreateIncomingDynamicStream, bool(QuicStreamId id)); | 670 MOCK_METHOD1(ShouldCreateIncomingDynamicStream, bool(QuicStreamId id)); |
| 670 MOCK_METHOD0(ShouldCreateOutgoingDynamicStream, bool()); | 671 MOCK_METHOD0(ShouldCreateOutgoingDynamicStream, bool()); |
| 671 | 672 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 TestQuicSpdyServerSession** server_session); | 935 TestQuicSpdyServerSession** server_session); |
| 935 | 936 |
| 936 // Helper to generate client side stream ids, generalizes | 937 // Helper to generate client side stream ids, generalizes |
| 937 // kClientDataStreamId1 etc. above. | 938 // kClientDataStreamId1 etc. above. |
| 938 QuicStreamId QuicClientDataStreamId(int i); | 939 QuicStreamId QuicClientDataStreamId(int i); |
| 939 | 940 |
| 940 } // namespace test | 941 } // namespace test |
| 941 } // namespace net | 942 } // namespace net |
| 942 | 943 |
| 943 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 944 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |