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

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

Issue 949633002: Include both certificate chains in invalid cert reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a comment to cert logger pb Created 5 years, 10 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 (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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 unsigned int outlen) override; 716 unsigned int outlen) override;
717 int GetTLSUniqueChannelBinding(std::string* out) override; 717 int GetTLSUniqueChannelBinding(std::string* out) override;
718 NextProtoStatus GetNextProto(std::string* proto) override; 718 NextProtoStatus GetNextProto(std::string* proto) override;
719 ChannelIDService* GetChannelIDService() const override; 719 ChannelIDService* GetChannelIDService() const override;
720 720
721 protected: 721 protected:
722 ~MockClientSocket() override; 722 ~MockClientSocket() override;
723 void RunCallbackAsync(const CompletionCallback& callback, int result); 723 void RunCallbackAsync(const CompletionCallback& callback, int result);
724 void RunCallback(const CompletionCallback& callback, int result); 724 void RunCallback(const CompletionCallback& callback, int result);
725 725
726 // SSLClientSocket implementation.
727 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain()
728 const override;
729
730 // True if Connect completed successfully and Disconnect hasn't been called. 726 // True if Connect completed successfully and Disconnect hasn't been called.
731 bool connected_; 727 bool connected_;
732 728
733 // Address of the "remote" peer we're connected to. 729 // Address of the "remote" peer we're connected to.
734 IPEndPoint peer_addr_; 730 IPEndPoint peer_addr_;
735 731
736 BoundNetLog net_log_; 732 BoundNetLog net_log_;
737 733
738 private: 734 private:
739 base::WeakPtrFactory<MockClientSocket> weak_factory_; 735 base::WeakPtrFactory<MockClientSocket> weak_factory_;
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1337
1342 extern const char kSOCKS5OkRequest[]; 1338 extern const char kSOCKS5OkRequest[];
1343 extern const int kSOCKS5OkRequestLength; 1339 extern const int kSOCKS5OkRequestLength;
1344 1340
1345 extern const char kSOCKS5OkResponse[]; 1341 extern const char kSOCKS5OkResponse[];
1346 extern const int kSOCKS5OkResponseLength; 1342 extern const int kSOCKS5OkResponseLength;
1347 1343
1348 } // namespace net 1344 } // namespace net
1349 1345
1350 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1346 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698