chromium/third_party/pdfium/core/fxcrt/tree_node_unittest.cpp

// Copyright 2019 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/tree_node.h"

#include <memory>

#include "testing/gtest/include/gtest/gtest.h"

namespace fxcrt {

class TestTreeNode : public TreeNode<TestTreeNode> {};

// NOTE: Successful cases are covered via RetainedTreeNode tests.
// These tests check that we trip CHECKS given bad calls.

TEST(TreeNode, SelfAppendFirstChild) {}

TEST(TreeNode, SelfAppendLastChild) {}

TEST(TreeNode, SelfInsertBeforeOther) {}

TEST(TreeNode, InsertOtherBeforeSelf) {}

TEST(TreeNode, SelfInsertAfterOther) {}

TEST(TreeNode, InsertOtherAfterSelf) {}

TEST(TreeNode, RemoveParentless) {}

TEST(TreeNode, RemoveFromWrongParent) {}

TEST(TreeNode, SafeRemove) {}

TEST(TreeNode, SafeRemoveParentless) {}

TEST(TreeNode, RemoveAllChildren) {}

TEST(TreeNode, NthChild) {}

TEST(TreeNode, AppendFirstChild) {}

TEST(TreeNode, RemoveChild) {}

}  // namespace fxcrt