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

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

Issue 1470713003: Landing Recent QUIC changes until and including Mon Nov 16 14:15:48 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding NET_EXPORT_PRIVATE to DelegateInterface. Created 5 years 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 #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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public: 42 public:
43 MockStream(QuicSession* session, QuicStreamId id) 43 MockStream(QuicSession* session, QuicStreamId id)
44 : ReliableQuicStream(id, session) {} 44 : ReliableQuicStream(id, session) {}
45 45
46 MOCK_METHOD0(OnFinRead, void()); 46 MOCK_METHOD0(OnFinRead, void());
47 MOCK_METHOD0(OnDataAvailable, void()); 47 MOCK_METHOD0(OnDataAvailable, void());
48 MOCK_METHOD2(CloseConnectionWithDetails, 48 MOCK_METHOD2(CloseConnectionWithDetails,
49 void(QuicErrorCode error, const string& details)); 49 void(QuicErrorCode error, const string& details));
50 MOCK_METHOD1(Reset, void(QuicRstStreamErrorCode error)); 50 MOCK_METHOD1(Reset, void(QuicRstStreamErrorCode error));
51 MOCK_METHOD0(OnCanWrite, void()); 51 MOCK_METHOD0(OnCanWrite, void());
52 QuicPriority EffectivePriority() const override { 52 SpdyPriority Priority() const override { return net::kHighestPriority; }
53 return QuicUtils::HighestPriority();
54 }
55 virtual bool IsFlowControlEnabled() const { return true; } 53 virtual bool IsFlowControlEnabled() const { return true; }
56 }; 54 };
57 55
58 namespace { 56 namespace {
59 57
60 static const char kPayload[] = 58 static const char kPayload[] =
61 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; 59 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
62 60
63 class QuicStreamSequencerTest : public ::testing::TestWithParam<bool> { 61 class QuicStreamSequencerTest : public ::testing::TestWithParam<bool> {
64 public: 62 public:
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 EXPECT_EQ(timestamp, t1); 728 EXPECT_EQ(timestamp, t1);
731 QuicStreamSequencerTest::ConsumeData(3); 729 QuicStreamSequencerTest::ConsumeData(3);
732 EXPECT_EQ(0u, NumBufferedBytes()); 730 EXPECT_EQ(0u, NumBufferedBytes());
733 EXPECT_EQ(6u, sequencer_->NumBytesConsumed()); 731 EXPECT_EQ(6u, sequencer_->NumBytesConsumed());
734 EXPECT_EQ(0u, sequencer_->NumBytesBuffered()); 732 EXPECT_EQ(0u, sequencer_->NumBytesBuffered());
735 } 733 }
736 734
737 } // namespace 735 } // namespace
738 } // namespace test 736 } // namespace test
739 } // namespace net 737 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698