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

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

Issue 1468773002: Changing from QuicPriority to SpdyPriority. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107610692
Patch Set: Created 5 years, 1 month 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_http_utils.cc ('k') | net/quic/quic_protocol.h » ('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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 return maker_.MakeDataPacket(packet_number, stream_id, 255 return maker_.MakeDataPacket(packet_number, stream_id,
256 should_include_version, fin, offset, data); 256 should_include_version, fin, offset, data);
257 } 257 }
258 258
259 scoped_ptr<QuicEncryptedPacket> ConstructRequestHeadersPacket( 259 scoped_ptr<QuicEncryptedPacket> ConstructRequestHeadersPacket(
260 QuicPacketNumber packet_number, 260 QuicPacketNumber packet_number,
261 QuicStreamId stream_id, 261 QuicStreamId stream_id,
262 bool should_include_version, 262 bool should_include_version,
263 bool fin, 263 bool fin,
264 const SpdyHeaderBlock& headers) { 264 const SpdyHeaderBlock& headers) {
265 QuicPriority priority = 265 SpdyPriority priority =
266 ConvertRequestPriorityToQuicPriority(DEFAULT_PRIORITY); 266 ConvertRequestPriorityToQuicPriority(DEFAULT_PRIORITY);
267 return maker_.MakeRequestHeadersPacket(packet_number, stream_id, 267 return maker_.MakeRequestHeadersPacket(packet_number, stream_id,
268 should_include_version, fin, 268 should_include_version, fin,
269 priority, headers); 269 priority, headers);
270 } 270 }
271 271
272 scoped_ptr<QuicEncryptedPacket> ConstructResponseHeadersPacket( 272 scoped_ptr<QuicEncryptedPacket> ConstructResponseHeadersPacket(
273 QuicPacketNumber packet_number, 273 QuicPacketNumber packet_number,
274 QuicStreamId stream_id, 274 QuicStreamId stream_id,
275 bool should_include_version, 275 bool should_include_version,
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 request_.url = GURL("https://www.example.org:443"); 1751 request_.url = GURL("https://www.example.org:443");
1752 AddHangingNonAlternateProtocolSocketData(); 1752 AddHangingNonAlternateProtocolSocketData();
1753 CreateSessionWithNextProtos(); 1753 CreateSessionWithNextProtos();
1754 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); 1754 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE);
1755 SendRequestAndExpectQuicResponse("hello!"); 1755 SendRequestAndExpectQuicResponse("hello!");
1756 EXPECT_TRUE(rtt_observer_.rtt_notification_received()); 1756 EXPECT_TRUE(rtt_observer_.rtt_notification_received());
1757 } 1757 }
1758 1758
1759 } // namespace test 1759 } // namespace test
1760 } // namespace net 1760 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_http_utils.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698