#include "components/zucchini/address_translator.h"
#include <string>
#include <utility>
#include "base/format_macros.h"
#include "base/ranges/algorithm.h"
#include "base/strings/stringprintf.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace zucchini {
namespace {
struct OffsetToRvaTestCase { … };
struct RvaToOffsetTestCase { … };
class TestAddressTranslator : public AddressTranslator { … };
void SimpleTest(const std::vector<std::string>& specs,
AddressTranslator::Status expected,
const std::string& case_name) { … }
class TwoUnitOverlapTester { … };
}
TEST(AddressTranslatorTest, Empty) { … }
TEST(AddressTranslatorTest, Single) { … }
TEST(AddressTranslatorTest, SingleDanglingRva) { … }
TEST(AddressTranslatorTest, BasicUsage) { … }
TEST(AddressTranslatorTest, Overflow) { … }
TEST(AddressTranslatorTest, AddUnitAsString) { … }
TEST(AddressTranslatorTest, OverlapFromComment) { … }
TEST(AddressTranslatorTest, Overlap) { … }
TEST(AddressTranslatorTest, OverlapOffsetMultiple) { … }
TEST(AddressTranslatorTest, OverlapDangling) { … }
TEST(AddressTranslatorTest, Merge) { … }
TEST(AddressTranslatorTest, RvaToOffsetCache_IsValid) { … }
}