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

Side by Side Diff: net/url_request/url_request_http_job_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: Add UMA logging of Token Binding support and NetLog event for Token Binding key lookup Created 5 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/url_request/url_request_http_job.h" 5 #include "net/url_request/url_request_http_job.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <cstddef> 9 #include <cstddef>
10 10
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { 738 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override {
739 return false; 739 return false;
740 } 740 }
741 741
742 void GetSSLInfo(SSLInfo* ssl_info) override {} 742 void GetSSLInfo(SSLInfo* ssl_info) override {}
743 743
744 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} 744 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {}
745 745
746 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } 746 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; }
747 747
748 int GetProvidedTokenBindingWithKey(
749 const scoped_ptr<crypto::ECPrivateKey>& key,
750 std::string* header_out) override {
751 ADD_FAILURE();
752 return ERR_NOT_IMPLEMENTED;
753 }
754
748 void Drain(HttpNetworkSession* session) override {} 755 void Drain(HttpNetworkSession* session) override {}
749 756
750 void SetPriority(RequestPriority priority) override {} 757 void SetPriority(RequestPriority priority) override {}
751 758
752 UploadProgress GetUploadProgress() const override { 759 UploadProgress GetUploadProgress() const override {
753 return UploadProgress(); 760 return UploadProgress();
754 } 761 }
755 762
756 HttpStream* RenewStreamForAuth() override { return nullptr; } 763 HttpStream* RenewStreamForAuth() override { return nullptr; }
757 764
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 req_->SetLoadFlags(LOAD_DISABLE_CACHE); 796 req_->SetLoadFlags(LOAD_DISABLE_CACHE);
790 job->Start(); 797 job->Start();
791 base::RunLoop().RunUntilIdle(); 798 base::RunLoop().RunUntilIdle();
792 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_->status().status()); 799 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_->status().status());
793 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called()); 800 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called());
794 } 801 }
795 802
796 } // namespace 803 } // namespace
797 804
798 } // namespace net 805 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698