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_http_stream.h" | 5 #include "net/quic/quic_http_stream.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/base/test_completion_callback.h" | 10 #include "net/base/test_completion_callback.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const char kServerHostname[] = "www.google.com"; | 52 const char kServerHostname[] = "www.google.com"; |
53 const uint16 kServerPort = 80; | 53 const uint16 kServerPort = 80; |
54 | 54 |
55 class TestQuicConnection : public QuicConnection { | 55 class TestQuicConnection : public QuicConnection { |
56 public: | 56 public: |
57 TestQuicConnection(const QuicVersionVector& versions, | 57 TestQuicConnection(const QuicVersionVector& versions, |
58 QuicConnectionId connection_id, | 58 QuicConnectionId connection_id, |
59 IPEndPoint address, | 59 IPEndPoint address, |
60 QuicConnectionHelper* helper, | 60 QuicConnectionHelper* helper, |
61 QuicPacketWriter* writer) | 61 QuicPacketWriter* writer) |
62 : QuicConnection(connection_id, address, helper, writer, false, | 62 : QuicConnection(connection_id, |
| 63 address, |
| 64 helper, |
| 65 writer, |
| 66 false /* owns_writer */, |
| 67 false /* is_server */, |
63 versions) { | 68 versions) { |
64 } | 69 } |
65 | 70 |
66 void SetSendAlgorithm(SendAlgorithmInterface* send_algorithm) { | 71 void SetSendAlgorithm(SendAlgorithmInterface* send_algorithm) { |
67 QuicConnectionPeer::SetSendAlgorithm(this, send_algorithm); | 72 QuicConnectionPeer::SetSendAlgorithm(this, send_algorithm); |
68 } | 73 } |
69 | 74 |
70 void SetReceiveAlgorithm(ReceiveAlgorithmInterface* receive_algorithm) { | 75 void SetReceiveAlgorithm(ReceiveAlgorithmInterface* receive_algorithm) { |
71 QuicConnectionPeer::SetReceiveAlgorithm(this, receive_algorithm); | 76 QuicConnectionPeer::SetReceiveAlgorithm(this, receive_algorithm); |
72 } | 77 } |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 // Set Delegate to NULL and make sure EffectivePriority returns highest | 618 // Set Delegate to NULL and make sure EffectivePriority returns highest |
614 // priority. | 619 // priority. |
615 reliable_stream->SetDelegate(NULL); | 620 reliable_stream->SetDelegate(NULL); |
616 DCHECK_EQ(QuicWriteBlockedList::kHighestPriority, | 621 DCHECK_EQ(QuicWriteBlockedList::kHighestPriority, |
617 reliable_stream->EffectivePriority()); | 622 reliable_stream->EffectivePriority()); |
618 reliable_stream->SetDelegate(delegate); | 623 reliable_stream->SetDelegate(delegate); |
619 } | 624 } |
620 | 625 |
621 } // namespace test | 626 } // namespace test |
622 } // namespace net | 627 } // namespace net |
OLD | NEW |