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

Side by Side Diff: net/url_request/url_request_test_job.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/url_request/url_request_test_job.h ('k') | net/url_request/url_request_test_util.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 "net/url_request/url_request_test_job.h" 5 #include "net/url_request/url_request_test_job.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <list> 8 #include <list>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 10 matching lines...) Expand all
21 namespace { 21 namespace {
22 22
23 typedef std::list<URLRequestTestJob*> URLRequestJobList; 23 typedef std::list<URLRequestTestJob*> URLRequestJobList;
24 base::LazyInstance<URLRequestJobList>::Leaky 24 base::LazyInstance<URLRequestJobList>::Leaky
25 g_pending_jobs = LAZY_INSTANCE_INITIALIZER; 25 g_pending_jobs = LAZY_INSTANCE_INITIALIZER;
26 26
27 class TestJobProtocolHandler : public URLRequestJobFactory::ProtocolHandler { 27 class TestJobProtocolHandler : public URLRequestJobFactory::ProtocolHandler {
28 public: 28 public:
29 // URLRequestJobFactory::ProtocolHandler implementation: 29 // URLRequestJobFactory::ProtocolHandler implementation:
30 virtual URLRequestJob* MaybeCreateJob( 30 virtual URLRequestJob* MaybeCreateJob(
31 URLRequest* request, NetworkDelegate* network_delegate) const OVERRIDE { 31 URLRequest* request, NetworkDelegate* network_delegate) const override {
32 return new URLRequestTestJob(request, network_delegate); 32 return new URLRequestTestJob(request, network_delegate);
33 } 33 }
34 }; 34 };
35 35
36 } // namespace 36 } // namespace
37 37
38 // static getters for known URLs 38 // static getters for known URLs
39 GURL URLRequestTestJob::test_url_1() { 39 GURL URLRequestTestJob::test_url_1() {
40 return GURL("test:url1"); 40 return GURL("test:url1");
41 } 41 }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 URLRequestTestJob* next_job(g_pending_jobs.Get().front()); 345 URLRequestTestJob* next_job(g_pending_jobs.Get().front());
346 g_pending_jobs.Get().pop_front(); 346 g_pending_jobs.Get().pop_front();
347 347
348 DCHECK(!next_job->auto_advance()); // auto_advance jobs should be in this q 348 DCHECK(!next_job->auto_advance()); // auto_advance jobs should be in this q
349 next_job->ProcessNextOperation(); 349 next_job->ProcessNextOperation();
350 return true; 350 return true;
351 } 351 }
352 352
353 } // namespace net 353 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_test_job.h ('k') | net/url_request/url_request_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698