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

Side by Side Diff: base/test/null_task_runner.h

Issue 614103004: replace 'virtual ... OVERRIDE' with '... override' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: process base/ 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
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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 8
9 namespace base { 9 namespace base {
10 10
11 // Helper class for tests that need to provide an implementation of a 11 // Helper class for tests that need to provide an implementation of a
12 // *TaskRunner class but don't actually care about tasks being run. 12 // *TaskRunner class but don't actually care about tasks being run.
13 13
14 class NullTaskRunner : public base::SingleThreadTaskRunner { 14 class NullTaskRunner : public base::SingleThreadTaskRunner {
15 public: 15 public:
16 NullTaskRunner(); 16 NullTaskRunner();
17 17
18 virtual bool PostDelayedTask(const tracked_objects::Location& from_here, 18 bool PostDelayedTask(const tracked_objects::Location& from_here,
19 const base::Closure& task, 19 const base::Closure& task,
20 base::TimeDelta delay) OVERRIDE; 20 base::TimeDelta delay) override;
21 virtual bool PostNonNestableDelayedTask( 21 virtual bool PostNonNestableDelayedTask(
22 const tracked_objects::Location& from_here, 22 const tracked_objects::Location& from_here,
23 const base::Closure& task, 23 const base::Closure& task,
24 base::TimeDelta delay) OVERRIDE; 24 base::TimeDelta delay) override;
25 // Always returns true to avoid triggering DCHECKs. 25 // Always returns true to avoid triggering DCHECKs.
26 virtual bool RunsTasksOnCurrentThread() const OVERRIDE; 26 bool RunsTasksOnCurrentThread() const override;
27 27
28 protected: 28 protected:
29 virtual ~NullTaskRunner(); 29 virtual ~NullTaskRunner();
30 30
31 DISALLOW_COPY_AND_ASSIGN(NullTaskRunner); 31 DISALLOW_COPY_AND_ASSIGN(NullTaskRunner);
32 }; 32 };
33 33
34 } // namespace 34 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698