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

Unified Diff: base/synchronization/lock_unittest.cc

Issue 10004001: Add virtual and OVERRIDE to base/ implementation files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win Fix -> Missing header Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/synchronization/condition_variable_unittest.cc ('k') | base/synchronization/waitable_event_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/lock_unittest.cc
diff --git a/base/synchronization/lock_unittest.cc b/base/synchronization/lock_unittest.cc
index 1dae49b0437732a18595b37237a76733f10db910..a0b0f7fd4065d57b78b7b6ad69665e76ed761847 100644
--- a/base/synchronization/lock_unittest.cc
+++ b/base/synchronization/lock_unittest.cc
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/synchronization/lock.h"
+
#include <stdlib.h>
-#include "base/synchronization/lock.h"
+#include "base/compiler_specific.h"
#include "base/threading/platform_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -16,7 +18,7 @@ class BasicLockTestThread : public PlatformThread::Delegate {
public:
BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {}
- virtual void ThreadMain() {
+ virtual void ThreadMain() OVERRIDE {
for (int i = 0; i < 10; i++) {
lock_->Acquire();
acquired_++;
@@ -91,7 +93,7 @@ class TryLockTestThread : public PlatformThread::Delegate {
public:
TryLockTestThread(Lock* lock) : lock_(lock), got_lock_(false) {}
- virtual void ThreadMain() {
+ virtual void ThreadMain() OVERRIDE {
got_lock_ = lock_->Try();
if (got_lock_)
lock_->Release();
@@ -160,7 +162,7 @@ class MutexLockTestThread : public PlatformThread::Delegate {
}
}
- virtual void ThreadMain() {
+ virtual void ThreadMain() OVERRIDE {
DoStuff(lock_, value_);
}
« no previous file with comments | « base/synchronization/condition_variable_unittest.cc ('k') | base/synchronization/waitable_event_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698