summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryLocalTest.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-02-01 15:44:40 -0800
committerChristopher Ferris <cferris@google.com>2017-03-09 12:27:16 -0800
commit3958f8060ac0adccd977c0fab7a53d45f3fce58d (patch)
treecd01b1ab589fcc42479147ad1806b16f8fee8ce0 /libunwindstack/tests/MemoryLocalTest.cpp
parente88882e16e3fa5820e9e768fdceb7aa84f8256fc (diff)
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
Diffstat (limited to 'libunwindstack/tests/MemoryLocalTest.cpp')
-rw-r--r--libunwindstack/tests/MemoryLocalTest.cpp15
1 files changed, 3 insertions, 12 deletions
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<uint8_t> 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<uint64_t>(&name[7]), &dst_name, 9));
}
-TEST_F(MemoryLocalTest, read_illegal) {
+TEST(MemoryLocalTest, read_illegal) {
MemoryLocal local;
std::vector<uint8_t> dst(100);