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

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

Issue 13976007: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated copyright notice Created 7 years, 8 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"
11 #include "net/quic/quic_crypto_client_stream.h" 11 #include "net/quic/quic_crypto_client_stream.h"
12 #include "net/quic/quic_session.h" 12 #include "net/quic/quic_session.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class MockCryptoClientStream : public QuicCryptoClientStream { 16 class MockCryptoClientStream : public QuicCryptoClientStream {
17 public: 17 public:
18 MockCryptoClientStream(QuicSession* session, 18 MockCryptoClientStream(const string& server_hostname,
19 const std::string& server_hostname); 19 const QuicConfig& config,
20 QuicSession* session,
21 QuicCryptoClientConfig* crypto_config);
20 virtual ~MockCryptoClientStream(); 22 virtual ~MockCryptoClientStream();
21 23
22 // CryptoFramerVisitorInterface implementation. 24 // CryptoFramerVisitorInterface implementation.
23 virtual void OnHandshakeMessage( 25 virtual void OnHandshakeMessage(
24 const CryptoHandshakeMessage& message) OVERRIDE; 26 const CryptoHandshakeMessage& message) OVERRIDE;
25 27
26 // QuicCryptoClientStream implementation. 28 // QuicCryptoClientStream implementation.
27 virtual bool CryptoConnect() OVERRIDE; 29 virtual bool CryptoConnect() OVERRIDE;
28 }; 30 };
29 31
30 } // namespace net 32 } // namespace net
31 33
32 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_ 34 #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