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

Side by Side Diff: components/cast_channel/cast_socket.h

Issue 2093923004: [Cast Channel] Add real SSL tests to CastSocketTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and respond to comments Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_CAST_CHANNEL_CAST_SOCKET_H_ 5 #ifndef COMPONENTS_CAST_CHANNEL_CAST_SOCKET_H_
6 #define COMPONENTS_CAST_CHANNEL_CAST_SOCKET_H_ 6 #define COMPONENTS_CAST_CHANNEL_CAST_SOCKET_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // capability must not have a certificate with audio only policy. 198 // capability must not have a certificate with audio only policy.
199 bool VerifyChannelPolicy(const AuthResult& result); 199 bool VerifyChannelPolicy(const AuthResult& result);
200 200
201 private: 201 private:
202 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestConnectAuthMessageCorrupted); 202 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestConnectAuthMessageCorrupted);
203 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, 203 FRIEND_TEST_ALL_PREFIXES(CastSocketTest,
204 TestConnectChallengeReplyReceiveError); 204 TestConnectChallengeReplyReceiveError);
205 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, 205 FRIEND_TEST_ALL_PREFIXES(CastSocketTest,
206 TestConnectChallengeVerificationFails); 206 TestConnectChallengeVerificationFails);
207 friend class AuthTransportDelegate; 207 friend class AuthTransportDelegate;
208 friend class CastSocketTest;
209 friend class TestCastSocket;
210 208
211 void SetErrorState(ChannelError error_state) override; 209 void SetErrorState(ChannelError error_state) override;
212 210
213 // Frees resources and cancels pending callbacks. |ready_state_| will be set 211 // Frees resources and cancels pending callbacks. |ready_state_| will be set
214 // READY_STATE_CLOSED on completion. A no-op if |ready_state_| is already 212 // READY_STATE_CLOSED on completion. A no-op if |ready_state_| is already
215 // READY_STATE_CLOSED. 213 // READY_STATE_CLOSED.
216 void CloseInternal(); 214 void CloseInternal();
217 215
218 // Creates an instance of TCPClientSocket. 216 // Creates an instance of TCPClientSocket.
219 virtual std::unique_ptr<net::TCPClientSocket> CreateTcpSocket(); 217 virtual std::unique_ptr<net::TCPClientSocket> CreateTcpSocket();
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 373
376 // Raw pointer to the auth handshake delegate. Used to get detailed error 374 // Raw pointer to the auth handshake delegate. Used to get detailed error
377 // information. 375 // information.
378 AuthTransportDelegate* auth_delegate_; 376 AuthTransportDelegate* auth_delegate_;
379 377
380 DISALLOW_COPY_AND_ASSIGN(CastSocketImpl); 378 DISALLOW_COPY_AND_ASSIGN(CastSocketImpl);
381 }; 379 };
382 } // namespace cast_channel 380 } // namespace cast_channel
383 381
384 #endif // COMPONENTS_CAST_CHANNEL_CAST_SOCKET_H_ 382 #endif // COMPONENTS_CAST_CHANNEL_CAST_SOCKET_H_
OLDNEW
« no previous file with comments | « no previous file | components/cast_channel/cast_socket_unittest.cc » ('j') | components/cast_channel/cast_socket_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698