#include "third_party/blink/renderer/platform/wtf/pod_interval_tree.h"
#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/pod_tree_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace WTF {
InitRandom;
NextRandom;
#ifndef NDEBUG
template <>
struct ValueToString<void*> { … };
#endif
TEST(PODIntervalTreeTest, TestInsertion) { … }
TEST(PODIntervalTreeTest, TestInsertionAndQuery) { … }
TEST(PODIntervalTreeTest, TestQueryAgainstZeroSizeInterval) { … }
#ifndef NDEBUG
template <>
struct ValueToString<int*> { … };
#endif
TEST(PODIntervalTreeTest, TestDuplicateElementInsertion) { … }
namespace {
struct UserData1 { … };
}
#ifndef NDEBUG
template <>
struct ValueToString<UserData1> { … };
#endif
TEST(PODIntervalTreeTest, TestInsertionOfComplexUserData) { … }
TEST(PODIntervalTreeTest, TestQueryingOfComplexUserData) { … }
namespace {
class EndpointType1 { … };
}
#ifndef NDEBUG
template <>
struct ValueToString<EndpointType1> { … };
#endif
TEST(PODIntervalTreeTest, TestTreeDoesNotRequireMostOperators) { … }
namespace {
void TreeInsertionAndDeletionTest(int32_t seed, int tree_size) { … }
}
TEST(PODIntervalTreeTest, RandomDeletionAndInsertionRegressionTest1) { … }
TEST(PODIntervalTreeTest, RandomDeletionAndInsertionRegressionTest2) { … }
TEST(PODIntervalTreeTest, RandomDeletionAndInsertionRegressionTest3) { … }
TEST(PODIntervalTreeTest, RandomDeletionAndInsertionRegressionTest4) { … }
}