Commit e5a12428 authored by Hans Wennborg's avatar Hans Wennborg

allocator_shim_unittest.cc: Fix unused variable

Clang warns about this.

BUG=82385
R=rnk@chromium.org
TBR=primiano

Review URL: https://codereview.chromium.org/2258503002 .

Cr-Commit-Position: refs/heads/master@{#412551}
parent f98c6e47
......@@ -182,7 +182,6 @@ AllocatorDispatch g_mock_dispatch = {
};
TEST_F(AllocatorShimTest, InterceptLibcSymbols) {
const size_t kPageSize = base::GetPageSize();
InsertAllocatorDispatch(&g_mock_dispatch);
void* alloc_ptr = malloc(19);
......@@ -210,6 +209,7 @@ TEST_F(AllocatorShimTest, InterceptLibcSymbols) {
void* valloc_ptr = valloc(61);
ASSERT_NE(nullptr, valloc_ptr);
const size_t kPageSize = base::GetPageSize();
ASSERT_EQ(0u, reinterpret_cast<uintptr_t>(valloc_ptr) % kPageSize);
ASSERT_GE(aligned_allocs_intercepted_by_alignment[kPageSize], 1u);
ASSERT_GE(aligned_allocs_intercepted_by_size[61], 1u);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment