Index: chrome/browser/extensions/extension_apitest.cc |
diff --git a/chrome/browser/extensions/extension_apitest.cc b/chrome/browser/extensions/extension_apitest.cc |
index 0b70626ed5023777e180e84706eb9908ed21364b..0ec71c52bbc014f3a3f02d84bf248fd7bddb01cc 100644 |
--- a/chrome/browser/extensions/extension_apitest.cc |
+++ b/chrome/browser/extensions/extension_apitest.cc |
@@ -415,11 +415,13 @@ void ExtensionApiTest::EmbeddedTestServerAcceptConnections() { |
} |
bool ExtensionApiTest::StartWebSocketServer( |
- const base::FilePath& root_directory) { |
+ const base::FilePath& root_directory, |
+ bool enable_basic_auth) { |
websocket_server_.reset(new net::SpawnedTestServer( |
net::SpawnedTestServer::TYPE_WS, |
net::SpawnedTestServer::kLocalhost, |
root_directory)); |
+ websocket_server_->set_websocket_basic_auth(enable_basic_auth); |
if (!websocket_server_->Start()) |
return false; |