summaryrefslogtreecommitdiffstats
path: root/net/http/http_stream_factory_impl_unittest.cc
diff options
context:
space:
mode:
authornharper <nharper@chromium.org>2016-01-25 15:54:14 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-25 23:55:18 +0000
commitb7441ef2effe86324798710a82d8a006f5eb1395 (patch)
treebbc0a66b978a7d10640509cc3eb91dc3e8662303 /net/http/http_stream_factory_impl_unittest.cc
parent65295cfea49ef91053171841767163db073df1da (diff)
downloadchromium_src-b7441ef2effe86324798710a82d8a006f5eb1395.zip
chromium_src-b7441ef2effe86324798710a82d8a006f5eb1395.tar.gz
chromium_src-b7441ef2effe86324798710a82d8a006f5eb1395.tar.bz2
Set Token-Binding HTTP header
Adds a new method to SSLClientSocket to get the Token Binding from an SSL connection where Token Binding was negotiated, and uses that to add the Set-Token-Binding HTTP header (only when Token Binding was negotiated). BUG=467312 Review URL: https://codereview.chromium.org/1378613004 Cr-Commit-Position: refs/heads/master@{#371347}
Diffstat (limited to 'net/http/http_stream_factory_impl_unittest.cc')
-rw-r--r--net/http/http_stream_factory_impl_unittest.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_stream_factory_impl_unittest.cc b/net/http/http_stream_factory_impl_unittest.cc
index 32c20e3..0d89cf1 100644
--- a/net/http/http_stream_factory_impl_unittest.cc
+++ b/net/http/http_stream_factory_impl_unittest.cc
@@ -103,6 +103,11 @@ class MockWebSocketHandshakeStream : public WebSocketHandshakeStreamBase {
void GetSSLInfo(SSLInfo* ssl_info) override {}
void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {}
bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; }
+ Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
+ std::vector<uint8_t>* out) override {
+ ADD_FAILURE();
+ return ERR_NOT_IMPLEMENTED;
+ }
void Drain(HttpNetworkSession* session) override {}
void PopulateNetErrorDetails(NetErrorDetails* details) override { return; }
void SetPriority(RequestPriority priority) override {}