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

Unified Diff: chrome/browser/extensions/extension_apitest.cc

Issue 2449913002: Support WebSocket in WebRequest API. (Closed)
Patch Set: git cl format Created 3 years, 10 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: 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;
« no previous file with comments | « chrome/browser/extensions/extension_apitest.h ('k') | chrome/common/extensions/docs/templates/intros/webRequest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698