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

Unified Diff: net/websockets/websocket_job_spdy2_unittest.cc

Issue 12033072: Include destination port for websocket throttling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix things caught by toyoshim. Created 7 years, 11 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
« no previous file with comments | « no previous file | net/websockets/websocket_job_spdy3_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_job_spdy2_unittest.cc
diff --git a/net/websockets/websocket_job_spdy2_unittest.cc b/net/websockets/websocket_job_spdy2_unittest.cc
index 5ac3a9a2f17fd388f0535043878c87d7cd6f1e09..f2c9f0c35ad0cadeb037601c17915a3740cb9576 100644
--- a/net/websockets/websocket_job_spdy2_unittest.cc
+++ b/net/websockets/websocket_job_spdy2_unittest.cc
@@ -406,9 +406,13 @@ class WebSocketJobSpdy2Test : public PlatformTest {
websocket_->InitSocketStream(socket_.get());
websocket_->set_context(context_.get());
+ // MockHostResolver resolves all hosts to 127.0.0.1; however, when we create
+ // a WebSocketJob purely to block another one in a throttling test, we don't
+ // perform a real connect. In that case, the following address is used
+ // instead.
IPAddressNumber ip;
ParseIPLiteralToNumber("127.0.0.1", &ip);
- websocket_->addresses_ = AddressList::CreateFromIPAddress(ip, 0);
+ websocket_->addresses_ = AddressList::CreateFromIPAddress(ip, 80);
}
void SkipToConnecting() {
websocket_->state_ = WebSocketJob::CONNECTING;
« no previous file with comments | « no previous file | net/websockets/websocket_job_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698