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