X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fnet%2Fwebsockets%2Fwebsocket_test_util.h;h=803c9be0af4a32cb1936cdb748ea3ee237f5e4d3;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=e95db1a4040b90e972d15c24e2335b8f00548baa;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/net/websockets/websocket_test_util.h b/src/net/websockets/websocket_test_util.h index e95db1a..803c9be 100644 --- a/src/net/websockets/websocket_test_util.h +++ b/src/net/websockets/websocket_test_util.h @@ -14,6 +14,10 @@ class GURL; +namespace base { +class Timer; +} // namespace base + namespace url { class Origin; } // namespace url @@ -37,8 +41,9 @@ class LinearCongruentialGenerator { }; // Alternate version of WebSocketStream::CreateAndConnectStream() for testing -// use only. The difference is the use of a |create_helper| argument in place of -// |requested_subprotocols|. Implemented in websocket_stream.cc. +// use only. The differences are the use of a |create_helper| argument in place +// of |requested_subprotocols| and taking |timer| as the handshake timeout +// timer. Implemented in websocket_stream.cc. NET_EXPORT_PRIVATE extern scoped_ptr CreateAndConnectStreamForTesting( const GURL& socket_url, @@ -46,7 +51,8 @@ NET_EXPORT_PRIVATE extern scoped_ptr const url::Origin& origin, URLRequestContext* url_request_context, const BoundNetLog& net_log, - scoped_ptr connect_delegate); + scoped_ptr connect_delegate, + scoped_ptr timer); // Generates a standard WebSocket handshake request. The challenge key used is // "dGhlIHNhbXBsZSBub25jZQ==". Each header in |extra_headers| must be terminated