OLD | NEW |
1 // Copyright (c) 2009 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 "base/perftimer.h" | 5 #include "base/perftimer.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "net/base/mock_host_resolver.h" | 7 #include "net/base/mock_host_resolver.h" |
8 #include "net/proxy/proxy_resolver_js_bindings.h" | 8 #include "net/proxy/proxy_resolver_js_bindings.h" |
9 #include "net/proxy/proxy_resolver_v8.h" | 9 #include "net/proxy/proxy_resolver_v8.h" |
10 #include "net/url_request/url_request_unittest.h" | 10 #include "net/url_request/url_request_unittest.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 #elif defined(OS_MACOSX) | 185 #elif defined(OS_MACOSX) |
186 TEST(ProxyResolverPerfTest, ProxyResolverMac) { | 186 TEST(ProxyResolverPerfTest, ProxyResolverMac) { |
187 net::ProxyResolverMac resolver; | 187 net::ProxyResolverMac resolver; |
188 PacPerfSuiteRunner runner(&resolver, "ProxyResolverMac"); | 188 PacPerfSuiteRunner runner(&resolver, "ProxyResolverMac"); |
189 runner.RunAllTests(); | 189 runner.RunAllTests(); |
190 } | 190 } |
191 #endif | 191 #endif |
192 | 192 |
193 TEST(ProxyResolverPerfTest, ProxyResolverV8) { | 193 TEST(ProxyResolverPerfTest, ProxyResolverV8) { |
194 net::ProxyResolverJSBindings* js_bindings = | 194 net::ProxyResolverJSBindings* js_bindings = |
195 net::ProxyResolverJSBindings::CreateDefault(new net::MockHostResolver); | 195 net::ProxyResolverJSBindings::CreateDefault( |
| 196 new net::MockHostResolver, NULL); |
196 | 197 |
197 net::ProxyResolverV8 resolver(js_bindings); | 198 net::ProxyResolverV8 resolver(js_bindings); |
198 PacPerfSuiteRunner runner(&resolver, "ProxyResolverV8"); | 199 PacPerfSuiteRunner runner(&resolver, "ProxyResolverV8"); |
199 runner.RunAllTests(); | 200 runner.RunAllTests(); |
200 } | 201 } |
| 202 |
OLD | NEW |