// Copyright 2016 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "core/fxcrt/weak_ptr.h" #include <memory> #include <utility> #include "testing/gtest/include/gtest/gtest.h" namespace fxcrt { namespace { class PseudoDeletable; WeakTestPtr; UniqueTestPtr; class PseudoDeletable { … }; } // namespace TEST(WeakPtr, Null) { … } TEST(WeakPtr, NonNull) { … } TEST(WeakPtr, ResetNull) { … } TEST(WeakPtr, ResetNonNull) { … } TEST(WeakPtr, DeleteObject) { … } TEST(WeakPtr, Cyclic) { … } TEST(WeakPtr, CyclicDeleteObject) { … } } // namespace fxcrt