Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: net/proxy/proxy_resolver_perftest.cc

Issue 2978001: Display the proxy PAC javascript errors in the NetLog.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address wtc's comment -- rename to PAC_JAVASCRIPT_* Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/proxy/proxy_resolver_js_bindings_unittest.cc ('k') | net/proxy/proxy_resolver_v8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver_js_bindings_unittest.cc ('k') | net/proxy/proxy_resolver_v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698