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

Side by Side Diff: net/http/http_stream_factory_impl_unittest.cc

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Fix compilation error in unit_tests Created 4 years, 3 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 #include "net/http/http_stream_factory_impl.h" 5 #include "net/http/http_stream_factory_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void SetConnectionReused() override {} 112 void SetConnectionReused() override {}
113 bool CanReuseConnection() const override { return false; } 113 bool CanReuseConnection() const override { return false; }
114 int64_t GetTotalReceivedBytes() const override { return 0; } 114 int64_t GetTotalReceivedBytes() const override { return 0; }
115 int64_t GetTotalSentBytes() const override { return 0; } 115 int64_t GetTotalSentBytes() const override { return 0; }
116 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { 116 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override {
117 return false; 117 return false;
118 } 118 }
119 void GetSSLInfo(SSLInfo* ssl_info) override {} 119 void GetSSLInfo(SSLInfo* ssl_info) override {}
120 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} 120 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {}
121 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } 121 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; }
122 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, 122 Error GetTokenBindingSignature(crypto::ECPrivateKey* key,
123 std::vector<uint8_t>* out) override { 123 TokenBindingType tb_type,
124 std::vector<uint8_t>* out) override {
124 ADD_FAILURE(); 125 ADD_FAILURE();
125 return ERR_NOT_IMPLEMENTED; 126 return ERR_NOT_IMPLEMENTED;
126 } 127 }
127 void Drain(HttpNetworkSession* session) override {} 128 void Drain(HttpNetworkSession* session) override {}
128 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } 129 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; }
129 void SetPriority(RequestPriority priority) override {} 130 void SetPriority(RequestPriority priority) override {}
130 UploadProgress GetUploadProgress() const override { return UploadProgress(); } 131 UploadProgress GetUploadProgress() const override { return UploadProgress(); }
131 HttpStream* RenewStreamForAuth() override { return nullptr; } 132 HttpStream* RenewStreamForAuth() override { return nullptr; }
132 133
133 std::unique_ptr<WebSocketStream> Upgrade() override { 134 std::unique_ptr<WebSocketStream> Upgrade() override {
(...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 session->GetTransportSocketPool( 2252 session->GetTransportSocketPool(
2252 HttpNetworkSession::WEBSOCKET_SOCKET_POOL))); 2253 HttpNetworkSession::WEBSOCKET_SOCKET_POOL)));
2253 EXPECT_EQ(1, GetSocketPoolGroupCount( 2254 EXPECT_EQ(1, GetSocketPoolGroupCount(
2254 session->GetSSLSocketPool(HttpNetworkSession::WEBSOCKET_SOCKET_POOL))); 2255 session->GetSSLSocketPool(HttpNetworkSession::WEBSOCKET_SOCKET_POOL)));
2255 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); 2256 EXPECT_TRUE(waiter.used_proxy_info().is_direct());
2256 } 2257 }
2257 2258
2258 } // namespace 2259 } // namespace
2259 2260
2260 } // namespace net 2261 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698