| 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_session.h" | 5 #include "net/quic/quic_session.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 class TestStream : public QuicDataStream { | 81 class TestStream : public QuicDataStream { |
| 82 public: | 82 public: |
| 83 TestStream(QuicStreamId id, QuicSession* session) | 83 TestStream(QuicStreamId id, QuicSession* session) |
| 84 : QuicDataStream(id, session) { | 84 : QuicDataStream(id, session) { |
| 85 } | 85 } |
| 86 | 86 |
| 87 using ReliableQuicStream::CloseWriteSide; | 87 using ReliableQuicStream::CloseWriteSide; |
| 88 | 88 |
| 89 virtual uint32 ProcessData(const char* data, uint32 data_len) { | 89 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE { |
| 90 return data_len; | 90 return data_len; |
| 91 } | 91 } |
| 92 | 92 |
| 93 void SendBody(const string& data, bool fin) { | 93 void SendBody(const string& data, bool fin) { |
| 94 WriteOrBufferData(data, fin, NULL); | 94 WriteOrBufferData(data, fin, NULL); |
| 95 } | 95 } |
| 96 | 96 |
| 97 MOCK_METHOD0(OnCanWrite, void()); | 97 MOCK_METHOD0(OnCanWrite, void()); |
| 98 }; | 98 }; |
| 99 | 99 |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 | 848 |
| 849 // Version 16 means all flow control is disabled. | 849 // Version 16 means all flow control is disabled. |
| 850 session_.OnSuccessfulVersionNegotiation(QUIC_VERSION_16); | 850 session_.OnSuccessfulVersionNegotiation(QUIC_VERSION_16); |
| 851 EXPECT_FALSE(session_.flow_controller()->IsEnabled()); | 851 EXPECT_FALSE(session_.flow_controller()->IsEnabled()); |
| 852 EXPECT_FALSE(stream->flow_controller()->IsEnabled()); | 852 EXPECT_FALSE(stream->flow_controller()->IsEnabled()); |
| 853 } | 853 } |
| 854 | 854 |
| 855 } // namespace | 855 } // namespace |
| 856 } // namespace test | 856 } // namespace test |
| 857 } // namespace net | 857 } // namespace net |
| OLD | NEW |