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

Unified Diff: net/websockets/websocket_test_util.h

Issue 2003253002: [Devtools] Allow User-Agent header override for Websockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests Created 4 years, 6 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 | « net/websockets/websocket_stream_test.cc ('k') | net/websockets/websocket_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_test_util.h
diff --git a/net/websockets/websocket_test_util.h b/net/websockets/websocket_test_util.h
index becaba8d7ee938ba79e9e081947c989297a80c2c..6944cba589d4e484e3651dfa9cf227401010e7bb 100644
--- a/net/websockets/websocket_test_util.h
+++ b/net/websockets/websocket_test_util.h
@@ -45,10 +45,12 @@ class LinearCongruentialGenerator {
// Generates a standard WebSocket handshake request. The challenge key used is
// "dGhlIHNhbXBsZSBub25jZQ==". Each header in |extra_headers| must be terminated
// with "\r\n".
-std::string WebSocketStandardRequest(const std::string& path,
- const std::string& host,
- const url::Origin& origin,
- const std::string& extra_headers);
+std::string WebSocketStandardRequest(
+ const std::string& path,
+ const std::string& host,
+ const url::Origin& origin,
+ const std::string& send_additional_request_headers,
+ const std::string& extra_headers);
// Generates a standard WebSocket handshake request. The challenge key used is
// "dGhlIHNhbXBsZSBub25jZQ==". |cookies| must be empty or terminated with
@@ -58,6 +60,7 @@ std::string WebSocketStandardRequestWithCookies(
const std::string& host,
const url::Origin& origin,
const std::string& cookies,
+ const std::string& send_additional_request_headers,
const std::string& extra_headers);
// A response with the appropriate accept header to match the above challenge
« no previous file with comments | « net/websockets/websocket_stream_test.cc ('k') | net/websockets/websocket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698