Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Side by Side Diff: net/quic/test_tools/crypto_test_utils.h

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698