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

Unified Diff: net/websockets/websocket_throttle_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/websockets/websocket_throttle_unittest.cc
===================================================================
--- net/websockets/websocket_throttle_unittest.cc (revision 105385)
+++ net/websockets/websocket_throttle_unittest.cc (working copy)
@@ -12,6 +12,7 @@
#include "net/base/sys_addrinfo.h"
#include "net/base/test_completion_callback.h"
#include "net/socket_stream/socket_stream.h"
+#include "net/spdy/spdy_session.h"
#include "net/url_request/url_request_test_util.h"
#include "net/websockets/websocket_job.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -86,6 +87,8 @@
// TODO(toyoshim): We need to consider both spdy-enabled and spdy-disabled
// configuration.
WebSocketJob::set_websocket_over_spdy_enabled(true);
+ // Disable sending PING.
+ SpdySession::set_enable_ping_based_connection_checking(false);
// For host1: 1.2.3.4, 1.2.3.5, 1.2.3.6
struct addrinfo* addr = AddAddr(1, 2, 3, 4, NULL);
@@ -298,6 +301,8 @@
scoped_refptr<URLRequestContext> context(new TestURLRequestContext);
DummySocketStreamDelegate delegate;
WebSocketJob::set_websocket_over_spdy_enabled(true);
+ // Disable sending PING.
+ SpdySession::set_enable_ping_based_connection_checking(false);
// For localhost: 127.0.0.1, 127.0.0.1
struct addrinfo* addr = AddAddr(127, 0, 0, 1, NULL);
« net/spdy/spdy_session_unittest.cc ('K') | « net/websockets/websocket_job_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698