| 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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |