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

Side by Side Diff: net/spdy/spdy_test_util_common.cc

Issue 1662913002: Initialize AltSvc flags to false in SpdySessionDependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/spdy/spdy_test_util_common.h" 5 #include "net/spdy/spdy_test_util_common.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <cstddef> 8 #include <cstddef>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 enable_user_alternate_protocol_ports(false), 380 enable_user_alternate_protocol_ports(false),
381 enable_npn(true), 381 enable_npn(true),
382 protocol(protocol), 382 protocol(protocol),
383 session_max_recv_window_size( 383 session_max_recv_window_size(
384 SpdySession::GetDefaultInitialWindowSize(protocol)), 384 SpdySession::GetDefaultInitialWindowSize(protocol)),
385 stream_max_recv_window_size( 385 stream_max_recv_window_size(
386 SpdySession::GetDefaultInitialWindowSize(protocol)), 386 SpdySession::GetDefaultInitialWindowSize(protocol)),
387 time_func(&base::TimeTicks::Now), 387 time_func(&base::TimeTicks::Now),
388 enable_spdy31(true), 388 enable_spdy31(true),
389 enable_http2(true), 389 enable_http2(true),
390 parse_alternative_services(true), 390 parse_alternative_services(false),
391 enable_alternative_service_with_different_host(true), 391 enable_alternative_service_with_different_host(false),
392 net_log(NULL) { 392 net_log(NULL) {
393 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol; 393 DCHECK(next_proto_is_spdy(protocol)) << "Invalid protocol: " << protocol;
394 } 394 }
395 395
396 SpdySessionDependencies::~SpdySessionDependencies() {} 396 SpdySessionDependencies::~SpdySessionDependencies() {}
397 397
398 // static 398 // static
399 scoped_ptr<HttpNetworkSession> SpdySessionDependencies::SpdyCreateSession( 399 scoped_ptr<HttpNetworkSession> SpdySessionDependencies::SpdyCreateSession(
400 SpdySessionDependencies* session_deps) { 400 SpdySessionDependencies* session_deps) {
401 HttpNetworkSession::Params params = CreateSessionParams(session_deps); 401 HttpNetworkSession::Params params = CreateSessionParams(session_deps);
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 } 1341 }
1342 } 1342 }
1343 1343
1344 void SpdyTestUtil::SetPriority(RequestPriority priority, 1344 void SpdyTestUtil::SetPriority(RequestPriority priority,
1345 SpdySynStreamIR* ir) const { 1345 SpdySynStreamIR* ir) const {
1346 ir->set_priority(ConvertRequestPriorityToSpdyPriority( 1346 ir->set_priority(ConvertRequestPriorityToSpdyPriority(
1347 priority, spdy_version())); 1347 priority, spdy_version()));
1348 } 1348 }
1349 1349
1350 } // namespace net 1350 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698