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

Unified Diff: net/spdy/spdy_proxy_client_socket_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/spdy/spdy_proxy_client_socket_unittest.cc
===================================================================
--- net/spdy/spdy_proxy_client_socket_unittest.cc (revision 105385)
+++ net/spdy/spdy_proxy_client_socket_unittest.cc (working copy)
@@ -57,6 +57,8 @@
public:
SpdyProxyClientSocketTest();
+ virtual void SetUp();
+
virtual void TearDown();
protected:
@@ -149,6 +151,11 @@
false)) {
}
+void SpdyProxyClientSocketTest::SetUp() {
+ // Disable sending PING.
+ SpdySession::set_enable_ping_based_connection_checking(false);
+}
+
void SpdyProxyClientSocketTest::TearDown() {
if (session_ != NULL)
session_->spdy_session_pool()->CloseAllSessions();
@@ -157,6 +164,8 @@
// Empty the current queue.
MessageLoop::current()->RunAllPending();
PlatformTest::TearDown();
+ // Enable sending PING.
+ SpdySession::set_enable_ping_based_connection_checking(true);
}
void SpdyProxyClientSocketTest::Initialize(MockRead* reads,

Powered by Google App Engine
This is Rietveld 408576698