summaryrefslogtreecommitdiffstats
path: root/base/tools_sanity_unittest.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-06 03:53:02 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-06 03:53:02 +0000
commit441061813c0a5c13392fa1ceff763639cccf3233 (patch)
tree7e4b83ec66c53ac08f22725ec1b2ca6d632213f6 /base/tools_sanity_unittest.cc
parentf493d9f1ce7f520fbbe4fbe4bce282242941783c (diff)
downloadchromium_src-441061813c0a5c13392fa1ceff763639cccf3233.zip
chromium_src-441061813c0a5c13392fa1ceff763639cccf3233.tar.gz
chromium_src-441061813c0a5c13392fa1ceff763639cccf3233.tar.bz2
Add virtual and OVERRIDE to base/ implementation files
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10004001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131098 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tools_sanity_unittest.cc')
-rw-r--r--base/tools_sanity_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc
index 60ac015..499ff88 100644
--- a/base/tools_sanity_unittest.cc
+++ b/base/tools_sanity_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
@@ -163,8 +163,8 @@ namespace {
class TOOLS_SANITY_TEST_CONCURRENT_THREAD : public PlatformThread::Delegate {
public:
explicit TOOLS_SANITY_TEST_CONCURRENT_THREAD(bool *value) : value_(value) {}
- ~TOOLS_SANITY_TEST_CONCURRENT_THREAD() {}
- void ThreadMain() {
+ virtual ~TOOLS_SANITY_TEST_CONCURRENT_THREAD() {}
+ virtual void ThreadMain() OVERRIDE {
*value_ = true;
// Sleep for a few milliseconds so the two threads are more likely to live
@@ -179,8 +179,8 @@ class TOOLS_SANITY_TEST_CONCURRENT_THREAD : public PlatformThread::Delegate {
class ReleaseStoreThread : public PlatformThread::Delegate {
public:
explicit ReleaseStoreThread(base::subtle::Atomic32 *value) : value_(value) {}
- ~ReleaseStoreThread() {}
- void ThreadMain() {
+ virtual ~ReleaseStoreThread() {}
+ virtual void ThreadMain() OVERRIDE {
base::subtle::Release_Store(value_, kMagicValue);
// Sleep for a few milliseconds so the two threads are more likely to live
@@ -195,8 +195,8 @@ class ReleaseStoreThread : public PlatformThread::Delegate {
class AcquireLoadThread : public PlatformThread::Delegate {
public:
explicit AcquireLoadThread(base::subtle::Atomic32 *value) : value_(value) {}
- ~AcquireLoadThread() {}
- void ThreadMain() {
+ virtual ~AcquireLoadThread() {}
+ virtual void ThreadMain() OVERRIDE {
// Wait for the other thread to make Release_Store
PlatformThread::Sleep(TimeDelta::FromMilliseconds(100));
base::subtle::Acquire_Load(value_);