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

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

Issue 9391027: Disable CREDENTIALS frames when using spdy/2.1 or earlier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/ssl_client_socket.h ('k') | net/spdy/spdy_session.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/spdy/spdy_http_stream.h" 5 #include "net/spdy/spdy_http_stream.h"
6 6
7 #include "crypto/rsa_private_key.h" 7 #include "crypto/rsa_private_key.h"
8 #include "crypto/signature_creator.h" 8 #include "crypto/signature_creator.h"
9 #include "net/base/default_origin_bound_cert_store.h" 9 #include "net/base/default_origin_bound_cert_store.h"
10 #include "net/http/http_response_headers.h" 10 #include "net/http/http_response_headers.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 DeterministicMockClientSocketFactory* socket_factory = 311 DeterministicMockClientSocketFactory* socket_factory =
312 session_deps_.deterministic_socket_factory.get(); 312 session_deps_.deterministic_socket_factory.get();
313 scoped_refptr<DeterministicSocketData> data( 313 scoped_refptr<DeterministicSocketData> data(
314 new DeterministicSocketData(reads, arraysize(reads), 314 new DeterministicSocketData(reads, arraysize(reads),
315 writes, arraysize(writes))); 315 writes, arraysize(writes)));
316 socket_factory->AddSocketDataProvider(data.get()); 316 socket_factory->AddSocketDataProvider(data.get());
317 SSLSocketDataProvider ssl(false, OK); 317 SSLSocketDataProvider ssl(false, OK);
318 ssl.origin_bound_cert_type = CLIENT_CERT_RSA_SIGN; 318 ssl.origin_bound_cert_type = CLIENT_CERT_RSA_SIGN;
319 ssl.origin_bound_cert_service = obc_service.get(); 319 ssl.origin_bound_cert_service = obc_service.get();
320 ssl.protocol_negotiated = SSLClientSocket::kProtoSPDY3;
320 socket_factory->AddSSLSocketDataProvider(&ssl); 321 socket_factory->AddSSLSocketDataProvider(&ssl);
321 http_session_ = SpdySessionDependencies::SpdyCreateSessionDeterministic( 322 http_session_ = SpdySessionDependencies::SpdyCreateSessionDeterministic(
322 &session_deps_); 323 &session_deps_);
323 session_ = http_session_->spdy_session_pool()->Get(pair, BoundNetLog()); 324 session_ = http_session_->spdy_session_pool()->Get(pair, BoundNetLog());
324 transport_params_ = new TransportSocketParams(host_port_pair, 325 transport_params_ = new TransportSocketParams(host_port_pair,
325 MEDIUM, false, false); 326 MEDIUM, false, false);
326 TestCompletionCallback callback; 327 TestCompletionCallback callback;
327 scoped_ptr<ClientSocketHandle> connection(new ClientSocketHandle); 328 scoped_ptr<ClientSocketHandle> connection(new ClientSocketHandle);
328 SSLConfig ssl_config; 329 SSLConfig ssl_config;
329 scoped_refptr<SOCKSSocketParams> socks_params; 330 scoped_refptr<SOCKSSocketParams> socks_params;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 ASSERT_TRUE(response.headers.get() != NULL); 392 ASSERT_TRUE(response.headers.get() != NULL);
392 ASSERT_EQ(200, response.headers->response_code()); 393 ASSERT_EQ(200, response.headers->response_code());
393 } 394 }
394 395
395 #endif // !defined(USE_OPENSSL) 396 #endif // !defined(USE_OPENSSL)
396 397
397 // TODO(willchan): Write a longer test for SpdyStream that exercises all 398 // TODO(willchan): Write a longer test for SpdyStream that exercises all
398 // methods. 399 // methods.
399 400
400 } // namespace net 401 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket.h ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698