#include "src/trace_processor/containers/interval_tree.h"
#include <cstddef>
#include <cstdint>
#include <numeric>
#include <random>
#include <tuple>
#include <utility>
#include <vector>
#include "perfetto/base/compiler.h"
#include "test/gtest_and_gmock.h"
namespace perfetto::trace_processor {
inline bool operator==(const Interval& a, const Interval& b) { … }
namespace {
Interval;
IsEmpty;
UnorderedElementsAre;
std::vector<Interval> CreateIntervals(
std::vector<std::pair<uint32_t, uint32_t>> periods) { … }
TEST(IntervalTree, Trivial) { … }
TEST(IntervalTree, Simple) { … }
TEST(IntervalTree, SinglePointOverlap) { … }
TEST(IntervalTree, NoOverlaps) { … }
TEST(IntervalTree, IdenticalIntervals) { … }
TEST(IntervalTree, MultipleOverlapsVariousPositions) { … }
TEST(IntervalTree, OverlappingEndpoints) { … }
TEST(IntervalTree, Stress) { … }
}
}