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

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

Issue 1216703002: Implement multiple alternative services per origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 NextProto protocol; 90 NextProto protocol;
91 SpdyNetworkTransactionTestSSLType ssl_type; 91 SpdyNetworkTransactionTestSSLType ssl_type;
92 }; 92 };
93 93
94 void UpdateSpdySessionDependencies(SpdyNetworkTransactionTestParams test_params, 94 void UpdateSpdySessionDependencies(SpdyNetworkTransactionTestParams test_params,
95 SpdySessionDependencies* session_deps) { 95 SpdySessionDependencies* session_deps) {
96 session_deps->use_alternate_protocols = true; 96 session_deps->use_alternate_protocols = true;
97 session_deps->next_protos = SpdyNextProtos(); 97 session_deps->next_protos = SpdyNextProtos();
98 if (test_params.ssl_type == HTTP_SPDY_VIA_ALT_SVC) { 98 if (test_params.ssl_type == HTTP_SPDY_VIA_ALT_SVC) {
99 session_deps->http_server_properties.SetAlternativeService( 99 session_deps->http_server_properties.AddAlternativeService(
100 HostPortPair("www.example.org", 80), 100 HostPortPair("www.example.org", 80),
101 AlternativeService(AlternateProtocolFromNextProto(test_params.protocol), 101 AlternativeService(AlternateProtocolFromNextProto(test_params.protocol),
102 "www.example.org", 443), 102 "www.example.org", 443),
103 1); 103 1);
104 } 104 }
105 } 105 }
106 106
107 SpdySessionDependencies* CreateSpdySessionDependencies( 107 SpdySessionDependencies* CreateSpdySessionDependencies(
108 SpdyNetworkTransactionTestParams test_params) { 108 SpdyNetworkTransactionTestParams test_params) {
109 SpdySessionDependencies* session_deps = 109 SpdySessionDependencies* session_deps =
(...skipping 6479 matching lines...) Expand 10 before | Expand all | Expand 10 after
6589 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { 6589 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) {
6590 scoped_ptr<SSLSocketDataProvider> ssl_provider( 6590 scoped_ptr<SSLSocketDataProvider> ssl_provider(
6591 new SSLSocketDataProvider(ASYNC, OK)); 6591 new SSLSocketDataProvider(ASYNC, OK));
6592 // Set to TLS_RSA_WITH_NULL_MD5 6592 // Set to TLS_RSA_WITH_NULL_MD5
6593 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); 6593 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status);
6594 6594
6595 RunTLSUsageCheckTest(ssl_provider.Pass()); 6595 RunTLSUsageCheckTest(ssl_provider.Pass());
6596 } 6596 }
6597 6597
6598 } // namespace net 6598 } // namespace net
OLDNEW
« net/http/http_stream_factory_impl.cc ('K') | « net/quic/quic_stream_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698