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

Side by Side Diff: net/socket/socket_test_util.h

Issue 1174073003: Add served cert chain to SSLInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rsleevi nits Created 5 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
« no previous file with comments | « net/http/http_response_info.h ('k') | net/socket/socket_test_util.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NET_SOCKET_SOCKET_TEST_UTIL_H_ 5 #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_
6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_ 6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 int GetTLSUniqueChannelBinding(std::string* out) override; 657 int GetTLSUniqueChannelBinding(std::string* out) override;
658 NextProtoStatus GetNextProto(std::string* proto) const override; 658 NextProtoStatus GetNextProto(std::string* proto) const override;
659 ChannelIDService* GetChannelIDService() const override; 659 ChannelIDService* GetChannelIDService() const override;
660 SSLFailureState GetSSLFailureState() const override; 660 SSLFailureState GetSSLFailureState() const override;
661 661
662 protected: 662 protected:
663 ~MockClientSocket() override; 663 ~MockClientSocket() override;
664 void RunCallbackAsync(const CompletionCallback& callback, int result); 664 void RunCallbackAsync(const CompletionCallback& callback, int result);
665 void RunCallback(const CompletionCallback& callback, int result); 665 void RunCallback(const CompletionCallback& callback, int result);
666 666
667 // SSLClientSocket implementation.
668 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain()
669 const override;
670
671 // True if Connect completed successfully and Disconnect hasn't been called. 667 // True if Connect completed successfully and Disconnect hasn't been called.
672 bool connected_; 668 bool connected_;
673 669
674 // Address of the "remote" peer we're connected to. 670 // Address of the "remote" peer we're connected to.
675 IPEndPoint peer_addr_; 671 IPEndPoint peer_addr_;
676 672
677 BoundNetLog net_log_; 673 BoundNetLog net_log_;
678 674
679 private: 675 private:
680 base::WeakPtrFactory<MockClientSocket> weak_factory_; 676 base::WeakPtrFactory<MockClientSocket> weak_factory_;
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 1233
1238 extern const char kSOCKS5OkRequest[]; 1234 extern const char kSOCKS5OkRequest[];
1239 extern const int kSOCKS5OkRequestLength; 1235 extern const int kSOCKS5OkRequestLength;
1240 1236
1241 extern const char kSOCKS5OkResponse[]; 1237 extern const char kSOCKS5OkResponse[];
1242 extern const int kSOCKS5OkResponseLength; 1238 extern const int kSOCKS5OkResponseLength;
1243 1239
1244 } // namespace net 1240 } // namespace net
1245 1241
1246 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1242 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/http/http_response_info.h ('k') | net/socket/socket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698