OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/proxy/sync_host_resolver_bridge.h" | 5 #include "net/proxy/sync_host_resolver_bridge.h" |
6 | 6 |
7 #include "base/thread.h" | 7 #include "base/threading/thread.h" |
8 #include "base/waitable_event.h" | 8 #include "base/waitable_event.h" |
9 #include "net/base/address_list.h" | 9 #include "net/base/address_list.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
11 #include "net/base/net_log.h" | 11 #include "net/base/net_log.h" |
12 #include "net/proxy/multi_threaded_proxy_resolver.h" | 12 #include "net/proxy/multi_threaded_proxy_resolver.h" |
13 #include "net/base/test_completion_callback.h" | 13 #include "net/base/test_completion_callback.h" |
14 #include "net/proxy/proxy_info.h" | 14 #include "net/proxy/proxy_info.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 // TODO(eroman): This test should be moved into | 17 // TODO(eroman): This test should be moved into |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // stop the IOThread, which will in turn delete the | 225 // stop the IOThread, which will in turn delete the |
226 // SingleThreadedProxyResolver, which in turn will stop its internal | 226 // SingleThreadedProxyResolver, which in turn will stop its internal |
227 // PAC thread (which is currently blocked waiting on the host resolve which | 227 // PAC thread (which is currently blocked waiting on the host resolve which |
228 // is running on IOThread). The IOThread::Cleanup() will verify that after | 228 // is running on IOThread). The IOThread::Cleanup() will verify that after |
229 // the PAC thread is stopped, it cancels the request on the HostResolver. | 229 // the PAC thread is stopped, it cancels the request on the HostResolver. |
230 } | 230 } |
231 | 231 |
232 } // namespace | 232 } // namespace |
233 | 233 |
234 } // namespace net | 234 } // namespace net |
OLD | NEW |