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

Unified Diff: net/websockets/websocket_test_util.h

Issue 902553002: Change error message for WebSocket tunnel failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: net/websockets/websocket_test_util.h
diff --git a/net/websockets/websocket_test_util.h b/net/websockets/websocket_test_util.h
index 5c7db80eac748fe676394e5b221cf39866bc38ff..d6c8d58be67efe28e0eb37b56ff67e1177578f3a 100644
--- a/net/websockets/websocket_test_util.h
+++ b/net/websockets/websocket_test_util.h
@@ -123,6 +123,11 @@ struct WebSocketTestURLRequestContextHost {
void AddSSLSocketDataProvider(
scoped_ptr<SSLSocketDataProvider> ssl_socket_data);
+ // Allow a proxy to be set. Usage:
+ // SetProxyService(make_scoped_ptr(ProxyService::CreateFixed("pro1:8000")))
+ // Must be called prior to GetURLRequestContext().
+ void SetProxyService(scoped_ptr<ProxyService> proxy_service);
+
// Call after calling one of SetExpections() or AddRawExpectations(). The
// returned pointer remains owned by this object.
TestURLRequestContext* GetURLRequestContext();

Powered by Google App Engine
This is Rietveld 408576698