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

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

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: rebase Created 5 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <cstring> 10 #include <cstring>
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 // SSLClientSocket implementation. 653 // SSLClientSocket implementation.
654 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 654 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
655 int ExportKeyingMaterial(const base::StringPiece& label, 655 int ExportKeyingMaterial(const base::StringPiece& label,
656 bool has_context, 656 bool has_context,
657 const base::StringPiece& context, 657 const base::StringPiece& context,
658 unsigned char* out, 658 unsigned char* out,
659 unsigned int outlen) override; 659 unsigned int outlen) override;
660 int GetTLSUniqueChannelBinding(std::string* out) override; 660 int GetTLSUniqueChannelBinding(std::string* out) override;
661 NextProtoStatus GetNextProto(std::string* proto) const override; 661 NextProtoStatus GetNextProto(std::string* proto) const override;
662 ChannelIDService* GetChannelIDService() const override; 662 ChannelIDService* GetChannelIDService() const override;
663 std::string GetProvidedTokenBinding() override;
663 SSLFailureState GetSSLFailureState() const override; 664 SSLFailureState GetSSLFailureState() const override;
664 665
665 protected: 666 protected:
666 ~MockClientSocket() override; 667 ~MockClientSocket() override;
667 void RunCallbackAsync(const CompletionCallback& callback, int result); 668 void RunCallbackAsync(const CompletionCallback& callback, int result);
668 void RunCallback(const CompletionCallback& callback, int result); 669 void RunCallback(const CompletionCallback& callback, int result);
669 670
670 // True if Connect completed successfully and Disconnect hasn't been called. 671 // True if Connect completed successfully and Disconnect hasn't been called.
671 bool connected_; 672 bool connected_;
672 673
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 1246
1246 // Helper function to get the total data size of the MockReads in |reads|. 1247 // Helper function to get the total data size of the MockReads in |reads|.
1247 int64_t CountReadBytes(const MockRead reads[], size_t reads_size); 1248 int64_t CountReadBytes(const MockRead reads[], size_t reads_size);
1248 1249
1249 // Helper function to get the total data size of the MockWrites in |writes|. 1250 // Helper function to get the total data size of the MockWrites in |writes|.
1250 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size); 1251 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size);
1251 1252
1252 } // namespace net 1253 } // namespace net
1253 1254
1254 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1255 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698