Searched refs:hook_type (Results 1 – 5 of 5) sorted by relevance
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
D | tcmalloc_unittest.cc | 726 #define MAKE_HOOK_CALLBACK(hook_type) \ argument 727 static int g_##hook_type##_calls = 0; \ 728 static void IncrementCallsTo##hook_type(...) { \ 729 g_##hook_type##_calls++; \ 731 static void Verify##hook_type##WasCalled() { \ 732 CHECK_GT(g_##hook_type##_calls, 0); \ 733 g_##hook_type##_calls = 0; /* reset for next call */ \ 735 static void Set##hook_type() { \ 736 CHECK(MallocHook::Add##hook_type( \ 737 (MallocHook::hook_type)&IncrementCallsTo##hook_type)); \ [all …]
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
D | tcmalloc_unittest.cc | 726 #define MAKE_HOOK_CALLBACK(hook_type) \ argument 727 static int g_##hook_type##_calls = 0; \ 728 static void IncrementCallsTo##hook_type(...) { \ 729 g_##hook_type##_calls++; \ 731 static void Verify##hook_type##WasCalled() { \ 732 CHECK_GT(g_##hook_type##_calls, 0); \ 733 g_##hook_type##_calls = 0; /* reset for next call */ \ 735 static void Set##hook_type() { \ 736 CHECK(MallocHook::Add##hook_type( \ 737 (MallocHook::hook_type)&IncrementCallsTo##hook_type)); \ [all …]
|
/external/chromium_org/third_party/libevent/ |
D | evrpc.c | 101 enum EVRPC_HOOK_TYPE hook_type, in evrpc_add_hook() argument 108 switch (hook_type) { in evrpc_add_hook() 116 assert(hook_type == EVRPC_INPUT || hook_type == EVRPC_OUTPUT); in evrpc_add_hook() 149 evrpc_remove_hook(void *vbase, enum EVRPC_HOOK_TYPE hook_type, void *handle) in evrpc_remove_hook() argument 153 switch (hook_type) { in evrpc_remove_hook() 161 assert(hook_type == EVRPC_INPUT || hook_type == EVRPC_OUTPUT); in evrpc_remove_hook()
|
D | evrpc.h | 466 enum EVRPC_HOOK_TYPE hook_type, 479 enum EVRPC_HOOK_TYPE hook_type,
|
/external/chromium_org/third_party/libevent/test/ |
D | regress_rpc.c | 415 const char *hook_type = arg; in rpc_hook_add_header() local 416 if (strcmp("input", hook_type) == 0) in rpc_hook_add_header() 417 evhttp_add_header(req->input_headers, "X-Hook", hook_type); in rpc_hook_add_header() 419 evhttp_add_header(req->output_headers, "X-Hook", hook_type); in rpc_hook_add_header()
|