#include "components/zucchini/rel32_utils.h"
#include <stdint.h>
#include <deque>
#include <memory>
#include <optional>
#include <utility>
#include <vector>
#include "base/test/gtest_util.h"
#include "components/zucchini/address_translator.h"
#include "components/zucchini/arm_utils.h"
#include "components/zucchini/image_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace zucchini {
namespace {
class TestAddressTranslator : public AddressTranslator { … };
void CheckReader(const std::vector<Reference>& expected_refs,
std::unique_ptr<ReferenceReader> reader) { … }
ArmCopyDispFun;
void CheckCopy(const std::vector<uint8_t>& bytes_exp_1_to_2,
const std::vector<uint8_t>& bytes_exp_2_to_1,
const std::vector<uint8_t>& bytes1,
const std::vector<uint8_t>& bytes2,
ArmCopyDispFun copier) { … }
}
TEST(Rel32UtilsTest, Rel32ReaderX86) { … }
TEST(Rel32UtilsTest, Rel32WriterX86) { … }
TEST(Rel32UtilsTest, Rel32ReaderArm_AArch32) { … }
TEST(Rel32UtilsTest, Rel32WriterArm_AArch32_Easy) { … }
TEST(Rel32UtilsTest, Rel32WriterArm_AArch32_Hard) { … }
TEST(Rel32UtilsTest, AArch32SwitchToThumb2) { … }
TEST(Rel32UtilsTest, ArmCopyDisp_AArch32) { … }
TEST(Rel32UtilsTest, Rel32ReaderArm_AArch64) { … }
TEST(Rel32UtilsTest, Rel32WriterArm_AArch64) { … }
TEST(Rel32UtilsTest, ArmCopyDisp_AArch64) { … }
}