| Index: base/allocator/allocator_shim_unittest.cc
|
| diff --git a/base/allocator/allocator_shim_unittest.cc b/base/allocator/allocator_shim_unittest.cc
|
| index e27a84eef53652370fc3277d40fd53d65e8075da..d67183ea943b9f402d7e2bd0da25bfc853952165 100644
|
| --- a/base/allocator/allocator_shim_unittest.cc
|
| +++ b/base/allocator/allocator_shim_unittest.cc
|
| @@ -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);
|
|
|