Home | History | Annotate | Download | only in google

Lines Matching refs:parameter

39  * The count parameter returns the number of times the value should be returned
47 /* Add a custom parameter checking function. If the event parameter is NULL
49 * parameter is provided it must be allocated on the heap and doesn't need to
52 #define expect_check(function, parameter, check_function, check_data) \
53 _expect_check(#function, #parameter, __FILE__, __LINE__, check_function, \
56 /* Add an event to check a parameter, using check_expected(), against a set of
57 * values. See will_return() for a description of the count parameter.
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, \
72 /* Add an event to check a parameter, using check_expected(), against a
74 * See will_return() for a description of the count parameter.
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, \
82 /* Add an event to check a parameter, using check_expected(), against a
84 * See will_return() for a description of the count parameter.
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__, \
93 /* Add an event to check whether a parameter, using check_expected(), is or
94 * isn't a value. See will_return() for a description of the count parameter.
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__, \
107 /* Add an event to check whether a parameter, using check_expected(),
109 * parameter.
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__, \
122 /* Add an event to check whether a parameter, using check_expected() does or
124 * the count parameter.
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__, \
138 /* Add an event to allow any value for a parameter checked using
140 * parameter.
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
150 #define check_expected(parameter) \
151 _check_expected(__func__, #parameter, __FILE__, __LINE__, (void*)parameter)
283 // Function that determines whether a function parameter value is correct.
310 // Event that's called to check a parameter value.
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,