// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "util/ref_counted.h" #include <atomic> #include <thread> #include "testing/gtest/include/gtest/gtest.h" #include "third_party/abseil-cpp/absl/synchronization/notification.h" namespace ipcz { namespace { RefCountedTest; class TestObject : public RefCounted<TestObject> { … }; TEST_F(RefCountedTest, NullRef) { … } TEST_F(RefCountedTest, SimpleRef) { … } TEST_F(RefCountedTest, Copy) { … } TEST_F(RefCountedTest, Move) { … } TEST_F(RefCountedTest, ThreadSafe) { … } } // namespace } // namespace ipcz