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

Side by Side Diff: net/http/http_network_transaction_spdy3_unittest.cc

Issue 16501002: Give more request types a TransportSecurityState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enforce CalledOnValidThread in all non-static methods. Created 7 years, 6 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
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/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <math.h> // ceil 7 #include <math.h> // ceil
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 8808 matching lines...) Expand 10 before | Expand all | Expand 10 after
8819 session->GetTransportSocketPool( 8819 session->GetTransportSocketPool(
8820 HttpNetworkSession::NORMAL_SOCKET_POOL), 8820 HttpNetworkSession::NORMAL_SOCKET_POOL),
8821 BoundNetLog())); 8821 BoundNetLog()));
8822 EXPECT_EQ(OK, callback.WaitForResult()); 8822 EXPECT_EQ(OK, callback.WaitForResult());
8823 8823
8824 SSLConfig ssl_config; 8824 SSLConfig ssl_config;
8825 session->ssl_config_service()->GetSSLConfig(&ssl_config); 8825 session->ssl_config_service()->GetSSLConfig(&ssl_config);
8826 scoped_ptr<ClientSocketHandle> ssl_connection(new ClientSocketHandle); 8826 scoped_ptr<ClientSocketHandle> ssl_connection(new ClientSocketHandle);
8827 SSLClientSocketContext context; 8827 SSLClientSocketContext context;
8828 context.cert_verifier = session_deps_.cert_verifier.get(); 8828 context.cert_verifier = session_deps_.cert_verifier.get();
8829 context.transport_security_state =
8830 session_deps_.transport_security_state.get();
8829 ssl_connection->set_socket( 8831 ssl_connection->set_socket(
8830 session_deps_.socket_factory->CreateSSLClientSocket( 8832 session_deps_.socket_factory->CreateSSLClientSocket(
8831 connection.release(), 8833 connection.release(),
8832 HostPortPair(std::string(), 443), 8834 HostPortPair(std::string(), 443),
8833 ssl_config, 8835 ssl_config,
8834 context)); 8836 context));
8835 EXPECT_EQ(ERR_IO_PENDING, 8837 EXPECT_EQ(ERR_IO_PENDING,
8836 ssl_connection->socket()->Connect(callback.callback())); 8838 ssl_connection->socket()->Connect(callback.callback()));
8837 EXPECT_EQ(OK, callback.WaitForResult()); 8839 EXPECT_EQ(OK, callback.WaitForResult());
8838 8840
(...skipping 2515 matching lines...) Expand 10 before | Expand all | Expand 10 after
11354 EXPECT_EQ("hello!", response_data); 11356 EXPECT_EQ("hello!", response_data);
11355 EXPECT_FALSE( 11357 EXPECT_FALSE(
11356 session->spdy_session_pool()->HasSession(spdy_session_key_a)); 11358 session->spdy_session_pool()->HasSession(spdy_session_key_a));
11357 EXPECT_FALSE( 11359 EXPECT_FALSE(
11358 session->spdy_session_pool()->HasSession(spdy_session_key_b)); 11360 session->spdy_session_pool()->HasSession(spdy_session_key_b));
11359 11361
11360 HttpStreamFactory::SetNextProtos(std::vector<std::string>()); 11362 HttpStreamFactory::SetNextProtos(std::vector<std::string>());
11361 } 11363 }
11362 11364
11363 } // namespace net 11365 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_spdy2_unittest.cc ('k') | net/http/http_stream_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698