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

Side by Side Diff: net/http/http_network_transaction_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: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <math.h> // ceil 7 #include <math.h> // ceil
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 13511 matching lines...) Expand 10 before | Expand all | Expand 10 after
13522 } 13522 }
13523 13523
13524 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); } 13524 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); }
13525 13525
13526 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { 13526 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {
13527 ADD_FAILURE(); 13527 ADD_FAILURE();
13528 } 13528 }
13529 13529
13530 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } 13530 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; }
13531 13531
13532 int GetTokenBindingMessageHeader(std::string* out) override {
13533 ADD_FAILURE();
13534 return ERR_NOT_IMPLEMENTED;
13535 }
13536
13532 void Drain(HttpNetworkSession* session) override { ADD_FAILURE(); } 13537 void Drain(HttpNetworkSession* session) override { ADD_FAILURE(); }
13533 13538
13534 void SetPriority(RequestPriority priority) override { priority_ = priority; } 13539 void SetPriority(RequestPriority priority) override { priority_ = priority; }
13535 13540
13536 UploadProgress GetUploadProgress() const override { return UploadProgress(); } 13541 UploadProgress GetUploadProgress() const override { return UploadProgress(); }
13537 13542
13538 HttpStream* RenewStreamForAuth() override { return NULL; } 13543 HttpStream* RenewStreamForAuth() override { return NULL; }
13539 13544
13540 private: 13545 private:
13541 RequestPriority priority_; 13546 RequestPriority priority_;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
13740 } 13745 }
13741 13746
13742 void GetSSLInfo(SSLInfo* ssl_info) override {} 13747 void GetSSLInfo(SSLInfo* ssl_info) override {}
13743 13748
13744 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { 13749 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {
13745 NOTREACHED(); 13750 NOTREACHED();
13746 } 13751 }
13747 13752
13748 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } 13753 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; }
13749 13754
13755 int GetTokenBindingMessageHeader(std::string* out) override {
13756 return ERR_NOT_IMPLEMENTED;
13757 }
13758
13750 void Drain(HttpNetworkSession* session) override { NOTREACHED(); } 13759 void Drain(HttpNetworkSession* session) override { NOTREACHED(); }
13751 13760
13752 void SetPriority(RequestPriority priority) override { NOTREACHED(); } 13761 void SetPriority(RequestPriority priority) override { NOTREACHED(); }
13753 13762
13754 UploadProgress GetUploadProgress() const override { 13763 UploadProgress GetUploadProgress() const override {
13755 NOTREACHED(); 13764 NOTREACHED();
13756 return UploadProgress(); 13765 return UploadProgress();
13757 } 13766 }
13758 13767
13759 HttpStream* RenewStreamForAuth() override { 13768 HttpStream* RenewStreamForAuth() override {
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
14869 std::string response_data; 14878 std::string response_data;
14870 EXPECT_EQ(OK, ReadTransaction(trans.get(), &response_data)); 14879 EXPECT_EQ(OK, ReadTransaction(trans.get(), &response_data));
14871 14880
14872 EXPECT_EQ(CountWriteBytes(data_writes, arraysize(data_writes)), 14881 EXPECT_EQ(CountWriteBytes(data_writes, arraysize(data_writes)),
14873 trans->GetTotalSentBytes()); 14882 trans->GetTotalSentBytes());
14874 EXPECT_EQ(CountReadBytes(data_reads, arraysize(data_reads)), 14883 EXPECT_EQ(CountReadBytes(data_reads, arraysize(data_reads)),
14875 trans->GetTotalReceivedBytes()); 14884 trans->GetTotalReceivedBytes());
14876 } 14885 }
14877 14886
14878 } // namespace net 14887 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698