diff options
author | Josh Gao <jmgao@google.com> | 2017-10-18 11:52:53 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-11-15 15:38:13 -0800 |
commit | b837763b494e59f8532e98d2b57a5f28ed15c5a7 (patch) | |
tree | 6d9d0c4b2d72ee5a0aec42b5686926202989863b /libunwindstack/tests/MemoryRangeTest.cpp | |
parent | ef35aa5d40b6404baf702a58527f1cd3a9f42f19 (diff) |
unwindstack: rename Memory::ReadPartially to Read.
Test: mma
Test: treehugger
Change-Id: I53c2c5600fb44620b629c01db85a67789594595f
Diffstat (limited to 'libunwindstack/tests/MemoryRangeTest.cpp')
-rw-r--r-- | libunwindstack/tests/MemoryRangeTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwindstack/tests/MemoryRangeTest.cpp b/libunwindstack/tests/MemoryRangeTest.cpp index 499536c0f..cb1a0c993 100644 --- a/libunwindstack/tests/MemoryRangeTest.cpp +++ b/libunwindstack/tests/MemoryRangeTest.cpp @@ -76,7 +76,7 @@ TEST(MemoryRangeTest, read_overflow) { ASSERT_FALSE(overflow->ReadFully(UINT64_MAX - 10, buffer.data(), 100)); } -TEST(MemoryRangeTest, ReadPartially) { +TEST(MemoryRangeTest, Read) { std::vector<uint8_t> src(4096); memset(src.data(), 0x4c, 4096); MemoryFake* memory_fake = new MemoryFake; @@ -85,7 +85,7 @@ TEST(MemoryRangeTest, ReadPartially) { MemoryRange range(process_memory, 1000, 1024, 0); std::vector<uint8_t> dst(1024); - ASSERT_EQ(4U, range.ReadPartially(1020, dst.data(), 1024)); + ASSERT_EQ(4U, range.Read(1020, dst.data(), 1024)); for (size_t i = 0; i < 4; i++) { ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; } |