#include "fxjs/gc/gced_tree_node.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 ObservableGCedTreeNodeForTest
: public GCedTreeNode<ObservableGCedTreeNodeForTest>,
public Observable { … };
}
class GCedTreeNodeUnitTest : public FXGCUnitTest { … };
TEST_F(GCedTreeNodeUnitTest, OneRefence) { … }
TEST_F(GCedTreeNodeUnitTest, NoReferences) { … }
TEST_F(GCedTreeNodeUnitTest, FirstHasParent) { … }
TEST_F(GCedTreeNodeUnitTest, RemoveSelf) { … }
TEST_F(GCedTreeNodeUnitTest, InsertBeforeAfter) { … }
TEST_F(GCedTreeNodeUnitTest, AsMapKey) { … }