mirror of https://github.com/getdnsapi/getdns.git
move to enum types leftovers in tests
This commit is contained in:
parent
d118ccc31e
commit
db2556fb5d
|
@ -249,7 +249,7 @@ void assert_ptr_in_answer(struct extracted_response *ex_response)
|
|||
* response that is returned.
|
||||
*/
|
||||
void callbackfn(struct getdns_context *context,
|
||||
uint16_t callback_type,
|
||||
getdns_callback_type_t callback_type,
|
||||
struct getdns_dict *response,
|
||||
void *userarg,
|
||||
getdns_transaction_t transaction_id)
|
||||
|
@ -293,7 +293,7 @@ void callbackfn(struct getdns_context *context,
|
|||
* response that is returned.
|
||||
*/
|
||||
void update_callbackfn(struct getdns_context *context,
|
||||
uint16_t changed_item)
|
||||
getdns_context_code_t changed_item)
|
||||
{
|
||||
|
||||
ck_assert_msg(changed_item == expected_changed_item,
|
||||
|
|
|
@ -164,7 +164,7 @@ void* run_server(void* data) {
|
|||
}
|
||||
|
||||
void timeout_3_cb(struct getdns_context *context,
|
||||
uint16_t callback_type,
|
||||
getdns_callback_type_t callback_type,
|
||||
struct getdns_dict * response,
|
||||
void *userarg, getdns_transaction_t transaction_id) {
|
||||
timeout_thread_data *tdata = (timeout_thread_data*)userarg;
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* expect: GETDNS_RETURN_INVALID_PARAMETER
|
||||
*/
|
||||
struct getdns_context *context = NULL;
|
||||
struct event_base *event_base = NULL;
|
||||
void* eventloop = NULL;
|
||||
getdns_transaction_t transaction_id = 0;
|
||||
|
||||
CONTEXT_CREATE(TRUE);
|
||||
|
@ -53,7 +53,7 @@
|
|||
* expect: GETDNS_RETURN_BAD_DOMAIN_NAME
|
||||
*/
|
||||
struct getdns_context *context = NULL;
|
||||
struct event_base *event_base = NULL;
|
||||
void* eventloop = NULL;
|
||||
getdns_transaction_t transaction_id = 0;
|
||||
const char *name = "oh.my.gosh.and.for.petes.sake.are.you.fricking.crazy.man.because.this.spectacular.and.elaborately.thought.out.domain.name.of.very.significant.length.is.just.too.darn.long.because.you.know.the rfc.states.that.two.hundred.fifty.five.characters.is.the.max.com";
|
||||
|
||||
|
@ -76,7 +76,7 @@
|
|||
* expect: GETDNS_RETURN_BAD_DOMAIN_NAME
|
||||
*/
|
||||
struct getdns_context *context = NULL;
|
||||
struct event_base *event_base = NULL;
|
||||
void* eventloop = NULL;
|
||||
getdns_transaction_t transaction_id = 0;
|
||||
const char *name = "this.domain.hasalabelwhichexceedsthemaximumdnslabelsizeofsixtythreecharacters.com";
|
||||
|
||||
|
@ -99,7 +99,7 @@
|
|||
* expect: GETDNS_RETURN_INVALID_PARAMETER
|
||||
*/
|
||||
struct getdns_context *context = NULL;
|
||||
struct event_base *event_base = NULL;
|
||||
void* eventloop = NULL;
|
||||
getdns_transaction_t transaction_id = 0;
|
||||
|
||||
CONTEXT_CREATE(TRUE);
|
||||
|
@ -126,7 +126,7 @@
|
|||
*/
|
||||
void verify_getdns_service_7(struct extracted_response *ex_response);
|
||||
struct getdns_context *context = NULL; \
|
||||
struct event_base *event_base = NULL; \
|
||||
void* eventloop = NULL; \
|
||||
getdns_transaction_t transaction_id = 0;
|
||||
|
||||
CONTEXT_CREATE(TRUE);
|
||||
|
@ -175,4 +175,4 @@
|
|||
return s;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue