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

Side by Side Diff: net/websockets/websocket_handshake_stream_create_helper_test.cc

Issue 2397393002: Provide child/frame IDs for WebSocket handshake request (Closed)
Patch Set: fix Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « net/websockets/websocket_event_interface.h ('k') | net/websockets/websocket_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/websockets/websocket_event_interface.h ('k') | net/websockets/websocket_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698