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

Side by Side Diff: net/tools/quic/test_tools/quic_test_utils.h

Issue 1088903008: Update {virtual,override} to follow C++11 style in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an override. Created 5 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
OLDNEW
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 // Common utilities for Quic tests 5 // Common utilities for Quic tests
6 6
7 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 7 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
8 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 8 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 25 matching lines...) Expand all
36 1536 * 1024; // 1.5 MB 36 1536 * 1024; // 1.5 MB
37 37
38 // Testing convenience method to construct a QuicAckFrame with |num_nack_ranges| 38 // Testing convenience method to construct a QuicAckFrame with |num_nack_ranges|
39 // nack ranges of width 1 packet, starting from |least_unacked|. 39 // nack ranges of width 1 packet, starting from |least_unacked|.
40 QuicAckFrame MakeAckFrameWithNackRanges(size_t num_nack_ranges, 40 QuicAckFrame MakeAckFrameWithNackRanges(size_t num_nack_ranges,
41 QuicPacketSequenceNumber least_unacked); 41 QuicPacketSequenceNumber least_unacked);
42 42
43 class TestSession : public QuicSession { 43 class TestSession : public QuicSession {
44 public: 44 public:
45 TestSession(QuicConnection* connection, const QuicConfig& config); 45 TestSession(QuicConnection* connection, const QuicConfig& config);
46 virtual ~TestSession(); 46 ~TestSession() override;
47 47
48 MOCK_METHOD1(CreateIncomingDataStream, QuicDataStream*(QuicStreamId id)); 48 MOCK_METHOD1(CreateIncomingDataStream, QuicDataStream*(QuicStreamId id));
49 MOCK_METHOD0(CreateOutgoingDataStream, QuicDataStream*()); 49 MOCK_METHOD0(CreateOutgoingDataStream, QuicDataStream*());
50 50
51 void SetCryptoStream(QuicCryptoStream* stream); 51 void SetCryptoStream(QuicCryptoStream* stream);
52 52
53 virtual QuicCryptoStream* GetCryptoStream() override; 53 QuicCryptoStream* GetCryptoStream() override;
54 54
55 private: 55 private:
56 QuicCryptoStream* crypto_stream_; 56 QuicCryptoStream* crypto_stream_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(TestSession); 58 DISALLOW_COPY_AND_ASSIGN(TestSession);
59 }; 59 };
60 60
61 class MockPacketWriter : public QuicPacketWriter { 61 class MockPacketWriter : public QuicPacketWriter {
62 public: 62 public:
63 MockPacketWriter(); 63 MockPacketWriter();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 QuicConnectionId connection_id, 176 QuicConnectionId connection_id,
177 QuicPacketSequenceNumber sequence_number, 177 QuicPacketSequenceNumber sequence_number,
178 const QuicEncryptedPacket& packet)); 178 const QuicEncryptedPacket& packet));
179 }; 179 };
180 180
181 } // namespace test 181 } // namespace test
182 } // namespace tools 182 } // namespace tools
183 } // namespace net 183 } // namespace net
184 184
185 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 185 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_time_wait_list_manager_test.cc ('k') | net/url_request/url_request_http_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698