| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "net/quic/test_tools/quic_test_utils.h" | 22 #include "net/quic/test_tools/quic_test_utils.h" |
| 23 #include "net/test/gtest_util.h" | 23 #include "net/test/gtest_util.h" |
| 24 #include "net/tools/epoll_server/epoll_server.h" | 24 #include "net/tools/epoll_server/epoll_server.h" |
| 25 #include "net/tools/quic/quic_http_response_cache.h" | 25 #include "net/tools/quic/quic_http_response_cache.h" |
| 26 #include "net/tools/quic/quic_simple_server_session.h" | 26 #include "net/tools/quic/quic_simple_server_session.h" |
| 27 #include "testing/gmock/include/gmock/gmock.h" | 27 #include "testing/gmock/include/gmock/gmock.h" |
| 28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
| 29 #include "url/gurl.h" | 29 #include "url/gurl.h" |
| 30 | 30 |
| 31 using base::StringPiece; | 31 using base::StringPiece; |
| 32 using net::test::MockQuicConnection; | |
| 33 using net::test::MockQuicConnectionHelper; | |
| 34 using net::test::MockQuicSpdySession; | |
| 35 using net::test::QuicStreamPeer; | |
| 36 using net::test::SupportedVersions; | |
| 37 using net::test::kInitialSessionFlowControlWindowForTest; | |
| 38 using net::test::kInitialStreamFlowControlWindowForTest; | |
| 39 using std::string; | 32 using std::string; |
| 40 using testing::_; | 33 using testing::_; |
| 41 using testing::AnyNumber; | 34 using testing::AnyNumber; |
| 42 using testing::Invoke; | 35 using testing::Invoke; |
| 43 using testing::InvokeArgument; | 36 using testing::InvokeArgument; |
| 44 using testing::InSequence; | 37 using testing::InSequence; |
| 45 using testing::Return; | 38 using testing::Return; |
| 46 using testing::StrictMock; | 39 using testing::StrictMock; |
| 47 using testing::WithArgs; | 40 using testing::WithArgs; |
| 48 | 41 |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 }; | 637 }; |
| 645 StringPiece data(arr, arraysize(arr)); | 638 StringPiece data(arr, arraysize(arr)); |
| 646 QuicStreamFrame frame(stream_->id(), true, 0, data); | 639 QuicStreamFrame frame(stream_->id(), true, 0, data); |
| 647 // Verify that we don't crash when we get a invalid headers in stream frame. | 640 // Verify that we don't crash when we get a invalid headers in stream frame. |
| 648 stream_->OnStreamFrame(frame); | 641 stream_->OnStreamFrame(frame); |
| 649 } | 642 } |
| 650 | 643 |
| 651 } // namespace | 644 } // namespace |
| 652 } // namespace test | 645 } // namespace test |
| 653 } // namespace net | 646 } // namespace net |
| OLD | NEW |