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

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

Issue 15018013: Revert 198736 "Land Recent QUIC changes" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | « trunk/src/net/quic/spdy_utils.cc ('k') | trunk/src/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 "base/strings/string_piece.h"
12 #include "net/quic/crypto/crypto_framer.h" 11 #include "net/quic/crypto/crypto_framer.h"
13 #include "net/quic/quic_framer.h" 12 #include "net/quic/quic_framer.h"
14 #include "net/quic/quic_protocol.h" 13 #include "net/quic/quic_protocol.h"
15 14
16 namespace net { 15 namespace net {
17 16
18 class CommonCertSet;
19 class ProofSource; 17 class ProofSource;
20 class ProofVerifier; 18 class ProofVerifier;
21 class QuicClock; 19 class QuicClock;
22 class QuicConfig; 20 class QuicConfig;
23 class QuicCryptoClientStream; 21 class QuicCryptoClientStream;
24 class QuicCryptoServerConfig; 22 class QuicCryptoServerConfig;
25 class QuicCryptoServerStream; 23 class QuicCryptoServerStream;
26 class QuicCryptoStream; 24 class QuicCryptoStream;
27 class QuicRandom; 25 class QuicRandom;
28 26
(...skipping 29 matching lines...) Expand all
58 // Returns the value for the tag |tag| in the tag value map of |message|. 56 // Returns the value for the tag |tag| in the tag value map of |message|.
59 static std::string GetValueForTag(const CryptoHandshakeMessage& message, 57 static std::string GetValueForTag(const CryptoHandshakeMessage& message,
60 CryptoTag tag); 58 CryptoTag tag);
61 59
62 // Returns a |ProofSource| that serves up test certificates. 60 // Returns a |ProofSource| that serves up test certificates.
63 static ProofSource* ProofSourceForTesting(); 61 static ProofSource* ProofSourceForTesting();
64 62
65 // Returns a |ProofVerifier| that uses the QUIC testing root CA. 63 // Returns a |ProofVerifier| that uses the QUIC testing root CA.
66 static ProofVerifier* ProofVerifierForTesting(); 64 static ProofVerifier* ProofVerifierForTesting();
67 65
68 // MockCommonCertSet returns a CommonCertSet that contains a single set with
69 // hash |hash|, consisting of the certificate |cert| at index |index|.
70 static CommonCertSet* MockCommonCertSet(base::StringPiece cert,
71 uint64 hash,
72 uint32 index);
73
74 private: 66 private:
75 static void CompareClientAndServerKeys(QuicCryptoClientStream* client, 67 static void CompareClientAndServerKeys(QuicCryptoClientStream* client,
76 QuicCryptoServerStream* server); 68 QuicCryptoServerStream* server);
77 }; 69 };
78 70
79 } // namespace test 71 } // namespace test
80 72
81 } // namespace net 73 } // namespace net
82 74
83 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ 75 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « trunk/src/net/quic/spdy_utils.cc ('k') | trunk/src/net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698