// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "thread_annotations.h" #include "base/memory/raw_ref.h" #include "testing/gtest/include/gtest/gtest.h" namespace { class LOCKABLE Lock { … }; class SCOPED_LOCKABLE AutoLock { … }; class ThreadSafe { … }; void ThreadSafe::ExplicitIncrement() { … } void ThreadSafe::ImplicitIncrement() { … } TEST(ThreadAnnotationsTest, ExplicitIncrement) { … } TEST(ThreadAnnotationsTest, ImplicitIncrement) { … } } // anonymous namespace