tinycrypt/tests/harness.h (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#ifndef TCT_TEST_HARNESS_H
#define TCT_TEST_HARNESS_H
#include <stdbool.h>
#include <stddef.h>
#include <sys/time.h>
struct tct_testing_ctx
{
size_t tests_passed;
size_t tests_failed;
struct timeval start;
struct timeval end;
};
void tct_testing_init_ctx (struct tct_testing_ctx *ctx);
void tct_testing_assert (struct tct_testing_ctx *ctx, bool value,
const char *name);
void tct_testing_start (struct tct_testing_ctx *ctx);
void tct_testing_end (struct tct_testing_ctx *ctx);
#endif
|