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

Unified Diff: net/socket/ssl_client_socket_pool_unittest.cc

Issue 8230037: Send PING to check the status of the SPDY connection. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: net/socket/ssl_client_socket_pool_unittest.cc
===================================================================
--- net/socket/ssl_client_socket_pool_unittest.cc (revision 105385)
+++ net/socket/ssl_client_socket_pool_unittest.cc (working copy)
@@ -86,6 +86,16 @@
ssl_config_service->GetSSLConfig(&ssl_config_);
}
+ virtual void SetUp() OVERRIDE {
+ // Disable sending PING.
+ SpdySession::set_enable_ping_based_connection_checking(false);
+ }
+
+ virtual void TearDown() OVERRIDE {
+ // Enable sending PING.
+ SpdySession::set_enable_ping_based_connection_checking(true);
+ }
+
void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) {
ssl_histograms_.reset(new ClientSocketPoolHistograms("SSLUnitTest"));
pool_.reset(new SSLClientSocketPool(

Powered by Google App Engine
This is Rietveld 408576698