#include "cc/base/rtree.h"
#include <stddef.h>
#include <utility>
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
namespace {
template <typename T>
void SearchAndVerifyRefs(const RTree<T>& rtree,
const gfx::Rect& query,
std::vector<T>* results) { … }
template <typename T>
void SearchAndVerifyBounds(const RTree<T>& rtree,
const gfx::Rect& query,
std::vector<T>* results,
std::vector<gfx::Rect>* rects) { … }
}
TEST(RTreeTest, ReserveNodesDoesntDcheck) { … }
TEST(RTreeTest, NoOverlap) { … }
TEST(RTreeTest, Overlap) { … }
static void VerifySorted(const std::vector<size_t>& results) { … }
TEST(RTreeTest, SortedResults) { … }
TEST(RTreeTest, GetBoundsEmpty) { … }
TEST(RTreeTest, GetBoundsNonOverlapping) { … }
TEST(RTreeTest, GetBoundsOverlapping) { … }
TEST(RTreeTest, GetBoundsWithEmptyRect) { … }
TEST(RTreeTest, Payload) { … }
TEST(RTreeTest, InvalidBounds) { … }
TEST(RTreeTest, InvalidBoundsSearch) { … }
TEST(RTreeTest, InvalidBoundsGetAllBounds) { … }
}