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

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

Issue 112463003: Add convenience HighestPriority and LowestPriority methods to QuicUtils. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_data_stream_test.cc ('k') | net/quic/quic_utils.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 (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/rand_util.h" 10 #include "base/rand_util.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 MockStream(QuicSession* session, QuicStreamId id) 68 MockStream(QuicSession* session, QuicStreamId id)
69 : ReliableQuicStream(id, session) { 69 : ReliableQuicStream(id, session) {
70 } 70 }
71 71
72 MOCK_METHOD0(OnFinRead, void()); 72 MOCK_METHOD0(OnFinRead, void());
73 MOCK_METHOD2(ProcessRawData, uint32(const char* data, uint32 data_len)); 73 MOCK_METHOD2(ProcessRawData, uint32(const char* data, uint32 data_len));
74 MOCK_METHOD2(CloseConnectionWithDetails, void(QuicErrorCode error, 74 MOCK_METHOD2(CloseConnectionWithDetails, void(QuicErrorCode error,
75 const string& details)); 75 const string& details));
76 MOCK_METHOD1(Reset, void(QuicRstStreamErrorCode error)); 76 MOCK_METHOD1(Reset, void(QuicRstStreamErrorCode error));
77 MOCK_METHOD0(OnCanWrite, void()); 77 MOCK_METHOD0(OnCanWrite, void());
78 virtual QuicPriority EffectivePriority() const { return 0; } 78 virtual QuicPriority EffectivePriority() const {
79 return QuicUtils::HighestPriority();
80 }
79 }; 81 };
80 82
81 namespace { 83 namespace {
82 84
83 static const char kPayload[] = 85 static const char kPayload[] =
84 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; 86 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
85 87
86 class QuicStreamSequencerTest : public ::testing::Test { 88 class QuicStreamSequencerTest : public ::testing::Test {
87 protected: 89 protected:
88 QuicStreamSequencerTest() 90 QuicStreamSequencerTest()
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 574
573 if (acked) { 575 if (acked) {
574 list_.erase(list_.begin() + index); 576 list_.erase(list_.begin() + index);
575 } 577 }
576 } 578 }
577 } 579 }
578 580
579 } // namespace 581 } // namespace
580 } // namespace test 582 } // namespace test
581 } // namespace net 583 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_data_stream_test.cc ('k') | net/quic/quic_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698