| 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 #include "net/quic/test_tools/mock_crypto_client_stream.h" | 5 #include "net/quic/test_tools/mock_crypto_client_stream.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "net/quic/crypto/quic_decrypter.h" | 9 #include "net/quic/crypto/quic_decrypter.h" |
| 8 #include "net/quic/quic_client_session_base.h" | 10 #include "net/quic/quic_client_session_base.h" |
| 9 #include "net/quic/quic_server_id.h" | 11 #include "net/quic/quic_server_id.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 13 |
| 14 using std::string; |
| 15 |
| 12 namespace net { | 16 namespace net { |
| 13 | 17 |
| 14 MockCryptoClientStream::MockCryptoClientStream( | 18 MockCryptoClientStream::MockCryptoClientStream( |
| 15 const QuicServerId& server_id, | 19 const QuicServerId& server_id, |
| 16 QuicClientSessionBase* session, | 20 QuicClientSessionBase* session, |
| 17 ProofVerifyContext* verify_context, | 21 ProofVerifyContext* verify_context, |
| 18 QuicCryptoClientConfig* crypto_config, | 22 QuicCryptoClientConfig* crypto_config, |
| 19 HandshakeMode handshake_mode, | 23 HandshakeMode handshake_mode, |
| 20 const ProofVerifyDetails* proof_verify_details) | 24 const ProofVerifyDetails* proof_verify_details) |
| 21 : QuicCryptoClientStream(server_id, session, verify_context, | 25 : QuicCryptoClientStream(server_id, session, verify_context, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 ASSERT_EQ(QUIC_NO_ERROR, error); | 105 ASSERT_EQ(QUIC_NO_ERROR, error); |
| 102 ASSERT_TRUE(session()->config()->negotiated()); | 106 ASSERT_TRUE(session()->config()->negotiated()); |
| 103 session()->OnConfigNegotiated(); | 107 session()->OnConfigNegotiated(); |
| 104 } | 108 } |
| 105 | 109 |
| 106 QuicClientSessionBase* MockCryptoClientStream::client_session() { | 110 QuicClientSessionBase* MockCryptoClientStream::client_session() { |
| 107 return reinterpret_cast<QuicClientSessionBase*>(session()); | 111 return reinterpret_cast<QuicClientSessionBase*>(session()); |
| 108 } | 112 } |
| 109 | 113 |
| 110 } // namespace net | 114 } // namespace net |
| OLD | NEW |