From 3958f8060ac0adccd977c0fab7a53d45f3fce58d Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Wed, 1 Feb 2017 15:44:40 -0800 Subject: Elf interface for new unwinder. This cl includes the code to read arm unwind information from a shared library. Bug: 23762183 Test: Passes all unit tests. I can dump the arm unwind information Test: for an arm shared library. Change-Id: I43501ea2eab843b81de8bd5128401dd1971af8d3 --- libunwindstack/tests/MemoryLocalTest.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'libunwindstack/tests/MemoryLocalTest.cpp') diff --git a/libunwindstack/tests/MemoryLocalTest.cpp b/libunwindstack/tests/MemoryLocalTest.cpp index 49ece9dda..0ba5f1c37 100644 --- a/libunwindstack/tests/MemoryLocalTest.cpp +++ b/libunwindstack/tests/MemoryLocalTest.cpp @@ -23,16 +23,7 @@ #include "Memory.h" -#include "LogFake.h" - -class MemoryLocalTest : public ::testing::Test { - protected: - void SetUp() override { - ResetLogs(); - } -}; - -TEST_F(MemoryLocalTest, read) { +TEST(MemoryLocalTest, read) { std::vector src(1024); memset(src.data(), 0x4c, 1024); @@ -56,7 +47,7 @@ TEST_F(MemoryLocalTest, read) { } } -TEST_F(MemoryLocalTest, read_string) { +TEST(MemoryLocalTest, read_string) { std::string name("string_in_memory"); MemoryLocal local; @@ -75,7 +66,7 @@ TEST_F(MemoryLocalTest, read_string) { ASSERT_FALSE(local.ReadString(reinterpret_cast(&name[7]), &dst_name, 9)); } -TEST_F(MemoryLocalTest, read_illegal) { +TEST(MemoryLocalTest, read_illegal) { MemoryLocal local; std::vector dst(100); -- cgit v1.2.3