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

Side by Side Diff: net/websockets/websocket_job_spdy2_unittest.cc

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/websockets/websocket_job.h" 5 #include "net/websockets/websocket_job.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 connection->Init(host_port_pair_.ToString(), transport_params_, 297 connection->Init(host_port_pair_.ToString(), transport_params_,
298 net::MEDIUM, net::CompletionCallback(), 298 net::MEDIUM, net::CompletionCallback(),
299 http_session_->GetTransportSocketPool( 299 http_session_->GetTransportSocketPool(
300 net::HttpNetworkSession::NORMAL_SOCKET_POOL), 300 net::HttpNetworkSession::NORMAL_SOCKET_POOL),
301 net::BoundNetLog())); 301 net::BoundNetLog()));
302 EXPECT_EQ(net::OK, 302 EXPECT_EQ(net::OK,
303 session_->InitializeWithSocket(connection, false, net::OK)); 303 session_->InitializeWithSocket(connection, false, net::OK));
304 } 304 }
305 305
306 virtual int CreateTransaction( 306 virtual int CreateTransaction(
307 scoped_ptr<net::HttpTransaction>* trans) OVERRIDE { 307 scoped_ptr<net::HttpTransaction>* trans,
308 net::HttpTransactionDelegate* delegate) OVERRIDE {
308 NOTREACHED(); 309 NOTREACHED();
309 return net::ERR_UNEXPECTED; 310 return net::ERR_UNEXPECTED;
310 } 311 }
311 312
312 virtual net::HttpCache* GetCache() OVERRIDE { 313 virtual net::HttpCache* GetCache() OVERRIDE {
313 NOTREACHED(); 314 NOTREACHED();
314 return NULL; 315 return NULL;
315 } 316 }
316 317
317 virtual net::HttpNetworkSession* GetSession() OVERRIDE { 318 virtual net::HttpNetworkSession* GetSession() OVERRIDE {
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 1103
1103 TEST_F(WebSocketJobSpdy2Test, ThrottlingSpdySpdyEnabled) { 1104 TEST_F(WebSocketJobSpdy2Test, ThrottlingSpdySpdyEnabled) {
1104 WebSocketJob::set_websocket_over_spdy_enabled(true); 1105 WebSocketJob::set_websocket_over_spdy_enabled(true);
1105 TestConnectBySpdy(SPDY_ON, THROTTLING_ON); 1106 TestConnectBySpdy(SPDY_ON, THROTTLING_ON);
1106 } 1107 }
1107 1108
1108 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. 1109 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation.
1109 // TODO(toyoshim,yutak): Add tests to verify closing handshake. 1110 // TODO(toyoshim,yutak): Add tests to verify closing handshake.
1110 1111
1111 } // namespace net 1112 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698