Home | History | Annotate | Download | only in google

Lines Matching refs:function

35 // Retrieves a return value for the current function.
38 /* Stores a value to be returned by the specified function later.
42 #define will_return(function, value) \
43 _will_return(#function, __FILE__, __LINE__, (void*)value, 1)
44 #define will_return_count(function, value, count) \
45 _will_return(#function, __FILE__, __LINE__, (void*)value, count)
47 /* Add a custom parameter checking function. If the event parameter is NULL
48 * the event structure is allocated internally by this function. If event
52 #define expect_check(function, parameter, check_function, check_data) \
53 _expect_check(#function, #parameter, __FILE__, __LINE__, check_function, \
59 #define expect_in_set(function, parameter, value_array) \
60 expect_in_set_count(function, parameter, value_array, 1)
61 #define expect_in_set_count(function, parameter, value_array, count) \
62 _expect_in_set(#function, #parameter, __FILE__, __LINE__, value_array, \
64 #define expect_not_in_set(function, parameter, value_array) \
65 expect_not_in_set_count(function, parameter, value_array, 1)
66 #define expect_not_in_set_count(function, parameter, value_array, count) \
68 #function, #parameter, __FILE__, __LINE__, value_array, \
76 #define expect_in_range(function, parameter, minimum, maximum) \
77 expect_in_range_count(function, parameter, minimum, maximum, 1)
78 #define expect_in_range_count(function, parameter, minimum, maximum, count) \
79 _expect_in_range(#function, #parameter, __FILE__, __LINE__, minimum, \
86 #define expect_not_in_range(function, parameter, minimum, maximum) \
87 expect_not_in_range_count(function, parameter, minimum, maximum, 1)
88 #define expect_not_in_range_count(function, parameter, minimum, maximum, \
90 _expect_not_in_range(#function, #parameter, __FILE__, __LINE__, \
96 #define expect_value(function, parameter, value) \
97 expect_value_count(function, parameter, value, 1)
98 #define expect_value_count(function, parameter, value, count) \
99 _expect_value(#function, #parameter, __FILE__, __LINE__, (void*)value, \
101 #define expect_not_value(function, parameter, value) \
102 expect_not_value_count(function, parameter, value, 1)
103 #define expect_not_value_count(function, parameter, value, count) \
104 _expect_not_value(#function, #parameter, __FILE__, __LINE__, \
111 #define expect_string(function, parameter, string) \
112 expect_string_count(function, parameter, string, 1)
113 #define expect_string_count(function, parameter, string, count) \
114 _expect_string(#function, #parameter, __FILE__, __LINE__, (void*)string, \
116 #define expect_not_string(function, parameter, string) \
117 expect_not_string_count(function, parameter, string, 1)
118 #define expect_not_string_count(function, parameter, string, count) \
119 _expect_not_string(#function, #parameter, __FILE__, __LINE__, \
126 #define expect_memory(function, parameter, memory, size) \
127 expect_memory_count(function, parameter, memory, size, 1)
128 #define expect_memory_count(function, parameter, memory, size, count) \
129 _expect_memory(#function, #parameter, __FILE__, __LINE__, (void*)memory, \
131 #define expect_not_memory(function, parameter, memory, size) \
132 expect_not_memory_count(function, parameter, memory, size, 1)
133 #define expect_not_memory_count(function, parameter, memory, size, count) \
134 _expect_not_memory(#function, #parameter, __FILE__, __LINE__, \
142 #define expect_any(function, parameter) \
143 expect_any_count(function, parameter, 1)
144 #define expect_any_count(function, parameter, count) \
145 _expect_any(#function, #parameter, __FILE__, __LINE__, count)
147 /* Determine whether a function parameter is correct. This ensures the next
211 /* Initialize an array of UnitTest structures with a setup function for a test
212 * and a teardown function. Either setup or teardown can be NULL.
280 // Function prototype for setup, test and teardown functions.
283 // Function that determines whether a function parameter value is correct.
286 // Type of the unit test function.
293 /* Stores a unit test function with its name and type.
294 * NOTE: Every setup function must be paired with a teardown function. It's
295 * possible to specify NULL function pointers.
299 UnitTestFunction function;
322 // Retrieves a value for the given function, as set by "will_return".
323 void* _mock(const char * const function, const char* const file,
327 const char* const function, const char* const parameter,
333 const char* const function, const char* const parameter,
337 const char* const function, const char* const parameter,
342 const char* const function, const char* const parameter,
346 const char* const function, const char* const parameter,
350 const char* const function, const char* const parameter,
354 const char* const function, const char* const parameter,
358 const char* const function, const char* const parameter,
362 const char* const function, const char* const parameter,
366 const char* const function, const char* const parameter,
370 const char* const function, const char* const parameter,
374 const char* const function, const char* const parameter,
424 const char * const function_name, const UnitTestFunction Function,