#include "src/trace_processor/importers/common/address_range.h"
#include <cstdint>
#include <limits>
#include <utility>
#include <vector>
#include "test/gtest_and_gmock.h"
namespace perfetto {
namespace trace_processor {
inline void PrintTo(const AddressRange& r, std::ostream* os) { … }
namespace {
_;
A;
AllOf;
ElementsAre;
Eq;
IsEmpty;
MockFunction;
Ne;
Pair;
Pointee;
SizeIs;
MATCHER_P2(IteratorPointsTo, container, matcher, "") { … }
template <typename Value>
auto MapEntry(uint64_t start, uint64_t end, Value value) { … }
auto AppendRangesTo(std::vector<AddressRange>& ranges) { … }
TEST(AddressRange, EmptyByDefault) { … }
TEST(AddressRange, EmptyRangeContainsNothing) { … }
TEST(AddressRange, ContainsAddress) { … }
TEST(AddressRange, MaxRangeContainsAll) { … }
TEST(AddressRange, ContainsRange) { … }
TEST(AddressRange, Intersect) { … }
TEST(AddressRange, Overlap) { … }
TEST(AddressRangeMap, Empty) { … }
TEST(AddressRangeMap, EmplaceFailsForOverlaps) { … }
TEST(AddressRangeMap, EmplaceSucceedsForNonOverlaps) { … }
TEST(AddressRangeMap, EmplaceFailsForEmptyRange) { … }
TEST(AddressRangeMap, DeleteOverlapsAndEmplaceFailsForEmptyRange) { … }
TEST(AddressRangeMap, FindAddress) { … }
TEST(AddressRangeMap, FindRangeThatContains) { … }
TEST(AddressRangeMap, TrimOverlapsAndEmplace) { … }
TEST(AddressRangeMap, DeleteOverlapsAndEmplace) { … }
TEST(AddressRangeMap, ForOverlapsEmptyRangeDoesNothing) { … }
TEST(AddressRangeMap, ForOverlaps) { … }
TEST(AddressSet, Empty) { … }
TEST(AddressSet, EmptyRangesAreNotAdded) { … }
TEST(AddressSet, NonOverlapingNonContiguousAreNotMerged) { … }
TEST(AddressSet, ContiguousAreMerged) { … }
TEST(AddressSet, OverlapsAreMerged) { … }
TEST(AddressSet, SpliceRemove) { … }
TEST(AddressSet, PartialRemove) { … }
TEST(AddressSet, MultipleRemove) { … }
TEST(AddressSet, RemoveEmptyRangeDoesNothing) { … }
}
}
}