dispatch_test.c File Reference

#include <config.h>
#include <atf-c.h>
#include <unistd.h>
#include <isc/buffer.h>
#include <isc/socket.h>
#include <isc/task.h>
#include <isc/timer.h>
#include <dns/dispatch.h>
#include <dns/name.h>
#include <dns/view.h>
#include "dnstest.h"

Go to the source code of this file.

Functions

static isc_result_t make_dispatchset (unsigned int ndisps)
static void teardown (void)
 ATF_TC (dispatchset_create)
 ATF_TC_HEAD (dispatchset_create, tc)
 ATF_TC_BODY (dispatchset_create, tc)
 ATF_TC (dispatchset_get)
 ATF_TC_HEAD (dispatchset_get, tc)
 ATF_TC_BODY (dispatchset_get, tc)
 ATF_TP_ADD_TCS (tp)

Variables

dns_dispatchmgr_tdispatchmgr = NULL
dns_dispatchset_tdset = NULL


Detailed Description

Definition in file dispatch_test.c.


Function Documentation

static isc_result_t make_dispatchset ( unsigned int  ndisps  )  [static]

Definition at line 42 of file dispatch_test.c.

References dns_dispatch_detach(), dns_dispatch_getudp(), DNS_DISPATCHATTR_IPV4, DNS_DISPATCHATTR_UDP, dns_dispatchmgr_create(), dns_dispatchset_create(), ISC_R_SUCCESS, isc_sockaddr_any(), mctx, socketmgr, and taskmgr.

Referenced by ATF_TC_BODY().

static void teardown ( void   )  [static]

Definition at line 68 of file dispatch_test.c.

References dns_dispatchmgr_destroy(), and dns_dispatchset_destroy().

Referenced by ATF_TC_BODY().

ATF_TC ( dispatchset_create   ) 

ATF_TC_HEAD ( dispatchset_create  ,
tc   
)

Definition at line 79 of file dispatch_test.c.

ATF_TC_BODY ( dispatchset_create  ,
tc   
)

Definition at line 82 of file dispatch_test.c.

References dns_test_begin(), dns_test_end(), ISC_R_SUCCESS, ISC_TRUE, make_dispatchset(), teardown(), and UNUSED.

ATF_TC ( dispatchset_get   ) 

ATF_TC_HEAD ( dispatchset_get  ,
tc   
)

Definition at line 104 of file dispatch_test.c.

ATF_TC_BODY ( dispatchset_get  ,
tc   
)

Definition at line 107 of file dispatch_test.c.

References dns_dispatchset_get(), dns_test_begin(), dns_test_end(), ISC_R_SUCCESS, ISC_TRUE, make_dispatchset(), teardown(), and UNUSED.

ATF_TP_ADD_TCS ( tp   ) 

Definition at line 155 of file dispatch_test.c.


Variable Documentation

dns_dispatchmgr_t* dispatchmgr = NULL

Definition at line 38 of file dispatch_test.c.

Referenced by ISC_LIST().

dns_dispatchset_t* dset = NULL

Definition at line 39 of file dispatch_test.c.

Referenced by dns_dispatchset_create(), and dns_dispatchset_destroy().


Generated on Tue Apr 28 17:41:13 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha