| 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/spdy/spdy_session_pool.h" | 5 #include "net/spdy/chromium/spdy_session_pool.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 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/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/test/histogram_tester.h" | 14 #include "base/test/histogram_tester.h" |
| 15 #include "base/trace_event/memory_allocator_dump.h" | 15 #include "base/trace_event/memory_allocator_dump.h" |
| 16 #include "base/trace_event/process_memory_dump.h" | 16 #include "base/trace_event/process_memory_dump.h" |
| 17 #include "base/trace_event/trace_event_argument.h" | 17 #include "base/trace_event/trace_event_argument.h" |
| 18 #include "net/dns/host_cache.h" | 18 #include "net/dns/host_cache.h" |
| 19 #include "net/http/http_network_session.h" | 19 #include "net/http/http_network_session.h" |
| 20 #include "net/log/net_log_with_source.h" | 20 #include "net/log/net_log_with_source.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/socket/client_socket_handle.h" | 23 #include "net/socket/client_socket_handle.h" |
| 24 #include "net/socket/transport_client_socket_pool.h" | 24 #include "net/socket/transport_client_socket_pool.h" |
| 25 #include "net/spdy/spdy_session.h" | 25 #include "net/spdy/chromium/spdy_session.h" |
| 26 #include "net/spdy/spdy_stream_test_util.h" | 26 #include "net/spdy/chromium/spdy_stream_test_util.h" |
| 27 #include "net/spdy/spdy_test_util_common.h" | 27 #include "net/spdy/chromium/spdy_test_util_common.h" |
| 28 #include "net/test/cert_test_util.h" | 28 #include "net/test/cert_test_util.h" |
| 29 #include "net/test/gtest_util.h" | 29 #include "net/test/gtest_util.h" |
| 30 #include "net/test/test_data_directory.h" | 30 #include "net/test/test_data_directory.h" |
| 31 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 33 | 33 |
| 34 using net::test::IsError; | 34 using net::test::IsError; |
| 35 using net::test::IsOk; | 35 using net::test::IsOk; |
| 36 | 36 |
| 37 namespace net { | 37 namespace net { |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 active_session_count_attr->GetString("value", &active_session_count)); | 900 active_session_count_attr->GetString("value", &active_session_count)); |
| 901 // No created stream so the session should be idle. | 901 // No created stream so the session should be idle. |
| 902 ASSERT_EQ("0", active_session_count); | 902 ASSERT_EQ("0", active_session_count); |
| 903 did_dump = true; | 903 did_dump = true; |
| 904 } | 904 } |
| 905 EXPECT_TRUE(did_dump); | 905 EXPECT_TRUE(did_dump); |
| 906 spdy_session_pool_->CloseCurrentSessions(ERR_ABORTED); | 906 spdy_session_pool_->CloseCurrentSessions(ERR_ABORTED); |
| 907 } | 907 } |
| 908 | 908 |
| 909 } // namespace net | 909 } // namespace net |
| OLD | NEW |