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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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
« no previous file with comments | « net/proxy/proxy_resolver_mac.h ('k') | net/proxy/proxy_resolver_v8.h » ('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) 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/files/file_util.h" 7 #include "base/files/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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 net::ProxyResolverMac resolver; 192 net::ProxyResolverMac resolver;
193 PacPerfSuiteRunner runner(&resolver, "ProxyResolverMac"); 193 PacPerfSuiteRunner runner(&resolver, "ProxyResolverMac");
194 runner.RunAllTests(); 194 runner.RunAllTests();
195 } 195 }
196 #endif 196 #endif
197 197
198 class MockJSBindings : public net::ProxyResolverV8::JSBindings { 198 class MockJSBindings : public net::ProxyResolverV8::JSBindings {
199 public: 199 public:
200 MockJSBindings() {} 200 MockJSBindings() {}
201 201
202 virtual void Alert(const base::string16& message) OVERRIDE { 202 virtual void Alert(const base::string16& message) override {
203 CHECK(false); 203 CHECK(false);
204 } 204 }
205 205
206 virtual bool ResolveDns(const std::string& host, 206 virtual bool ResolveDns(const std::string& host,
207 ResolveDnsOperation op, 207 ResolveDnsOperation op,
208 std::string* output, 208 std::string* output,
209 bool* terminate) OVERRIDE { 209 bool* terminate) override {
210 CHECK(false); 210 CHECK(false);
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 net::ProxyResolverV8::EnsureIsolateCreated(); 221 net::ProxyResolverV8::EnsureIsolateCreated();
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 }
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver_mac.h ('k') | net/proxy/proxy_resolver_v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698