chromium/components/zucchini/abs32_utils_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/zucchini/abs32_utils.h"

#include <stdint.h>

#include <algorithm>
#include <string>
#include <utility>

#include "base/numerics/safe_conversions.h"
#include "components/zucchini/address_translator.h"
#include "components/zucchini/image_utils.h"
#include "components/zucchini/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace zucchini {

namespace {

// A trivial AddressTranslator that applies constant shift.
class TestAddressTranslator : public AddressTranslator {};

// Helper to translate address |value| to RVA. May return |kInvalidRva|.
rva_t AddrValueToRva(uint64_t value, AbsoluteAddress* addr) {}

}  // namespace

TEST(Abs32UtilsTest, AbsoluteAddress32) {}

TEST(Abs32UtilsTest, AbsoluteAddress32Overflow) {}

TEST(Abs32UtilsTest, AbsoluteAddress64) {}

TEST(Abs32UtilsTest, AbsoluteAddress64Overflow) {}

TEST(Abs32UtilsTest, Win32Read32) {}

TEST(Abs32UtilsTest, Win32Read64) {}

TEST(Abs32UtilsTest, Win32ReadFail) {}

TEST(Abs32UtilsTest, Win32Write32) {}

TEST(Abs32UtilsTest, Win32Write64) {}

TEST(Abs32UtilsTest, RemoveUntranslatableAbs32) {}

TEST(Abs32UtilsTest, RemoveOverlappingAbs32Locations) {}

}  // namespace zucchini