OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const QuicConfig& config, | 51 const QuicConfig& config, |
52 QuicCryptoClientConfig* crypto_config, | 52 QuicCryptoClientConfig* crypto_config, |
53 HandshakeMode handshake_mode, | 53 HandshakeMode handshake_mode, |
54 const ProofVerifyDetailsChromium* proof_verify_details_); | 54 const ProofVerifyDetailsChromium* proof_verify_details_); |
55 ~MockCryptoClientStream() override; | 55 ~MockCryptoClientStream() override; |
56 | 56 |
57 // CryptoFramerVisitorInterface implementation. | 57 // CryptoFramerVisitorInterface implementation. |
58 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; | 58 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; |
59 | 59 |
60 // QuicCryptoClientStream implementation. | 60 // QuicCryptoClientStream implementation. |
61 void CryptoConnect() override; | 61 bool CryptoConnect() override; |
62 | 62 |
63 // Invokes the sessions's CryptoHandshakeEvent method with the specified | 63 // Invokes the sessions's CryptoHandshakeEvent method with the specified |
64 // event. | 64 // event. |
65 void SendOnCryptoHandshakeEvent(QuicSession::CryptoHandshakeEvent event); | 65 void SendOnCryptoHandshakeEvent(QuicSession::CryptoHandshakeEvent event); |
66 | 66 |
67 HandshakeMode handshake_mode_; | 67 HandshakeMode handshake_mode_; |
68 | 68 |
69 private: | 69 private: |
70 void SetConfigNegotiated(); | 70 void SetConfigNegotiated(); |
71 | 71 |
72 const QuicServerId server_id_; | 72 const QuicServerId server_id_; |
73 const ProofVerifyDetailsChromium* proof_verify_details_; | 73 const ProofVerifyDetailsChromium* proof_verify_details_; |
74 const QuicConfig config_; | 74 const QuicConfig config_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(MockCryptoClientStream); | 76 DISALLOW_COPY_AND_ASSIGN(MockCryptoClientStream); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace net | 79 } // namespace net |
80 | 80 |
81 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ | 81 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |