Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1014)

Unified Diff: base/allocator/allocator_shim_unittest.cc

Issue 2258503002: allocator_shim_unittest.cc: Fix unused variable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698