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

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

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space Created 6 years, 11 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 21 matching lines...) Expand all
32 // nor confirm the handshake 32 // nor confirm the handshake
33 COLD_START, 33 COLD_START,
34 }; 34 };
35 35
36 MockCryptoClientStream( 36 MockCryptoClientStream(
37 const string& server_hostname, 37 const string& server_hostname,
38 QuicSession* session, 38 QuicSession* session,
39 QuicCryptoClientConfig* crypto_config, 39 QuicCryptoClientConfig* crypto_config,
40 HandshakeMode handshake_mode, 40 HandshakeMode handshake_mode,
41 const SSLInfo* ssl_info); 41 const SSLInfo* ssl_info);
42 virtual ~MockCryptoClientStream(); 42 virtual ~MockCryptoClientStream() OVERRIDE;
43 43
44 // CryptoFramerVisitorInterface implementation. 44 // CryptoFramerVisitorInterface implementation.
45 virtual void OnHandshakeMessage( 45 virtual void OnHandshakeMessage(
46 const CryptoHandshakeMessage& message) OVERRIDE; 46 const CryptoHandshakeMessage& message) OVERRIDE;
47 47
48 // QuicCryptoClientStream implementation. 48 // QuicCryptoClientStream implementation.
49 virtual bool CryptoConnect() OVERRIDE; 49 virtual bool CryptoConnect() OVERRIDE;
50 50
51 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 51 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
52 52
53 // Invokes the sessions's CryptoHandshakeEvent method with the specified 53 // Invokes the sessions's CryptoHandshakeEvent method with the specified
54 // event. 54 // event.
55 void SendOnCryptoHandshakeEvent(QuicSession::CryptoHandshakeEvent event); 55 void SendOnCryptoHandshakeEvent(QuicSession::CryptoHandshakeEvent event);
56 56
57 HandshakeMode handshake_mode_; 57 HandshakeMode handshake_mode_;
58 58
59 private: 59 private:
60 void SetConfigNegotiated(); 60 void SetConfigNegotiated();
61 61
62 const SSLInfo* ssl_info_; 62 const SSLInfo* ssl_info_;
63 }; 63 };
64 64
65 } // namespace net 65 } // namespace net
66 66
67 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ 67 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_clock.h ('k') | net/quic/test_tools/mock_crypto_client_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698