summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/ElfTest.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-03-14 15:40:59 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-03-14 15:40:59 +0000
commit4886a5bd5942275c20fa95df3ccb03e70a97328c (patch)
tree8c40e397a05578712906cb0e546a77d9799f0dd1 /libunwindstack/tests/ElfTest.cpp
parentff3c13f52f1d223a4aa2904234867e6199643766 (diff)
parent02a6c448c32c37aae834bc25e92db97bfac32524 (diff)
Merge "Add support for displaying soname in an apk."
Diffstat (limited to 'libunwindstack/tests/ElfTest.cpp')
-rw-r--r--libunwindstack/tests/ElfTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libunwindstack/tests/ElfTest.cpp b/libunwindstack/tests/ElfTest.cpp
index 1ff23064f..23c9cf860 100644
--- a/libunwindstack/tests/ElfTest.cpp
+++ b/libunwindstack/tests/ElfTest.cpp
@@ -126,9 +126,9 @@ TEST_F(ElfTest, elf_invalid) {
ASSERT_FALSE(elf.valid());
ASSERT_TRUE(elf.interface() == nullptr);
- std::string name;
- ASSERT_FALSE(elf.GetSoname(&name));
+ ASSERT_EQ("", elf.GetSoname());
+ std::string name;
uint64_t func_offset;
ASSERT_FALSE(elf.GetFunctionName(0, &name, &func_offset));
@@ -309,7 +309,7 @@ class ElfInterfaceMock : public ElfInterface {
bool Init(uint64_t*) override { return false; }
void InitHeaders(uint64_t) override {}
- bool GetSoname(std::string*) override { return false; }
+ std::string GetSoname() override { return ""; }
bool GetFunctionName(uint64_t, std::string*, uint64_t*) override { return false; }
std::string GetBuildID() override { return ""; }