Home
last modified time | relevance | path

Searched refs:last_allocated_bytes (Results 1 – 2 of 2) sorted by relevance

/system/unwinding/libunwindstack/tests/
DTestUtils.cpp34 size_t last_allocated_bytes = 0; in TestCheckForLeaks() local
41 } else if (last_allocated_bytes > first_allocated_bytes) { in TestCheckForLeaks()
43 ASSERT_LE(last_allocated_bytes - first_allocated_bytes, kMaxAllowedLeakBytes) in TestCheckForLeaks()
46 last_allocated_bytes = allocated_bytes; in TestCheckForLeaks()
DDexFileTest.cpp40 static void CheckForLeak(size_t loop, size_t* first_allocated_bytes, size_t* last_allocated_bytes) { in CheckForLeak() argument
44 } else if (*last_allocated_bytes > *first_allocated_bytes) { in CheckForLeak()
46 ASSERT_LE(*last_allocated_bytes - *first_allocated_bytes, kMaxAllowedLeakBytes) in CheckForLeak()
48 << " last_allocated_bytes " << *last_allocated_bytes; in CheckForLeak()
50 *last_allocated_bytes = allocated_bytes; in CheckForLeak()
65 size_t last_allocated_bytes = 0; in TEST() local
70 ASSERT_NO_FATAL_FAILURE(CheckForLeak(i, &first_allocated_bytes, &last_allocated_bytes)); in TEST()
84 size_t last_allocated_bytes = 0; in TEST() local
87 ASSERT_NO_FATAL_FAILURE(CheckForLeak(i, &first_allocated_bytes, &last_allocated_bytes)); in TEST()