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

Side by Side Diff: net/quic/quic_session_test.cc

Issue 325373002: Use override consistently instead of virtual. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_stream_sequencer_test.cc » ('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) 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/quic/quic_session.h" 5 #include "net/quic/quic_session.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 }; 79 };
80 80
81 class TestStream : public QuicDataStream { 81 class TestStream : public QuicDataStream {
82 public: 82 public:
83 TestStream(QuicStreamId id, QuicSession* session) 83 TestStream(QuicStreamId id, QuicSession* session)
84 : QuicDataStream(id, session) { 84 : QuicDataStream(id, session) {
85 } 85 }
86 86
87 using ReliableQuicStream::CloseWriteSide; 87 using ReliableQuicStream::CloseWriteSide;
88 88
89 virtual uint32 ProcessData(const char* data, uint32 data_len) { 89 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE {
90 return data_len; 90 return data_len;
91 } 91 }
92 92
93 void SendBody(const string& data, bool fin) { 93 void SendBody(const string& data, bool fin) {
94 WriteOrBufferData(data, fin, NULL); 94 WriteOrBufferData(data, fin, NULL);
95 } 95 }
96 96
97 MOCK_METHOD0(OnCanWrite, void()); 97 MOCK_METHOD0(OnCanWrite, void());
98 }; 98 };
99 99
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 848
849 // Version 16 means all flow control is disabled. 849 // Version 16 means all flow control is disabled.
850 session_.OnSuccessfulVersionNegotiation(QUIC_VERSION_16); 850 session_.OnSuccessfulVersionNegotiation(QUIC_VERSION_16);
851 EXPECT_FALSE(session_.flow_controller()->IsEnabled()); 851 EXPECT_FALSE(session_.flow_controller()->IsEnabled());
852 EXPECT_FALSE(stream->flow_controller()->IsEnabled()); 852 EXPECT_FALSE(stream->flow_controller()->IsEnabled());
853 } 853 }
854 854
855 } // namespace 855 } // namespace
856 } // namespace test 856 } // namespace test
857 } // namespace net 857 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698