#include "fxjs/gc/gced_tree_node_mixin.h"
#include <map>
#include "core/fxcrt/observed_ptr.h"
#include "fxjs/gc/heap.h"
#include "testing/fxgc_unittest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/v8_test_environment.h"
#include "v8/include/cppgc/allocation.h"
#include "v8/include/cppgc/persistent.h"
namespace {
class ObservableGCedTreeNodeMixinForTest
: public cppgc::GarbageCollected<ObservableGCedTreeNodeMixinForTest>,
public GCedTreeNodeMixin<ObservableGCedTreeNodeMixinForTest>,
public Observable { … };
}
class GCedTreeNodeMixinUnitTest : public FXGCUnitTest { … };
TEST_F(GCedTreeNodeMixinUnitTest, OneRefence) { … }
TEST_F(GCedTreeNodeMixinUnitTest, NoReferences) { … }
TEST_F(GCedTreeNodeMixinUnitTest, FirstHasParent) { … }
TEST_F(GCedTreeNodeMixinUnitTest, RemoveSelf) { … }
TEST_F(GCedTreeNodeMixinUnitTest, InsertBeforeAfter) { … }
TEST_F(GCedTreeNodeMixinUnitTest, AsMapKey) { … }