| 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/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/test/perf_time_logger.h" | 10 #include "base/test/perf_time_logger.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 return false; | 211 return false; |
| 212 } | 212 } |
| 213 | 213 |
| 214 virtual void OnError(int line_number, | 214 virtual void OnError(int line_number, |
| 215 const base::string16& message) OVERRIDE { | 215 const base::string16& message) OVERRIDE { |
| 216 CHECK(false); | 216 CHECK(false); |
| 217 } | 217 } |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 TEST(ProxyResolverPerfTest, ProxyResolverV8) { | 220 TEST(ProxyResolverPerfTest, ProxyResolverV8) { |
| 221 // This has to be done on the main thread. | 221 net::ProxyResolverV8::EnsureIsolateCreated(); |
| 222 net::ProxyResolverV8::RememberDefaultIsolate(); | |
| 223 | 222 |
| 224 MockJSBindings js_bindings; | 223 MockJSBindings js_bindings; |
| 225 net::ProxyResolverV8 resolver; | 224 net::ProxyResolverV8 resolver; |
| 226 resolver.set_js_bindings(&js_bindings); | 225 resolver.set_js_bindings(&js_bindings); |
| 227 PacPerfSuiteRunner runner(&resolver, "ProxyResolverV8"); | 226 PacPerfSuiteRunner runner(&resolver, "ProxyResolverV8"); |
| 228 runner.RunAllTests(); | 227 runner.RunAllTests(); |
| 229 } | 228 } |
| OLD | NEW |