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

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

Issue 560353003: use OVERRIDE macro consistently in quic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and some more Created 6 years, 3 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
« no previous file with comments | « net/tools/quic/test_tools/quic_test_utils.h ('k') | no next file » | 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) 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 #include "net/tools/quic/test_tools/quic_test_utils.h" 5 #include "net/tools/quic/test_tools/quic_test_utils.h"
6 6
7 #include "net/quic/quic_connection.h" 7 #include "net/quic/quic_connection.h"
8 #include "net/quic/test_tools/quic_connection_peer.h" 8 #include "net/quic/test_tools/quic_connection_peer.h"
9 #include "net/quic/test_tools/quic_test_utils.h" 9 #include "net/quic/test_tools/quic_test_utils.h"
10 #include "net/tools/quic/quic_epoll_connection_helper.h" 10 #include "net/tools/quic/quic_epoll_connection_helper.h"
11 11
12 using base::StringPiece; 12 using base::StringPiece;
13 using net::test::MakeAckFrame; 13 using net::test::MakeAckFrame;
14 using net::test::MockHelper; 14 using net::test::MockHelper;
15 using net::test::QuicConnectionPeer; 15 using net::test::QuicConnectionPeer;
16 16
17 namespace net { 17 namespace net {
18 namespace tools { 18 namespace tools {
19 namespace test { 19 namespace test {
20 20
21 namespace { 21 namespace {
22 class NiceMockPacketWriterFactory 22 class NiceMockPacketWriterFactory
23 : public QuicConnection::PacketWriterFactory { 23 : public QuicConnection::PacketWriterFactory {
24 public: 24 public:
25 NiceMockPacketWriterFactory() {} 25 NiceMockPacketWriterFactory() {}
26 virtual ~NiceMockPacketWriterFactory() {} 26 virtual ~NiceMockPacketWriterFactory() {}
27 27
28 virtual QuicPacketWriter* Create( 28 virtual QuicPacketWriter* Create(
29 QuicConnection* /*connection*/) const override { 29 QuicConnection* /*connection*/) const OVERRIDE {
30 return new testing::NiceMock<MockPacketWriter>(); 30 return new testing::NiceMock<MockPacketWriter>();
31 } 31 }
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(NiceMockPacketWriterFactory); 34 DISALLOW_COPY_AND_ASSIGN(NiceMockPacketWriterFactory);
35 }; 35 };
36 } // namespace 36 } // namespace
37 37
38 MockConnection::MockConnection(bool is_server) 38 MockConnection::MockConnection(bool is_server)
39 : QuicConnection(kTestConnectionId, 39 : QuicConnection(kTestConnectionId,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 factory_->current_writer_ = this; 173 factory_->current_writer_ = this;
174 return QuicPerConnectionPacketWriter::WritePacket(buffer, 174 return QuicPerConnectionPacketWriter::WritePacket(buffer,
175 buf_len, 175 buf_len,
176 self_address, 176 self_address,
177 peer_address); 177 peer_address);
178 } 178 }
179 179
180 } // namespace test 180 } // namespace test
181 } // namespace tools 181 } // namespace tools
182 } // namespace net 182 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698