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

Side by Side Diff: net/socket/ssl_client_socket_unittest.cc

Issue 8857002: net: split the SSL session cache between incognito and normal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/socket/ssl_client_socket.h" 5 #include "net/socket/ssl_client_socket.h"
6 6
7 #include "net/base/address_list.h" 7 #include "net/base/address_list.h"
8 #include "net/base/cert_verifier.h" 8 #include "net/base/cert_verifier.h"
9 #include "net/base/host_resolver.h" 9 #include "net/base/host_resolver.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 socket_factory_->CreateSSLClientSocket( 746 socket_factory_->CreateSSLClientSocket(
747 socket_handle, test_server.host_port_pair(), kDefaultSSLConfig, 747 socket_handle, test_server.host_port_pair(), kDefaultSSLConfig,
748 NULL, context)); 748 NULL, context));
749 749
750 EXPECT_FALSE(ssl_socket->IsConnected()); 750 EXPECT_FALSE(ssl_socket->IsConnected());
751 rv = ssl_socket->Connect(callback.callback()); 751 rv = ssl_socket->Connect(callback.callback());
752 if (rv == net::ERR_IO_PENDING) 752 if (rv == net::ERR_IO_PENDING)
753 rv = callback.WaitForResult(); 753 rv = callback.WaitForResult();
754 EXPECT_EQ(net::OK, rv); 754 EXPECT_EQ(net::OK, rv);
755 } 755 }
756
757 // Verifies that SSLClientSocket::ClearSessionCache can be called without
758 // explicit NSS initialization.
759 TEST(SSLClientSocket, ClearSessionCache) {
760 net::SSLClientSocket::ClearSessionCache();
761 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698