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

Side by Side Diff: net/quic/quic_stream_sequencer_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_session_test.cc ('k') | net/quic/reliable_quic_stream.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_stream_sequencer.h" 5 #include "net/quic/quic_stream_sequencer.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 25 matching lines...) Expand all
36 MockStream(QuicSession* session, QuicStreamId id) 36 MockStream(QuicSession* session, QuicStreamId id)
37 : ReliableQuicStream(id, session) { 37 : ReliableQuicStream(id, session) {
38 } 38 }
39 39
40 MOCK_METHOD0(OnFinRead, void()); 40 MOCK_METHOD0(OnFinRead, void());
41 MOCK_METHOD2(ProcessRawData, uint32(const char* data, uint32 data_len)); 41 MOCK_METHOD2(ProcessRawData, uint32(const char* data, uint32 data_len));
42 MOCK_METHOD2(CloseConnectionWithDetails, void(QuicErrorCode error, 42 MOCK_METHOD2(CloseConnectionWithDetails, void(QuicErrorCode error,
43 const string& details)); 43 const string& details));
44 MOCK_METHOD1(Reset, void(QuicRstStreamErrorCode error)); 44 MOCK_METHOD1(Reset, void(QuicRstStreamErrorCode error));
45 MOCK_METHOD0(OnCanWrite, void()); 45 MOCK_METHOD0(OnCanWrite, void());
46 virtual QuicPriority EffectivePriority() const { 46 virtual QuicPriority EffectivePriority() const OVERRIDE {
47 return QuicUtils::HighestPriority(); 47 return QuicUtils::HighestPriority();
48 } 48 }
49 virtual bool IsFlowControlEnabled() const { 49 virtual bool IsFlowControlEnabled() const {
50 return true; 50 return true;
51 } 51 }
52 }; 52 };
53 53
54 namespace { 54 namespace {
55 55
56 static const char kPayload[] = 56 static const char kPayload[] =
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 LOG(ERROR) << "Sending index " << index << " " << list_[index].second; 375 LOG(ERROR) << "Sending index " << index << " " << list_[index].second;
376 EXPECT_TRUE(OnFrame(list_[index].first, list_[index].second.data())); 376 EXPECT_TRUE(OnFrame(list_[index].first, list_[index].second.data()));
377 377
378 list_.erase(list_.begin() + index); 378 list_.erase(list_.begin() + index);
379 } 379 }
380 } 380 }
381 381
382 } // namespace 382 } // namespace
383 } // namespace test 383 } // namespace test
384 } // namespace net 384 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698