OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/websockets/websocket_handshake_stream_create_helper.h" | 5 #include "net/websockets/websocket_handshake_stream_create_helper.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 WebSocketMockClientSocketFactoryMaker socket_factory_maker_; | 58 WebSocketMockClientSocketFactoryMaker socket_factory_maker_; |
59 MockTransportClientSocketPool pool_; | 59 MockTransportClientSocketPool pool_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(MockClientSocketHandleFactory); | 61 DISALLOW_COPY_AND_ASSIGN(MockClientSocketHandleFactory); |
62 }; | 62 }; |
63 | 63 |
64 class TestConnectDelegate : public WebSocketStream::ConnectDelegate { | 64 class TestConnectDelegate : public WebSocketStream::ConnectDelegate { |
65 public: | 65 public: |
66 ~TestConnectDelegate() override {} | 66 ~TestConnectDelegate() override {} |
67 | 67 |
| 68 void OnCreateRequest(URLRequest* request) override {} |
68 void OnSuccess(std::unique_ptr<WebSocketStream> stream) override {} | 69 void OnSuccess(std::unique_ptr<WebSocketStream> stream) override {} |
69 void OnFailure(const std::string& failure_message) override {} | 70 void OnFailure(const std::string& failure_message) override {} |
70 void OnStartOpeningHandshake( | 71 void OnStartOpeningHandshake( |
71 std::unique_ptr<WebSocketHandshakeRequestInfo> request) override {} | 72 std::unique_ptr<WebSocketHandshakeRequestInfo> request) override {} |
72 void OnFinishOpeningHandshake( | 73 void OnFinishOpeningHandshake( |
73 std::unique_ptr<WebSocketHandshakeResponseInfo> response) override {} | 74 std::unique_ptr<WebSocketHandshakeResponseInfo> response) override {} |
74 void OnSSLCertificateError( | 75 void OnSSLCertificateError( |
75 std::unique_ptr<WebSocketEventInterface::SSLErrorCallbacks> | 76 std::unique_ptr<WebSocketEventInterface::SSLErrorCallbacks> |
76 ssl_error_callbacks, | 77 ssl_error_callbacks, |
77 const SSLInfo& ssl_info, | 78 const SSLInfo& ssl_info, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 197 |
197 EXPECT_EQ( | 198 EXPECT_EQ( |
198 "permessage-deflate;" | 199 "permessage-deflate;" |
199 " client_max_window_bits=14; server_max_window_bits=14;" | 200 " client_max_window_bits=14; server_max_window_bits=14;" |
200 " server_no_context_takeover; client_no_context_takeover", | 201 " server_no_context_takeover; client_no_context_takeover", |
201 stream->GetExtensions()); | 202 stream->GetExtensions()); |
202 } | 203 } |
203 | 204 |
204 } // namespace | 205 } // namespace |
205 } // namespace net | 206 } // namespace net |
OLD | NEW |