Home
last modified time | relevance | path

Searched refs:hook_type (Results 1 – 5 of 5) sorted by relevance

/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
Dtcmalloc_unittest.cc726 #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/
Dtcmalloc_unittest.cc726 #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/
Devrpc.c101 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()
Devrpc.h466 enum EVRPC_HOOK_TYPE hook_type,
479 enum EVRPC_HOOK_TYPE hook_type,
/external/chromium_org/third_party/libevent/test/
Dregress_rpc.c415 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()