| 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> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 13343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13354 | 13354 |
| 13355 bool IsConnectionReused() const override { | 13355 bool IsConnectionReused() const override { |
| 13356 ADD_FAILURE(); | 13356 ADD_FAILURE(); |
| 13357 return false; | 13357 return false; |
| 13358 } | 13358 } |
| 13359 | 13359 |
| 13360 void SetConnectionReused() override { ADD_FAILURE(); } | 13360 void SetConnectionReused() override { ADD_FAILURE(); } |
| 13361 | 13361 |
| 13362 bool CanReuseConnection() const override { return false; } | 13362 bool CanReuseConnection() const override { return false; } |
| 13363 | 13363 |
| 13364 int64 GetTotalReceivedBytes() const override { | 13364 int64_t GetTotalReceivedBytes() const override { |
| 13365 ADD_FAILURE(); | 13365 ADD_FAILURE(); |
| 13366 return 0; | 13366 return 0; |
| 13367 } | 13367 } |
| 13368 | 13368 |
| 13369 int64_t GetTotalSentBytes() const override { | 13369 int64_t GetTotalSentBytes() const override { |
| 13370 ADD_FAILURE(); | 13370 ADD_FAILURE(); |
| 13371 return 0; | 13371 return 0; |
| 13372 } | 13372 } |
| 13373 | 13373 |
| 13374 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { | 13374 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13570 } | 13570 } |
| 13571 | 13571 |
| 13572 bool IsConnectionReused() const override { | 13572 bool IsConnectionReused() const override { |
| 13573 NOTREACHED(); | 13573 NOTREACHED(); |
| 13574 return false; | 13574 return false; |
| 13575 } | 13575 } |
| 13576 void SetConnectionReused() override { NOTREACHED(); } | 13576 void SetConnectionReused() override { NOTREACHED(); } |
| 13577 | 13577 |
| 13578 bool CanReuseConnection() const override { return false; } | 13578 bool CanReuseConnection() const override { return false; } |
| 13579 | 13579 |
| 13580 int64 GetTotalReceivedBytes() const override { | 13580 int64_t GetTotalReceivedBytes() const override { |
| 13581 NOTREACHED(); | 13581 NOTREACHED(); |
| 13582 return 0; | 13582 return 0; |
| 13583 } | 13583 } |
| 13584 | 13584 |
| 13585 int64_t GetTotalSentBytes() const override { | 13585 int64_t GetTotalSentBytes() const override { |
| 13586 NOTREACHED(); | 13586 NOTREACHED(); |
| 13587 return 0; | 13587 return 0; |
| 13588 } | 13588 } |
| 13589 | 13589 |
| 13590 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { | 13590 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override { |
| (...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14720 std::string response_data; | 14720 std::string response_data; |
| 14721 EXPECT_EQ(OK, ReadTransaction(trans.get(), &response_data)); | 14721 EXPECT_EQ(OK, ReadTransaction(trans.get(), &response_data)); |
| 14722 | 14722 |
| 14723 EXPECT_EQ(CountWriteBytes(data_writes, arraysize(data_writes)), | 14723 EXPECT_EQ(CountWriteBytes(data_writes, arraysize(data_writes)), |
| 14724 trans->GetTotalSentBytes()); | 14724 trans->GetTotalSentBytes()); |
| 14725 EXPECT_EQ(CountReadBytes(data_reads, arraysize(data_reads)), | 14725 EXPECT_EQ(CountReadBytes(data_reads, arraysize(data_reads)), |
| 14726 trans->GetTotalReceivedBytes()); | 14726 trans->GetTotalReceivedBytes()); |
| 14727 } | 14727 } |
| 14728 | 14728 |
| 14729 } // namespace net | 14729 } // namespace net |
| OLD | NEW |