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

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

Issue 15074007: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows 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
OLDNEW
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 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ 6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/quic/crypto/crypto_handshake.h" 10 #include "net/quic/crypto/crypto_handshake.h"
(...skipping 16 matching lines...) Expand all
27 // not confirm the handshake. 27 // not confirm the handshake.
28 ZERO_RTT, 28 ZERO_RTT,
29 29
30 // COLD_START indicates that CryptoConnect will neither establish encryption 30 // COLD_START indicates that CryptoConnect will neither establish encryption
31 // nor confirm the handshake 31 // nor confirm the handshake
32 COLD_START, 32 COLD_START,
33 }; 33 };
34 34
35 MockCryptoClientStream( 35 MockCryptoClientStream(
36 const string& server_hostname, 36 const string& server_hostname,
37 const QuicConfig& config,
38 QuicSession* session, 37 QuicSession* session,
39 QuicCryptoClientConfig* crypto_config, 38 QuicCryptoClientConfig* crypto_config,
40 HandshakeMode handshake_mode); 39 HandshakeMode handshake_mode);
41 virtual ~MockCryptoClientStream(); 40 virtual ~MockCryptoClientStream();
42 41
43 // CryptoFramerVisitorInterface implementation. 42 // CryptoFramerVisitorInterface implementation.
44 virtual void OnHandshakeMessage( 43 virtual void OnHandshakeMessage(
45 const CryptoHandshakeMessage& message) OVERRIDE; 44 const CryptoHandshakeMessage& message) OVERRIDE;
46 45
47 // QuicCryptoClientStream implementation. 46 // QuicCryptoClientStream implementation.
48 virtual bool CryptoConnect() OVERRIDE; 47 virtual bool CryptoConnect() OVERRIDE;
49 48
50 HandshakeMode handshake_mode_; 49 HandshakeMode handshake_mode_;
51 }; 50 };
52 51
53 } // namespace net 52 } // namespace net
54 53
55 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ 54 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/crypto_test_utils.cc ('k') | net/quic/test_tools/mock_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698