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 <memory> | 5 #include <memory> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/deferred_sequenced_task_runner.h" | 9 #include "base/deferred_sequenced_task_runner.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" |
14 #include "net/base/request_priority.h" | 15 #include "net/base/request_priority.h" |
15 #include "net/cert/ct_policy_enforcer.h" | 16 #include "net/cert/ct_policy_enforcer.h" |
16 #include "net/cert/mock_cert_verifier.h" | 17 #include "net/cert/mock_cert_verifier.h" |
17 #include "net/cert/multi_log_ct_verifier.h" | 18 #include "net/cert/multi_log_ct_verifier.h" |
18 #include "net/dns/mock_host_resolver.h" | 19 #include "net/dns/mock_host_resolver.h" |
19 #include "net/http/http_auth_handler_mock.h" | 20 #include "net/http/http_auth_handler_mock.h" |
20 #include "net/http/http_network_session.h" | 21 #include "net/http/http_network_session.h" |
21 #include "net/http/http_network_transaction.h" | 22 #include "net/http/http_network_transaction.h" |
22 #include "net/http/http_request_info.h" | 23 #include "net/http/http_request_info.h" |
23 #include "net/http/http_server_properties_impl.h" | 24 #include "net/http/http_server_properties_impl.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // When ChannelIdService calls back to HttpNetworkSession, | 218 // When ChannelIdService calls back to HttpNetworkSession, |
218 // SpdyHttpStream should not crash. | 219 // SpdyHttpStream should not crash. |
219 channel_id_runner->Start(); | 220 channel_id_runner->Start(); |
220 | 221 |
221 rv = callback.WaitForResult(); | 222 rv = callback.WaitForResult(); |
222 EXPECT_THAT(rv, IsError(ERR_CONNECTION_CLOSED)); | 223 EXPECT_THAT(rv, IsError(ERR_CONNECTION_CLOSED)); |
223 } | 224 } |
224 #endif // !defined(OS_IOS) | 225 #endif // !defined(OS_IOS) |
225 | 226 |
226 } // namespace net | 227 } // namespace net |
OLD | NEW |