Searched refs:first_allocated_bytes (Results 1 – 2 of 2) sorted by relevance
33 size_t first_allocated_bytes = 0; in TestCheckForLeaks() local39 if (first_allocated_bytes == 0) { in TestCheckForLeaks()40 first_allocated_bytes = allocated_bytes; in TestCheckForLeaks()41 } else if (last_allocated_bytes > first_allocated_bytes) { in TestCheckForLeaks()43 ASSERT_LE(last_allocated_bytes - first_allocated_bytes, kMaxAllowedLeakBytes) in TestCheckForLeaks()
40 static void CheckForLeak(size_t loop, size_t* first_allocated_bytes, size_t* last_allocated_bytes) { in CheckForLeak() argument42 if (*first_allocated_bytes == 0) { in CheckForLeak()43 *first_allocated_bytes = allocated_bytes; in CheckForLeak()44 } else if (*last_allocated_bytes > *first_allocated_bytes) { in CheckForLeak()46 ASSERT_LE(*last_allocated_bytes - *first_allocated_bytes, kMaxAllowedLeakBytes) in CheckForLeak()47 << "Failed in loop " << loop << " first_allocated_bytes " << *first_allocated_bytes in CheckForLeak()64 size_t first_allocated_bytes = 0; in TEST() local70 ASSERT_NO_FATAL_FAILURE(CheckForLeak(i, &first_allocated_bytes, &last_allocated_bytes)); in TEST()83 size_t first_allocated_bytes = 0; in TEST() local87 ASSERT_NO_FATAL_FAILURE(CheckForLeak(i, &first_allocated_bytes, &last_allocated_bytes)); in TEST()