| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |