summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryLocalTest.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-03-17 17:01:45 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-17 17:01:46 +0000
commitcc404b51fc424cbb786abce8b8f36b1dce1c0ab9 (patch)
tree62ebb9ce531a818efa51e551179dccad32ea949e /libunwindstack/tests/MemoryLocalTest.cpp
parent0add3ca7c47b287bc01b5e738cb9b682d43f6f97 (diff)
parent3958f8060ac0adccd977c0fab7a53d45f3fce58d (diff)
Merge "Elf interface for new unwinder."
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);