Home
last modified time | relevance | path

Searched refs:first_allocated_bytes (Results 1 – 3 of 3) sorted by relevance

/system/unwinding/libunwindstack/tests/
DTestUtils.cpp28 size_t first_allocated_bytes = 0; in TestCheckForLeaks() local
34 if (first_allocated_bytes == 0) { in TestCheckForLeaks()
35 first_allocated_bytes = allocated_bytes; in TestCheckForLeaks()
36 } else if (last_allocated_bytes > first_allocated_bytes) { in TestCheckForLeaks()
38 ASSERT_LE(last_allocated_bytes - first_allocated_bytes, kMaxAllowedLeakBytes) in TestCheckForLeaks()
DDexFileTest.cpp39 static void CheckForLeak(size_t loop, size_t* first_allocated_bytes, size_t* last_allocated_bytes) { in CheckForLeak() argument
41 if (*first_allocated_bytes == 0) { in CheckForLeak()
42 *first_allocated_bytes = allocated_bytes; in CheckForLeak()
43 } else if (*last_allocated_bytes > *first_allocated_bytes) { in CheckForLeak()
45 ASSERT_LE(*last_allocated_bytes - *first_allocated_bytes, kMaxAllowedLeakBytes) in CheckForLeak()
46 << "Failed in loop " << loop << " first_allocated_bytes " << *first_allocated_bytes in CheckForLeak()
59 size_t first_allocated_bytes = 0; in TEST() local
65 ASSERT_NO_FATAL_FAILURE(CheckForLeak(i, &first_allocated_bytes, &last_allocated_bytes)); in TEST()
74 size_t first_allocated_bytes = 0; in TEST() local
78 ASSERT_NO_FATAL_FAILURE(CheckForLeak(i, &first_allocated_bytes, &last_allocated_bytes)); in TEST()
/system/unwinding/libbacktrace/
Dbacktrace_test.cpp1862 size_t first_allocated_bytes = 0; in CheckForLeak() local
1872 if (first_allocated_bytes == 0) { in CheckForLeak()
1873 first_allocated_bytes = allocated_bytes; in CheckForLeak()
1874 } else if (last_allocated_bytes > first_allocated_bytes) { in CheckForLeak()
1876 ASSERT_LE(last_allocated_bytes - first_allocated_bytes, MAX_LEAK_BYTES); in CheckForLeak()