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/tools/quic/quic_reliable_server_stream.h" | 5 #include "net/tools/quic/quic_reliable_server_stream.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "net/quic/quic_spdy_compressor.h" | 8 #include "net/quic/quic_spdy_compressor.h" |
9 #include "net/quic/quic_utils.h" | 9 #include "net/quic/quic_utils.h" |
10 #include "net/quic/test_tools/quic_test_utils.h" | 10 #include "net/quic/test_tools/quic_test_utils.h" |
11 #include "net/tools/flip_server/epoll_server.h" | 11 #include "net/tools/epoll_server/epoll_server.h" |
12 #include "net/tools/quic/quic_in_memory_cache.h" | 12 #include "net/tools/quic/quic_in_memory_cache.h" |
13 #include "net/tools/quic/quic_spdy_server_stream.h" | 13 #include "net/tools/quic/quic_spdy_server_stream.h" |
14 #include "net/tools/quic/spdy_utils.h" | 14 #include "net/tools/quic/spdy_utils.h" |
15 #include "net/tools/quic/test_tools/quic_test_utils.h" | 15 #include "net/tools/quic/test_tools/quic_test_utils.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 using base::StringPiece; | 19 using base::StringPiece; |
20 using net::tools::test::MockConnection; | 20 using net::tools::test::MockConnection; |
21 using net::test::MockSession; | 21 using net::test::MockSession; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 stream_->SendErrorResponse(); | 220 stream_->SendErrorResponse(); |
221 EXPECT_TRUE(stream_->read_side_closed()); | 221 EXPECT_TRUE(stream_->read_side_closed()); |
222 EXPECT_TRUE(stream_->write_side_closed()); | 222 EXPECT_TRUE(stream_->write_side_closed()); |
223 } | 223 } |
224 | 224 |
225 } // namespace | 225 } // namespace |
226 } // namespace test | 226 } // namespace test |
227 } // namespace tools | 227 } // namespace tools |
228 } // namespace net | 228 } // namespace net |
OLD | NEW |