static void test_sanity_checker_fixture_setup (TestSanityCheckerFixture * fixture, gconstpointer data) { fixture->output = g_string_new (""); fixture->interceptor = gum_interceptor_obtain (); gum_interceptor_ignore_other_threads (fixture->interceptor); fixture->checker = gum_sanity_checker_new_with_heap_apis ( test_util_heap_apis (), test_sanity_checker_fixture_do_output, fixture); }
GumSanityChecker * gum_sanity_checker_new (GumSanityOutputFunc func, gpointer user_data) { GumHeapApiList * apis; GumSanityChecker * checker; apis = gum_process_find_heap_apis (); checker = gum_sanity_checker_new_with_heap_apis (apis, func, user_data); gum_heap_api_list_free (apis); return checker; }