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

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

Issue 2805043004: Add a GetAlternativeService method to HttpStream to return any (Closed)
Patch Set: Created 3 years, 8 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 14951 matching lines...) Expand 10 before | Expand all | Expand 10 after
14962 int64_t GetTotalSentBytes() const override { 14962 int64_t GetTotalSentBytes() const override {
14963 ADD_FAILURE(); 14963 ADD_FAILURE();
14964 return 0; 14964 return 0;
14965 } 14965 }
14966 14966
14967 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { 14967 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override {
14968 ADD_FAILURE(); 14968 ADD_FAILURE();
14969 return false; 14969 return false;
14970 } 14970 }
14971 14971
14972 bool GetAlternativeService(
14973 AlternativeService* alternative_service) const override {
14974 ADD_FAILURE();
14975 return false;
14976 }
14977
14972 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); } 14978 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); }
14973 14979
14974 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { 14980 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {
14975 ADD_FAILURE(); 14981 ADD_FAILURE();
14976 } 14982 }
14977 14983
14978 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } 14984 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; }
14979 14985
14980 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, 14986 Error GetTokenBindingSignature(crypto::ECPrivateKey* key,
14981 TokenBindingType tb_type, 14987 TokenBindingType tb_type,
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
15208 int64_t GetTotalSentBytes() const override { 15214 int64_t GetTotalSentBytes() const override {
15209 NOTREACHED(); 15215 NOTREACHED();
15210 return 0; 15216 return 0;
15211 } 15217 }
15212 15218
15213 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { 15219 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override {
15214 NOTREACHED(); 15220 NOTREACHED();
15215 return false; 15221 return false;
15216 } 15222 }
15217 15223
15224 bool GetAlternativeService(
15225 AlternativeService* alternative_service) const override {
15226 ADD_FAILURE();
15227 return false;
15228 }
15229
15218 void GetSSLInfo(SSLInfo* ssl_info) override {} 15230 void GetSSLInfo(SSLInfo* ssl_info) override {}
15219 15231
15220 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { 15232 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {
15221 NOTREACHED(); 15233 NOTREACHED();
15222 } 15234 }
15223 15235
15224 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } 15236 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; }
15225 15237
15226 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, 15238 Error GetTokenBindingSignature(crypto::ECPrivateKey* key,
15227 TokenBindingType tb_type, 15239 TokenBindingType tb_type,
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
16712 TEST_F(HttpNetworkTransactionTest, MatchContentEncoding2) { 16724 TEST_F(HttpNetworkTransactionTest, MatchContentEncoding2) {
16713 CheckContentEncodingMatching(&session_deps_, "identity;q=1, *;q=0", "", true); 16725 CheckContentEncodingMatching(&session_deps_, "identity;q=1, *;q=0", "", true);
16714 } 16726 }
16715 16727
16716 TEST_F(HttpNetworkTransactionTest, MatchContentEncoding3) { 16728 TEST_F(HttpNetworkTransactionTest, MatchContentEncoding3) {
16717 CheckContentEncodingMatching(&session_deps_, "identity;q=1, *;q=0", "gzip", 16729 CheckContentEncodingMatching(&session_deps_, "identity;q=1, *;q=0", "gzip",
16718 false); 16730 false);
16719 } 16731 }
16720 16732
16721 } // namespace net 16733 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698