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 <stdarg.h> | 8 #include <stdarg.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 static CryptoHandshakeMessage BuildMessage(const char* message_tag, | 133 static CryptoHandshakeMessage BuildMessage(const char* message_tag, |
134 va_list ap); | 134 va_list ap); |
135 | 135 |
136 // ChannelIDSignerForTesting returns a ChannelIDSigner that generates keys | 136 // ChannelIDSignerForTesting returns a ChannelIDSigner that generates keys |
137 // deterministically based on the hostname given in the Sign call. | 137 // deterministically based on the hostname given in the Sign call. |
138 static ChannelIDSigner* ChannelIDSignerForTesting(); | 138 static ChannelIDSigner* ChannelIDSignerForTesting(); |
139 | 139 |
140 private: | 140 private: |
141 static void CompareClientAndServerKeys(QuicCryptoClientStream* client, | 141 static void CompareClientAndServerKeys(QuicCryptoClientStream* client, |
142 QuicCryptoServerStream* server); | 142 QuicCryptoServerStream* server); |
| 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(CryptoTestUtils); |
143 }; | 145 }; |
144 | 146 |
145 } // namespace test | 147 } // namespace test |
146 | 148 |
147 } // namespace net | 149 } // namespace net |
148 | 150 |
149 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ | 151 #endif // NET_QUIC_TEST_TOOLS_CRYPTO_TEST_UTILS_H_ |
OLD | NEW |