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 #ifndef NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ |
6 #define NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ | 6 #define NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "net/quic/crypto/crypto_framer.h" | 11 #include "net/quic/crypto/crypto_framer.h" |
12 #include "net/quic/quic_framer.h" | 12 #include "net/quic/quic_framer.h" |
13 #include "net/quic/quic_protocol.h" | 13 #include "net/quic/quic_protocol.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class QuicCryptoStream; | 17 class QuicCryptoClientStream; |
| 18 class QuicCryptoServerStream; |
18 | 19 |
19 namespace test { | 20 namespace test { |
20 | 21 |
21 class PacketSavingConnection; | 22 class PacketSavingConnection; |
22 | 23 |
23 class CryptoTestUtils { | 24 class CryptoTestUtils { |
24 public: | 25 public: |
25 static void HandshakeWithFakeServer(PacketSavingConnection* client_conn, | 26 static void HandshakeWithFakeServer(PacketSavingConnection* client_conn, |
26 QuicCryptoStream* client); | 27 QuicCryptoClientStream* client); |
27 | 28 |
28 static void HandshakeWithFakeClient(PacketSavingConnection* server_conn, | 29 static void HandshakeWithFakeClient(PacketSavingConnection* server_conn, |
29 QuicCryptoStream* server); | 30 QuicCryptoServerStream* server); |
| 31 |
| 32 private: |
| 33 static void CompareClientAndServerKeys(QuicCryptoClientStream* client, |
| 34 QuicCryptoServerStream* server); |
30 }; | 35 }; |
31 | 36 |
32 } // namespace test | 37 } // namespace test |
33 | 38 |
34 } // namespace net | 39 } // namespace net |
35 | 40 |
36 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ | 41 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ |
OLD | NEW |