OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/bidirectional_stream_spdy_impl.h" | 5 #include "net/spdy/chromium/bidirectional_stream_spdy_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "base/timer/mock_timer.h" | 14 #include "base/timer/mock_timer.h" |
15 #include "net/base/load_timing_info.h" | 15 #include "net/base/load_timing_info.h" |
16 #include "net/base/load_timing_info_test_util.h" | 16 #include "net/base/load_timing_info_test_util.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/http/http_request_info.h" | 18 #include "net/http/http_request_info.h" |
19 #include "net/http/http_response_headers.h" | 19 #include "net/http/http_response_headers.h" |
20 #include "net/http/http_response_info.h" | 20 #include "net/http/http_response_info.h" |
21 #include "net/log/test_net_log.h" | 21 #include "net/log/test_net_log.h" |
22 #include "net/socket/socket_test_util.h" | 22 #include "net/socket/socket_test_util.h" |
| 23 #include "net/spdy/chromium/spdy_session.h" |
| 24 #include "net/spdy/chromium/spdy_test_util_common.h" |
23 #include "net/spdy/platform/api/spdy_string.h" | 25 #include "net/spdy/platform/api/spdy_string.h" |
24 #include "net/spdy/spdy_session.h" | |
25 #include "net/spdy/spdy_test_util_common.h" | |
26 #include "net/test/cert_test_util.h" | 26 #include "net/test/cert_test_util.h" |
27 #include "net/test/gtest_util.h" | 27 #include "net/test/gtest_util.h" |
28 #include "net/test/test_data_directory.h" | 28 #include "net/test/test_data_directory.h" |
29 #include "testing/gmock/include/gmock/gmock.h" | 29 #include "testing/gmock/include/gmock/gmock.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 using net::test::IsError; | 32 using net::test::IsError; |
33 using net::test::IsOk; | 33 using net::test::IsOk; |
34 | 34 |
35 namespace net { | 35 namespace net { |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 } else { | 511 } else { |
512 delegate->SendData(write_buffer.get(), write_buffer->size(), true); | 512 delegate->SendData(write_buffer.get(), write_buffer->size(), true); |
513 } | 513 } |
514 base::RunLoop().RunUntilIdle(); | 514 base::RunLoop().RunUntilIdle(); |
515 EXPECT_THAT(delegate->error(), IsError(ERR_UNEXPECTED)); | 515 EXPECT_THAT(delegate->error(), IsError(ERR_UNEXPECTED)); |
516 EXPECT_TRUE(delegate->on_failed_called()); | 516 EXPECT_TRUE(delegate->on_failed_called()); |
517 EXPECT_EQ(is_test_sendv ? 2 : 4, delegate->on_data_sent_count()); | 517 EXPECT_EQ(is_test_sendv ? 2 : 4, delegate->on_data_sent_count()); |
518 } | 518 } |
519 | 519 |
520 } // namespace net | 520 } // namespace net |
OLD | NEW |