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

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

Issue 411823002: Land Recent QUIC Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase TOT Created 6 years, 4 months 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
« no previous file with comments | « net/quic/quic_dispatcher.cc ('k') | net/quic/quic_received_packet_manager.cc » ('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_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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_dispatcher.cc ('k') | net/quic/quic_received_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698