| OLD | NEW |
| 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> |
| 10 |
| 9 #include <string> | 11 #include <string> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 14 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 15 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
| 16 #include "base/json/json_writer.h" | 18 #include "base/json/json_writer.h" |
| 17 #include "base/logging.h" | 19 #include "base/logging.h" |
| 18 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| (...skipping 13337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13356 | 13358 |
| 13357 void SetConnectionReused() override { ADD_FAILURE(); } | 13359 void SetConnectionReused() override { ADD_FAILURE(); } |
| 13358 | 13360 |
| 13359 bool CanReuseConnection() const override { return false; } | 13361 bool CanReuseConnection() const override { return false; } |
| 13360 | 13362 |
| 13361 int64 GetTotalReceivedBytes() const override { | 13363 int64 GetTotalReceivedBytes() const override { |
| 13362 ADD_FAILURE(); | 13364 ADD_FAILURE(); |
| 13363 return 0; | 13365 return 0; |
| 13364 } | 13366 } |
| 13365 | 13367 |
| 13368 int64_t GetTotalSentBytes() const override { |
| 13369 ADD_FAILURE(); |
| 13370 return 0; |
| 13371 } |
| 13372 |
| 13366 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { | 13373 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { |
| 13367 ADD_FAILURE(); | 13374 ADD_FAILURE(); |
| 13368 return false; | 13375 return false; |
| 13369 } | 13376 } |
| 13370 | 13377 |
| 13371 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); } | 13378 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); } |
| 13372 | 13379 |
| 13373 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { | 13380 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { |
| 13374 ADD_FAILURE(); | 13381 ADD_FAILURE(); |
| 13375 } | 13382 } |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13567 } | 13574 } |
| 13568 void SetConnectionReused() override { NOTREACHED(); } | 13575 void SetConnectionReused() override { NOTREACHED(); } |
| 13569 | 13576 |
| 13570 bool CanReuseConnection() const override { return false; } | 13577 bool CanReuseConnection() const override { return false; } |
| 13571 | 13578 |
| 13572 int64 GetTotalReceivedBytes() const override { | 13579 int64 GetTotalReceivedBytes() const override { |
| 13573 NOTREACHED(); | 13580 NOTREACHED(); |
| 13574 return 0; | 13581 return 0; |
| 13575 } | 13582 } |
| 13576 | 13583 |
| 13584 int64_t GetTotalSentBytes() const override { |
| 13585 NOTREACHED(); |
| 13586 return 0; |
| 13587 } |
| 13588 |
| 13577 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { | 13589 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { |
| 13578 NOTREACHED(); | 13590 NOTREACHED(); |
| 13579 return false; | 13591 return false; |
| 13580 } | 13592 } |
| 13581 | 13593 |
| 13582 void GetSSLInfo(SSLInfo* ssl_info) override {} | 13594 void GetSSLInfo(SSLInfo* ssl_info) override {} |
| 13583 | 13595 |
| 13584 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { | 13596 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { |
| 13585 NOTREACHED(); | 13597 NOTREACHED(); |
| 13586 } | 13598 } |
| (...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14566 ASSERT_TRUE(response); | 14578 ASSERT_TRUE(response); |
| 14567 ASSERT_TRUE(response->headers.get()); | 14579 ASSERT_TRUE(response->headers.get()); |
| 14568 | 14580 |
| 14569 EXPECT_EQ(101, response->headers->response_code()); | 14581 EXPECT_EQ(101, response->headers->response_code()); |
| 14570 | 14582 |
| 14571 trans.reset(); | 14583 trans.reset(); |
| 14572 session->CloseAllConnections(); | 14584 session->CloseAllConnections(); |
| 14573 } | 14585 } |
| 14574 | 14586 |
| 14575 } // namespace net | 14587 } // namespace net |
| OLD | NEW |