// Copyright 2019 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/weak_ptr.h" #include "gtest/gtest.h" namespace openscreen { namespace { class SomeClass { … }; struct SomeSubclass final : public SomeClass { … }; TEST(WeakPtrTest, InteractsWithNullptr) { … } TEST(WeakPtrTest, CopyConstructsAndAssigns) { … } TEST(WeakPtrTest, MoveConstructsAndAssigns) { … } TEST(WeakPtrTest, InvalidatesWeakPtrs) { … } } // namespace } // namespace openscreen