| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic/quic_http_stream.h" | 5 #include "net/quic/quic_http_stream.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "net/base/chunked_upload_data_stream.h" | 15 #include "net/base/chunked_upload_data_stream.h" |
| 16 #include "net/base/elements_upload_data_stream.h" | 16 #include "net/base/elements_upload_data_stream.h" |
| 17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 18 #include "net/base/test_completion_callback.h" | 18 #include "net/base/test_completion_callback.h" |
| 19 #include "net/base/test_data_directory.h" | 19 #include "net/base/test_data_directory.h" |
| 20 #include "net/base/upload_bytes_element_reader.h" | 20 #include "net/base/upload_bytes_element_reader.h" |
| 21 #include "net/http/http_response_headers.h" | 21 #include "net/http/http_response_headers.h" |
| 22 #include "net/http/transport_security_state.h" | 22 #include "net/http/transport_security_state.h" |
| 23 #include "net/log/test_net_log.h" | 23 #include "net/log/test_net_log.h" |
| 24 #include "net/log/test_net_log_util.h" | 24 #include "net/log/test_net_log_util.h" |
| (...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 // QuicHttpStream::GetTotalSent/ReceivedBytes currently only includes the | 1718 // QuicHttpStream::GetTotalSent/ReceivedBytes currently only includes the |
| 1719 // headers and payload. | 1719 // headers and payload. |
| 1720 EXPECT_EQ(static_cast<int64_t>(spdy_request_header_frame_length), | 1720 EXPECT_EQ(static_cast<int64_t>(spdy_request_header_frame_length), |
| 1721 promised_stream_->GetTotalSentBytes()); | 1721 promised_stream_->GetTotalSentBytes()); |
| 1722 EXPECT_EQ(static_cast<int64_t>(spdy_response_header_frame_length), | 1722 EXPECT_EQ(static_cast<int64_t>(spdy_response_header_frame_length), |
| 1723 promised_stream_->GetTotalReceivedBytes()); | 1723 promised_stream_->GetTotalReceivedBytes()); |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 } // namespace test | 1726 } // namespace test |
| 1727 } // namespace net | 1727 } // namespace net |
| OLD | NEW |