/*
* Copyright (C) 2011-2014, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: t_resolver.c,v 1.3 2011/02/03 12:18:11 tbox Exp $ */
#include <config.h>
#include <ctype.h>
#include <stdlib.h>
#include <dns/dispatch.h>
#include <dns/resolver.h>
char *progname;
static void
setup_create_dispatch_v4(void)
{
4096, 100, 100, 100, 500, 0, 0,
&dispatch_v4));
}
static void
setup(void) {
/* 7 */ setup_create_dispatch_v4();
}
static void
teardown(void) {
}
static isc_result_t
0, /* unsigned int options, */
NULL, /* dns_dispatch_t *dispatchv6, */
return (result);
}
static void
}
static void
test_dns_resolver_create(void) {
"a resolver can be created successfully");
setup();
teardown();
}
static void
test_dns_resolver_gettimeout(void) {
int test_result;
unsigned int timeout;
"The default timeout is returned from _gettimeout()");
setup();
teardown();
}
static void
test_dns_resolver_settimeout(void) {
int test_result;
"_settimeout() can change the timeout to a non-default");
setup();
teardown();
}
static void
int test_result;
"_settimeout() can change the timeout back to a default value"
" by specifying 0 as the timeout.");
setup();
teardown();
}
static void
int test_result;
unsigned int timeout;
"_settimeout() cannot set the value larger than the maximum.");
setup();
teardown();
}
};
#ifdef WIN32
int
}
#endif