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

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

Issue 126243002: Add the override annotation to all necessary methods in .../quic/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed OVERRIDE on virtual destructor 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
« no previous file with comments | « net/quic/test_tools/mock_clock.h ('k') | net/quic/test_tools/quic_test_utils.h » ('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) 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_FACTORY_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_FACTORY_H_
6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_FACTORY_H_ 6 #define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/quic/quic_crypto_client_stream.h" 10 #include "net/quic/quic_crypto_client_stream.h"
11 #include "net/quic/quic_crypto_client_stream_factory.h" 11 #include "net/quic/quic_crypto_client_stream_factory.h"
12 #include "net/quic/test_tools/mock_crypto_client_stream.h" 12 #include "net/quic/test_tools/mock_crypto_client_stream.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class MockCryptoClientStreamFactory : public QuicCryptoClientStreamFactory { 16 class MockCryptoClientStreamFactory : public QuicCryptoClientStreamFactory {
17 public: 17 public:
18 MockCryptoClientStreamFactory(); 18 MockCryptoClientStreamFactory();
19
20 virtual ~MockCryptoClientStreamFactory() {} 19 virtual ~MockCryptoClientStreamFactory() {}
21 20
22 virtual QuicCryptoClientStream* CreateQuicCryptoClientStream( 21 virtual QuicCryptoClientStream* CreateQuicCryptoClientStream(
23 const string& server_hostname, 22 const string& server_hostname,
24 QuicSession* session, 23 QuicSession* session,
25 QuicCryptoClientConfig* crypto_config) OVERRIDE; 24 QuicCryptoClientConfig* crypto_config) OVERRIDE;
26 25
27 void set_handshake_mode( 26 void set_handshake_mode(
28 MockCryptoClientStream::HandshakeMode handshake_mode) { 27 MockCryptoClientStream::HandshakeMode handshake_mode) {
29 handshake_mode_ = handshake_mode; 28 handshake_mode_ = handshake_mode;
30 } 29 }
31 30
32 void set_ssl_info(const SSLInfo* ssl_info) { 31 void set_ssl_info(const SSLInfo* ssl_info) {
33 ssl_info_ = ssl_info; 32 ssl_info_ = ssl_info;
34 } 33 }
35 34
36 MockCryptoClientStream* last_stream() const { 35 MockCryptoClientStream* last_stream() const {
37 return last_stream_; 36 return last_stream_;
38 } 37 }
39 38
40 private: 39 private:
41 MockCryptoClientStream::HandshakeMode handshake_mode_; 40 MockCryptoClientStream::HandshakeMode handshake_mode_;
42 MockCryptoClientStream* last_stream_; 41 MockCryptoClientStream* last_stream_;
43 const SSLInfo* ssl_info_; 42 const SSLInfo* ssl_info_;
44 }; 43 };
45 44
46 } // namespace net 45 } // namespace net
47 46
48 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_FACTORY_H_ 47 #endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_clock.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698