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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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/quic/quic_data_stream.h ('k') | net/quic/quic_default_packet_writer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "net/quic/quic_data_stream.h" 5 #include "net/quic/quic_data_stream.h"
6 6
7 #include "net/quic/quic_ack_notifier.h" 7 #include "net/quic/quic_ack_notifier.h"
8 #include "net/quic/quic_connection.h" 8 #include "net/quic/quic_connection.h"
9 #include "net/quic/quic_utils.h" 9 #include "net/quic/quic_utils.h"
10 #include "net/quic/quic_write_blocked_list.h" 10 #include "net/quic/quic_write_blocked_list.h"
(...skipping 22 matching lines...) Expand all
33 const bool kShouldProcessData = true; 33 const bool kShouldProcessData = true;
34 34
35 class TestStream : public QuicDataStream { 35 class TestStream : public QuicDataStream {
36 public: 36 public:
37 TestStream(QuicStreamId id, 37 TestStream(QuicStreamId id,
38 QuicSession* session, 38 QuicSession* session,
39 bool should_process_data) 39 bool should_process_data)
40 : QuicDataStream(id, session), 40 : QuicDataStream(id, session),
41 should_process_data_(should_process_data) {} 41 should_process_data_(should_process_data) {}
42 42
43 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE { 43 virtual uint32 ProcessData(const char* data, uint32 data_len) override {
44 EXPECT_NE(0u, data_len); 44 EXPECT_NE(0u, data_len);
45 DVLOG(1) << "ProcessData data_len: " << data_len; 45 DVLOG(1) << "ProcessData data_len: " << data_len;
46 data_ += string(data, data_len); 46 data_ += string(data, data_len);
47 return should_process_data_ ? data_len : 0; 47 return should_process_data_ ? data_len : 0;
48 } 48 }
49 49
50 using ReliableQuicStream::WriteOrBufferData; 50 using ReliableQuicStream::WriteOrBufferData;
51 using ReliableQuicStream::CloseReadSide; 51 using ReliableQuicStream::CloseReadSide;
52 using ReliableQuicStream::CloseWriteSide; 52 using ReliableQuicStream::CloseWriteSide;
53 53
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 EXPECT_CALL(*connection_, SendBlocked(kClientDataStreamId1)).Times(0); 534 EXPECT_CALL(*connection_, SendBlocked(kClientDataStreamId1)).Times(0);
535 EXPECT_CALL(*session_, WritevData(kClientDataStreamId1, _, _, _, _, _)) 535 EXPECT_CALL(*session_, WritevData(kClientDataStreamId1, _, _, _, _, _))
536 .WillOnce(Return(QuicConsumedData(0, fin))); 536 .WillOnce(Return(QuicConsumedData(0, fin)));
537 537
538 stream_->WriteOrBufferData(body, fin, nullptr); 538 stream_->WriteOrBufferData(body, fin, nullptr);
539 } 539 }
540 540
541 } // namespace 541 } // namespace
542 } // namespace test 542 } // namespace test
543 } // namespace net 543 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_data_stream.h ('k') | net/quic/quic_default_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698