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

Side by Side Diff: extensions/browser/api/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: Separate ssl and mock cast socket tests Created 4 years, 5 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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool VerifyChannelPolicy(const AuthResult& result); 209 bool VerifyChannelPolicy(const AuthResult& result);
210 210
211 private: 211 private:
212 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestConnectAuthMessageCorrupted); 212 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestConnectAuthMessageCorrupted);
213 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, 213 FRIEND_TEST_ALL_PREFIXES(CastSocketTest,
214 TestConnectChallengeReplyReceiveError); 214 TestConnectChallengeReplyReceiveError);
215 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, 215 FRIEND_TEST_ALL_PREFIXES(CastSocketTest,
216 TestConnectChallengeVerificationFails); 216 TestConnectChallengeVerificationFails);
217 friend class AuthTransportDelegate; 217 friend class AuthTransportDelegate;
218 friend class ApiResourceManager<CastSocketImpl>; 218 friend class ApiResourceManager<CastSocketImpl>;
219 friend class CastSocketTest; 219 friend class MockTestCastSocket;
220 friend class TestCastSocket; 220 friend class SslTestCastSocket;
221 221
222 void SetErrorState(ChannelError error_state) override; 222 void SetErrorState(ChannelError error_state) override;
223 223
224 // Frees resources and cancels pending callbacks. |ready_state_| will be set 224 // Frees resources and cancels pending callbacks. |ready_state_| will be set
225 // READY_STATE_CLOSED on completion. A no-op if |ready_state_| is already 225 // READY_STATE_CLOSED on completion. A no-op if |ready_state_| is already
226 // READY_STATE_CLOSED. 226 // READY_STATE_CLOSED.
227 void CloseInternal(); 227 void CloseInternal();
228 228
229 // Creates an instance of TCPClientSocket. 229 // Creates an instance of TCPClientSocket.
230 virtual std::unique_ptr<net::TCPClientSocket> CreateTcpSocket(); 230 virtual std::unique_ptr<net::TCPClientSocket> CreateTcpSocket();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 // information. 380 // information.
381 AuthTransportDelegate* auth_delegate_; 381 AuthTransportDelegate* auth_delegate_;
382 382
383 DISALLOW_COPY_AND_ASSIGN(CastSocketImpl); 383 DISALLOW_COPY_AND_ASSIGN(CastSocketImpl);
384 }; 384 };
385 } // namespace cast_channel 385 } // namespace cast_channel
386 } // namespace api 386 } // namespace api
387 } // namespace extensions 387 } // namespace extensions
388 388
389 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ 389 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698