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 "base/base_paths.h" | 5 #include "base/base_paths.h" |
6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/perftimer.h" | 9 #include "base/perftimer.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "net/base/mock_host_resolver.h" | |
12 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
| 12 #include "net/dns/mock_host_resolver.h" |
13 #include "net/proxy/proxy_info.h" | 13 #include "net/proxy/proxy_info.h" |
14 #include "net/proxy/proxy_resolver_v8.h" | 14 #include "net/proxy/proxy_resolver_v8.h" |
15 #include "net/test/test_server.h" | 15 #include "net/test/test_server.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
19 #include "net/proxy/proxy_resolver_winhttp.h" | 19 #include "net/proxy/proxy_resolver_winhttp.h" |
20 #elif defined(OS_MACOSX) | 20 #elif defined(OS_MACOSX) |
21 #include "net/proxy/proxy_resolver_mac.h" | 21 #include "net/proxy/proxy_resolver_mac.h" |
22 #endif | 22 #endif |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 TEST(ProxyResolverPerfTest, ProxyResolverV8) { | 219 TEST(ProxyResolverPerfTest, ProxyResolverV8) { |
220 // This has to be done on the main thread. | 220 // This has to be done on the main thread. |
221 net::ProxyResolverV8::RememberDefaultIsolate(); | 221 net::ProxyResolverV8::RememberDefaultIsolate(); |
222 | 222 |
223 MockJSBindings js_bindings; | 223 MockJSBindings js_bindings; |
224 net::ProxyResolverV8 resolver; | 224 net::ProxyResolverV8 resolver; |
225 resolver.set_js_bindings(&js_bindings); | 225 resolver.set_js_bindings(&js_bindings); |
226 PacPerfSuiteRunner runner(&resolver, "ProxyResolverV8"); | 226 PacPerfSuiteRunner runner(&resolver, "ProxyResolverV8"); |
227 runner.RunAllTests(); | 227 runner.RunAllTests(); |
228 } | 228 } |
OLD | NEW |