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

Unified Diff: net/websockets/websocket_job_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_job_unittest.cc
===================================================================
--- net/websockets/websocket_job_unittest.cc (revision 105385)
+++ net/websockets/websocket_job_unittest.cc (working copy)
@@ -622,6 +622,8 @@
TEST_F(WebSocketJobTest, DelayedCookies) {
WebSocketJob::set_websocket_over_spdy_enabled(true);
+ // Disable sending PING.
+ SpdySession::set_enable_ping_based_connection_checking(false);
GURL url("ws://example.com/demo");
GURL cookieUrl("http://example.com/demo");
CookieOptions cookie_options;
@@ -866,6 +868,8 @@
void WebSocketJobTest::TestConnectBySpdy(
SpdyOption spdy, ThrottlingOption throttling) {
+ // Disable sending PING.
+ SpdySession::set_enable_ping_based_connection_checking(false);
// This is a test for verifying cooperation between WebSocketJob and
// SocketStream in the situation we have SPDY session to the server. If
// |throttling| was |THROTTLING_ON|, throttling limits the latter connection.

Powered by Google App Engine
This is Rietveld 408576698