#include "TestingSupport/Host/NativeProcessTestUtils.h"
#include "Plugins/Process/POSIX/NativeProcessELF.h"
#include "Plugins/Process/Utility/AuxVector.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/DataEncoder.h"
#include "lldb/Utility/DataExtractor.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/Support/MemoryBuffer.h"
#include "gmock/gmock.h"
usingnamespacelldb_private;
usingnamespacelldb;
usingnamespacetesting;
namespace {
class MockProcessELF : public MockProcess<NativeProcessELF> { … };
std::unique_ptr<llvm::MemoryBuffer> CreateAuxvData(
MockProcessELF &process,
llvm::ArrayRef<std::pair<AuxVector::EntryType, uint32_t>> auxv_data) { … }
}
TEST(NativeProcessELFTest, GetAuxValue) { … }
TEST(NativeProcessELFTest, GetELFImageInfoAddress) { … }
TEST(NativeProcessELFTest, GetELFImageInfoAddress_NoDebugEntry) { … }