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/MemoryRemoteTest.cpp | |
parent | ef35aa5d40b6404baf702a58527f1cd3a9f42f19 (diff) |
unwindstack: rename Memory::ReadPartially to Read.
Test: mma
Test: treehugger
Change-Id: I53c2c5600fb44620b629c01db85a67789594595f
Diffstat (limited to 'libunwindstack/tests/MemoryRemoteTest.cpp')
-rw-r--r-- | libunwindstack/tests/MemoryRemoteTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libunwindstack/tests/MemoryRemoteTest.cpp b/libunwindstack/tests/MemoryRemoteTest.cpp index 73cace319..8aa4c3f1b 100644 --- a/libunwindstack/tests/MemoryRemoteTest.cpp +++ b/libunwindstack/tests/MemoryRemoteTest.cpp @@ -79,7 +79,7 @@ TEST_F(MemoryRemoteTest, read) { ASSERT_TRUE(Detach(pid)); } -TEST_F(MemoryRemoteTest, ReadPartially) { +TEST_F(MemoryRemoteTest, Read) { char* mapping = static_cast<char*>( mmap(nullptr, 2 * getpagesize(), PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); @@ -102,8 +102,8 @@ TEST_F(MemoryRemoteTest, ReadPartially) { MemoryRemote remote(pid); std::vector<uint8_t> dst(4096); - ASSERT_EQ(1024U, remote.ReadPartially(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), - dst.data(), 4096)); + ASSERT_EQ(1024U, remote.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), + dst.data(), 4096)); for (size_t i = 0; i < 1024; i++) { ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; } @@ -211,7 +211,7 @@ TEST_F(MemoryRemoteTest, read_hole) { MemoryRemote remote(pid); std::vector<uint8_t> dst(4096 * 3, 0xCC); - ASSERT_EQ(4096U, remote.ReadPartially(reinterpret_cast<uintptr_t>(mapping), dst.data(), 4096 * 3)); + ASSERT_EQ(4096U, remote.Read(reinterpret_cast<uintptr_t>(mapping), dst.data(), 4096 * 3)); for (size_t i = 0; i < 4096; ++i) { ASSERT_EQ(0xFF, dst[i]); } |