Lines Matching refs:fixture_name
212 #define FIXTURE(fixture_name) \ argument
214 _register_##fixture_name##_data(void) \
218 FIXTURE_DATA(fixture_name)
239 #define FIXTURE_SETUP(fixture_name) \ argument
240 void fixture_name##_setup( \
242 FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)
259 #define FIXTURE_TEARDOWN(fixture_name) \ argument
260 void fixture_name##_teardown( \
262 FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)
282 #define TEST_F(fixture_name, test_name) \ argument
283 __TEST_F_IMPL(fixture_name, test_name, -1)
285 #define TEST_F_SIGNAL(fixture_name, test_name, signal) \ argument
286 __TEST_F_IMPL(fixture_name, test_name, signal)
288 #define __TEST_F_IMPL(fixture_name, test_name, signal) \ argument
289 static void fixture_name##_##test_name( \
291 FIXTURE_DATA(fixture_name) *self); \
292 static inline void wrapper_##fixture_name##_##test_name( \
296 FIXTURE_DATA(fixture_name) self; \
297 memset(&self, 0, sizeof(FIXTURE_DATA(fixture_name))); \
298 fixture_name##_setup(_metadata, &self); \
302 fixture_name##_##test_name(_metadata, &self); \
303 fixture_name##_teardown(_metadata, &self); \
306 _##fixture_name##_##test_name##_object = { \
307 name: #fixture_name "." #test_name, \
308 fn: &wrapper_##fixture_name##_##test_name, \
312 _register_##fixture_name##_##test_name(void) \
314 __register_test(&_##fixture_name##_##test_name##_object); \
316 static void fixture_name##_##test_name( \
318 FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)