| Index: ppapi/tests/test_websocket.cc
|
| diff --git a/ppapi/tests/test_websocket.cc b/ppapi/tests/test_websocket.cc
|
| index acbad3e4de0280d3a80a73086198292a32afeeae..5b400eeb38f6707775b917399d23b2690275a0b8 100644
|
| --- a/ppapi/tests/test_websocket.cc
|
| +++ b/ppapi/tests/test_websocket.cc
|
| @@ -240,8 +240,13 @@ void TestWebSocket::RunTests(const std::string& filter) {
|
| }
|
|
|
| std::string TestWebSocket::GetFullURL(const char* url) {
|
| - std::string rv = "ws://localhost";
|
| - // Some WebSocket tests don't start the server so there'll be no port.
|
| + std::string rv = "ws://";
|
| + // Some WebSocket tests don't start the server so there'll be no host and
|
| + // port.
|
| + if (instance_->websocket_host().empty())
|
| + rv += "127.0.0.1";
|
| + else
|
| + rv += instance_->websocket_host();
|
| if (instance_->websocket_port() != -1) {
|
| char buffer[10];
|
| sprintf(buffer, ":%d", instance_->websocket_port());
|
|
|