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 "net/quic/crypto/quic_decrypter.h" | 7 #include "net/quic/core/crypto/quic_decrypter.h" |
8 #include "net/quic/crypto/quic_encrypter.h" | 8 #include "net/quic/core/crypto/quic_encrypter.h" |
9 #include "net/quic/quic_client_session_base.h" | 9 #include "net/quic/core/quic_client_session_base.h" |
10 #include "net/quic/test_tools/quic_config_peer.h" | 10 #include "net/quic/test_tools/quic_config_peer.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 using std::string; | 13 using std::string; |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 MockCryptoClientStream::MockCryptoClientStream( | 17 MockCryptoClientStream::MockCryptoClientStream( |
18 const QuicServerId& server_id, | 18 const QuicServerId& server_id, |
19 QuicClientSessionBase* session, | 19 QuicClientSessionBase* session, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 config.ToHandshakeMessage(&msg); | 132 config.ToHandshakeMessage(&msg); |
133 string error_details; | 133 string error_details; |
134 const QuicErrorCode error = | 134 const QuicErrorCode error = |
135 session()->config()->ProcessPeerHello(msg, CLIENT, &error_details); | 135 session()->config()->ProcessPeerHello(msg, CLIENT, &error_details); |
136 ASSERT_EQ(QUIC_NO_ERROR, error); | 136 ASSERT_EQ(QUIC_NO_ERROR, error); |
137 ASSERT_TRUE(session()->config()->negotiated()); | 137 ASSERT_TRUE(session()->config()->negotiated()); |
138 session()->OnConfigNegotiated(); | 138 session()->OnConfigNegotiated(); |
139 } | 139 } |
140 | 140 |
141 } // namespace net | 141 } // namespace net |
OLD | NEW |