| 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/spdy/spdy_stream.h" | 5 #include "net/spdy/chromium/spdy_stream.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <cstddef> | 10 #include <cstddef> |
| 11 #include <limits> | 11 #include <limits> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 18 #include "net/base/completion_callback.h" | 18 #include "net/base/completion_callback.h" |
| 19 #include "net/base/request_priority.h" | 19 #include "net/base/request_priority.h" |
| 20 #include "net/log/net_log_event_type.h" | 20 #include "net/log/net_log_event_type.h" |
| 21 #include "net/log/test_net_log.h" | 21 #include "net/log/test_net_log.h" |
| 22 #include "net/log/test_net_log_entry.h" | 22 #include "net/log/test_net_log_entry.h" |
| 23 #include "net/log/test_net_log_util.h" | 23 #include "net/log/test_net_log_util.h" |
| 24 #include "net/socket/socket_test_util.h" | 24 #include "net/socket/socket_test_util.h" |
| 25 #include "net/spdy/buffered_spdy_framer.h" | 25 #include "net/spdy/chromium/buffered_spdy_framer.h" |
| 26 #include "net/spdy/chromium/spdy_http_utils.h" |
| 27 #include "net/spdy/chromium/spdy_session.h" |
| 28 #include "net/spdy/chromium/spdy_stream_test_util.h" |
| 29 #include "net/spdy/chromium/spdy_test_util_common.h" |
| 30 #include "net/spdy/core/spdy_protocol.h" |
| 26 #include "net/spdy/platform/api/spdy_string_piece.h" | 31 #include "net/spdy/platform/api/spdy_string_piece.h" |
| 27 #include "net/spdy/spdy_http_utils.h" | |
| 28 #include "net/spdy/spdy_protocol.h" | |
| 29 #include "net/spdy/spdy_session.h" | |
| 30 #include "net/spdy/spdy_stream_test_util.h" | |
| 31 #include "net/spdy/spdy_test_util_common.h" | |
| 32 #include "net/test/cert_test_util.h" | 32 #include "net/test/cert_test_util.h" |
| 33 #include "net/test/gtest_util.h" | 33 #include "net/test/gtest_util.h" |
| 34 #include "net/test/test_data_directory.h" | 34 #include "net/test/test_data_directory.h" |
| 35 #include "testing/gmock/include/gmock/gmock.h" | 35 #include "testing/gmock/include/gmock/gmock.h" |
| 36 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" |
| 37 | 37 |
| 38 // TODO(ukai): factor out common part with spdy_http_stream_unittest.cc | 38 // TODO(ukai): factor out common part with spdy_http_stream_unittest.cc |
| 39 // | 39 // |
| 40 namespace net { | 40 namespace net { |
| 41 | 41 |
| (...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 EXPECT_EQ(response_len, stream->raw_received_bytes()); | 1551 EXPECT_EQ(response_len, stream->raw_received_bytes()); |
| 1552 | 1552 |
| 1553 // FIN | 1553 // FIN |
| 1554 data.Resume(); | 1554 data.Resume(); |
| 1555 EXPECT_THAT(delegate.WaitForClose(), IsError(ERR_CONNECTION_CLOSED)); | 1555 EXPECT_THAT(delegate.WaitForClose(), IsError(ERR_CONNECTION_CLOSED)); |
| 1556 } | 1556 } |
| 1557 | 1557 |
| 1558 } // namespace test | 1558 } // namespace test |
| 1559 | 1559 |
| 1560 } // namespace net | 1560 } // namespace net |
| OLD | NEW |