| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/tools/quic/quic_simple_server_stream.h" | 5 #include "net/tools/quic/quic_simple_server_stream.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "net/quic/core/quic_connection.h" | 14 #include "net/quic/core/quic_connection.h" |
| 15 #include "net/quic/core/quic_flags.h" | 15 #include "net/quic/core/quic_flags.h" |
| 16 #include "net/quic/core/quic_protocol.h" | 16 #include "net/quic/core/quic_protocol.h" |
| 17 #include "net/quic/core/quic_utils.h" | 17 #include "net/quic/core/quic_utils.h" |
| 18 #include "net/quic/core/spdy_utils.h" | 18 #include "net/quic/core/spdy_utils.h" |
| 19 #include "net/quic/test_tools/crypto_test_utils.h" | 19 #include "net/quic/test_tools/crypto_test_utils.h" |
| 20 #include "net/quic/test_tools/quic_test_utils.h" | 20 #include "net/quic/test_tools/quic_test_utils.h" |
| 21 #include "net/quic/test_tools/reliable_quic_stream_peer.h" | 21 #include "net/quic/test_tools/reliable_quic_stream_peer.h" |
| 22 #include "net/test/gtest_util.h" | 22 #include "net/test/gtest_util.h" |
| 23 #include "net/tools/epoll_server/epoll_server.h" | 23 #include "net/tools/epoll_server/epoll_server.h" |
| 24 #include "net/tools/quic/quic_in_memory_cache.h" | 24 #include "net/tools/quic/quic_in_memory_cache.h" |
| 25 #include "net/tools/quic/quic_simple_server_session.h" | 25 #include "net/tools/quic/quic_simple_server_session.h" |
| 26 #include "net/tools/quic/spdy_balsa_utils.h" | |
| 27 #include "net/tools/quic/test_tools/quic_in_memory_cache_peer.h" | 26 #include "net/tools/quic/test_tools/quic_in_memory_cache_peer.h" |
| 28 #include "testing/gmock/include/gmock/gmock.h" | 27 #include "testing/gmock/include/gmock/gmock.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
| 30 #include "url/gurl.h" | 29 #include "url/gurl.h" |
| 31 | 30 |
| 32 using base::StringPiece; | 31 using base::StringPiece; |
| 33 using net::test::MockQuicConnection; | 32 using net::test::MockQuicConnection; |
| 34 using net::test::MockQuicConnectionHelper; | 33 using net::test::MockQuicConnectionHelper; |
| 35 using net::test::MockQuicSpdySession; | 34 using net::test::MockQuicSpdySession; |
| 36 using net::test::ReliableQuicStreamPeer; | 35 using net::test::ReliableQuicStreamPeer; |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 }; | 640 }; |
| 642 StringPiece data(arr, arraysize(arr)); | 641 StringPiece data(arr, arraysize(arr)); |
| 643 QuicStreamFrame frame(stream_->id(), true, 0, data); | 642 QuicStreamFrame frame(stream_->id(), true, 0, data); |
| 644 // Verify that we don't crash when we get a invalid headers in stream frame. | 643 // Verify that we don't crash when we get a invalid headers in stream frame. |
| 645 stream_->OnStreamFrame(frame); | 644 stream_->OnStreamFrame(frame); |
| 646 } | 645 } |
| 647 | 646 |
| 648 } // namespace | 647 } // namespace |
| 649 } // namespace test | 648 } // namespace test |
| 650 } // namespace net | 649 } // namespace net |
| OLD | NEW |