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

Side by Side Diff: base/threading/sequenced_worker_pool_unittest.cc

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/threading/sequenced_worker_pool.h" 5 #include "base/threading/sequenced_worker_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 class SequencedWorkerPoolTest : public testing::Test { 179 class SequencedWorkerPoolTest : public testing::Test {
180 public: 180 public:
181 SequencedWorkerPoolTest() 181 SequencedWorkerPoolTest()
182 : tracker_(new TestTracker) { 182 : tracker_(new TestTracker) {
183 ResetPool(); 183 ResetPool();
184 } 184 }
185 185
186 virtual ~SequencedWorkerPoolTest() {} 186 virtual ~SequencedWorkerPoolTest() {}
187 187
188 virtual void SetUp() OVERRIDE {} 188 void SetUp() override {}
189 189
190 virtual void TearDown() OVERRIDE { 190 void TearDown() override { pool()->Shutdown(); }
191 pool()->Shutdown();
192 }
193 191
194 const scoped_refptr<SequencedWorkerPool>& pool() { 192 const scoped_refptr<SequencedWorkerPool>& pool() {
195 return pool_owner_->pool(); 193 return pool_owner_->pool();
196 } 194 }
197 TestTracker* tracker() { return tracker_.get(); } 195 TestTracker* tracker() { return tracker_.get(); }
198 196
199 // Destroys the SequencedWorkerPool instance, blocking until it is fully shut 197 // Destroys the SequencedWorkerPool instance, blocking until it is fully shut
200 // down, and creates a new instance. 198 // down, and creates a new instance.
201 void ResetPool() { 199 void ResetPool() {
202 pool_owner_.reset(new SequencedWorkerPoolOwner(kNumWorkerThreads, "test")); 200 pool_owner_.reset(new SequencedWorkerPoolOwner(kNumWorkerThreads, "test"));
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 SequencedWorkerPoolSequencedTaskRunner, TaskRunnerTest, 913 SequencedWorkerPoolSequencedTaskRunner, TaskRunnerTest,
916 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); 914 SequencedWorkerPoolSequencedTaskRunnerTestDelegate);
917 915
918 INSTANTIATE_TYPED_TEST_CASE_P( 916 INSTANTIATE_TYPED_TEST_CASE_P(
919 SequencedWorkerPoolSequencedTaskRunner, SequencedTaskRunnerTest, 917 SequencedWorkerPoolSequencedTaskRunner, SequencedTaskRunnerTest,
920 SequencedWorkerPoolSequencedTaskRunnerTestDelegate); 918 SequencedWorkerPoolSequencedTaskRunnerTestDelegate);
921 919
922 } // namespace 920 } // namespace
923 921
924 } // namespace base 922 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698