diff options
author | David Srbecky <dsrbecky@google.com> | 2019-04-05 18:23:32 +0000 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2019-04-05 18:23:32 +0000 |
commit | b9cc4fbb268652744c812415cb2e5d1fbe04879a (patch) | |
tree | de4d1529be35bdb50b0d338d66c78ab76c9d4ab9 /libunwindstack/tests/DexFileTest.cpp | |
parent | 85b5fecec920208ec43b42488f08d4c2e5aaeda2 (diff) |
Revert "Check for data races when reading JIT/DEX entries."
This reverts commit 85b5fecec920208ec43b42488f08d4c2e5aaeda2.
Reason for revert: Breaks ART tests, reverting to investigate.
Change-Id: I1bb905407e87cbd4f832646651133a9caf6fcfc8
Diffstat (limited to 'libunwindstack/tests/DexFileTest.cpp')
-rw-r--r-- | libunwindstack/tests/DexFileTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libunwindstack/tests/DexFileTest.cpp b/libunwindstack/tests/DexFileTest.cpp index df7b31dfd..0149a42c7 100644 --- a/libunwindstack/tests/DexFileTest.cpp +++ b/libunwindstack/tests/DexFileTest.cpp @@ -177,11 +177,11 @@ TEST(DexFileTest, get_method) { std::string method; uint64_t method_offset; - ASSERT_TRUE(dex_file->GetFunctionName(0x4102, &method, &method_offset)); + ASSERT_TRUE(dex_file->GetMethodInformation(0x102, &method, &method_offset)); EXPECT_EQ("Main.<init>", method); EXPECT_EQ(2U, method_offset); - ASSERT_TRUE(dex_file->GetFunctionName(0x4118, &method, &method_offset)); + ASSERT_TRUE(dex_file->GetMethodInformation(0x118, &method, &method_offset)); EXPECT_EQ("Main.main", method); EXPECT_EQ(0U, method_offset); } @@ -195,9 +195,9 @@ TEST(DexFileTest, get_method_empty) { std::string method; uint64_t method_offset; - EXPECT_FALSE(dex_file->GetFunctionName(0x100000, &method, &method_offset)); + EXPECT_FALSE(dex_file->GetMethodInformation(0x100000, &method, &method_offset)); - EXPECT_FALSE(dex_file->GetFunctionName(0x98, &method, &method_offset)); + EXPECT_FALSE(dex_file->GetMethodInformation(0x98, &method, &method_offset)); } } // namespace unwindstack |