#include <criterion/criterion.h>#include "dnscache.h"#include "apphook.h"#include "timeutils/cache.h"#include "timeutils/misc.h"#include "libtest/fake-time.h"#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <string.h>#include <stdio.h>#include <unistd.h>#include <stdlib.h>
Functions | |
| void | assert_no_forget (DNSCache *cache, gint cache_size) |
| void | assert_forget_negative (DNSCache *cache, gint cache_size) |
| void | assert_forget_all (DNSCache *cache, gint cache_size) |
| TestSuite (dnscache,.init=app_startup,.fini=app_shutdown) | |
| Test (dnscache, test_expiration) | |
| Test (dnscache, test_run_benchmark) | |
| Test (dnscache, test_lru_lists) | |
| void assert_forget_all | ( | DNSCache * | cache, |
| gint | cache_size | ||
| ) |
| void assert_forget_negative | ( | DNSCache * | cache, |
| gint | cache_size | ||
| ) |
| void assert_no_forget | ( | DNSCache * | cache, |
| gint | cache_size | ||
| ) |
| Test | ( | dnscache | , |
| test_expiration | |||
| ) |
| Test | ( | dnscache | , |
| test_lru_lists | |||
| ) |
| Test | ( | dnscache | , |
| test_run_benchmark | |||
| ) |
| TestSuite | ( | dnscache | , |
| . | init = app_startup, |
||
| . | fini = app_shutdown |
||
| ) |