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

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

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: Remove sequence numbers from mock reads Created 4 years, 11 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void SetConnectionReused() override {} 96 void SetConnectionReused() override {}
97 bool CanReuseConnection() const override { return false; } 97 bool CanReuseConnection() const override { return false; }
98 int64_t GetTotalReceivedBytes() const override { return 0; } 98 int64_t GetTotalReceivedBytes() const override { return 0; }
99 int64_t GetTotalSentBytes() const override { return 0; } 99 int64_t GetTotalSentBytes() const override { return 0; }
100 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { 100 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override {
101 return false; 101 return false;
102 } 102 }
103 void GetSSLInfo(SSLInfo* ssl_info) override {} 103 void GetSSLInfo(SSLInfo* ssl_info) override {}
104 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} 104 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {}
105 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } 105 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; }
106 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
107 std::vector<uint8_t>* out) override {
108 ADD_FAILURE();
109 return ERR_NOT_IMPLEMENTED;
110 }
106 void Drain(HttpNetworkSession* session) override {} 111 void Drain(HttpNetworkSession* session) override {}
107 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } 112 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; }
108 void SetPriority(RequestPriority priority) override {} 113 void SetPriority(RequestPriority priority) override {}
109 UploadProgress GetUploadProgress() const override { return UploadProgress(); } 114 UploadProgress GetUploadProgress() const override { return UploadProgress(); }
110 HttpStream* RenewStreamForAuth() override { return nullptr; } 115 HttpStream* RenewStreamForAuth() override { return nullptr; }
111 116
112 scoped_ptr<WebSocketStream> Upgrade() override { 117 scoped_ptr<WebSocketStream> Upgrade() override {
113 return scoped_ptr<WebSocketStream>(); 118 return scoped_ptr<WebSocketStream>();
114 } 119 }
115 120
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); 1687 EXPECT_TRUE(waiter.used_proxy_info().is_direct());
1683 1688
1684 // Make sure there is no orphaned job. it is already canceled. 1689 // Make sure there is no orphaned job. it is already canceled.
1685 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( 1690 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>(
1686 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); 1691 session->http_stream_factory_for_websocket())->num_orphaned_jobs());
1687 } 1692 }
1688 1693
1689 } // namespace 1694 } // namespace
1690 1695
1691 } // namespace net 1696 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698