test: improve nts_ntp_client unit test
This commit is contained in:
parent
3096926547
commit
cc007ad93b
1 changed files with 3 additions and 2 deletions
|
@ -27,10 +27,11 @@
|
||||||
#include "ntp.h"
|
#include "ntp.h"
|
||||||
#include "nts_ke_client.h"
|
#include "nts_ke_client.h"
|
||||||
|
|
||||||
#define NKC_CreateInstance(address, name) NULL
|
#define NKC_CreateInstance(address, name) Malloc(1)
|
||||||
#define NKC_DestroyInstance(inst)
|
#define NKC_DestroyInstance(inst) Free(inst)
|
||||||
#define NKC_Start(inst) (random() % 2)
|
#define NKC_Start(inst) (random() % 2)
|
||||||
#define NKC_IsActive(inst) (random() % 2)
|
#define NKC_IsActive(inst) (random() % 2)
|
||||||
|
#define NKC_GetRetryFactor(inst) (1)
|
||||||
|
|
||||||
static int get_nts_data(NKC_Instance inst, NKE_Context *context,
|
static int get_nts_data(NKC_Instance inst, NKE_Context *context,
|
||||||
NKE_Cookie *cookies, int *num_cookies, int max_cookies,
|
NKE_Cookie *cookies, int *num_cookies, int max_cookies,
|
||||||
|
|
Loading…
Reference in a new issue