summaryrefslogtreecommitdiffhomepage
path: root/test/nxt_lib_unit_test.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-30 00:31:02 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-30 00:31:02 +0300
commitcdc7e4479ff5aa08df0857a13a7acd7a00b79c89 (patch)
treea57bf9251fc79d9ef7bd3d33b1d05f3813dc3d4a /test/nxt_lib_unit_test.h
parent92f3b852981c739a2e6ff6d50dc646fe86031b27 (diff)
downloadunit-cdc7e4479ff5aa08df0857a13a7acd7a00b79c89.tar.gz
unit-cdc7e4479ff5aa08df0857a13a7acd7a00b79c89.tar.bz2
Lib unit tests have been renamed to tests.
Diffstat (limited to 'test/nxt_lib_unit_test.h')
-rw-r--r--test/nxt_lib_unit_test.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/test/nxt_lib_unit_test.h b/test/nxt_lib_unit_test.h
deleted file mode 100644
index d215a009..00000000
--- a/test/nxt_lib_unit_test.h
+++ /dev/null
@@ -1,71 +0,0 @@
-
-/*
- * Copyright (C) Igor Sysoev
- * Copyright (C) NGINX, Inc.
- */
-
-#ifndef _NXT_LIB_UNIT_TEST_H_INCLUDED_
-#define _NXT_LIB_UNIT_TEST_H_INCLUDED_
-
-
-#define NXT_LIB_UNIT_TEST_STATIC
-
-
-typedef nxt_bool_t (*nxt_msec_less_t)(nxt_msec_t first, nxt_msec_t second);
-
-
-#define NXT_RBT_NODES 1500
-
-
-#if (__i386__ || __i386 || __amd64__ || __amd64)
-#if (NXT_GCC || NXT_CLANG)
-
-#define NXT_UNIT_TEST_RTDTSC 1
-
-nxt_inline uint64_t
-nxt_rdtsc(void)
-{
- uint32_t eax, edx;
-
- __asm__ volatile ("rdtsc" : "=a" (eax), "=d" (edx));
-
- return ((uint64_t) edx << 32) | eax;
-}
-
-#endif
-#endif
-
-
-nxt_int_t nxt_term_parse_unit_test(nxt_thread_t *thr);
-nxt_int_t nxt_msec_diff_unit_test(nxt_thread_t *thr, nxt_msec_less_t);
-
-nxt_int_t nxt_rbtree_unit_test(nxt_thread_t *thr, nxt_uint_t n);
-nxt_int_t nxt_rbtree1_unit_test(nxt_thread_t *thr, nxt_uint_t n);
-
-#if (NXT_UNIT_TEST_RTDTSC)
-
-nxt_int_t nxt_rbtree_mb_start(nxt_thread_t *thr);
-void nxt_rbtree_mb_insert(nxt_thread_t *thr);
-void nxt_rbtree_mb_delete(nxt_thread_t *thr);
-
-nxt_int_t nxt_rbtree1_mb_start(nxt_thread_t *thr);
-void nxt_rbtree1_mb_insert(nxt_thread_t *thr);
-void nxt_rbtree1_mb_delete(nxt_thread_t *thr);
-
-#endif
-
-nxt_int_t nxt_mp_unit_test(nxt_thread_t *thr, nxt_uint_t runs,
- nxt_uint_t nblocks, size_t max_size);
-nxt_int_t nxt_mem_zone_unit_test(nxt_thread_t *thr, nxt_uint_t runs,
- nxt_uint_t nblocks, size_t max_size);
-nxt_int_t nxt_lvlhsh_unit_test(nxt_thread_t *thr, nxt_uint_t n,
- nxt_bool_t use_pool);
-
-nxt_int_t nxt_gmtime_unit_test(nxt_thread_t *thr);
-nxt_int_t nxt_sprintf_unit_test(nxt_thread_t *thr);
-nxt_int_t nxt_malloc_unit_test(nxt_thread_t *thr);
-nxt_int_t nxt_utf8_unit_test(nxt_thread_t *thr);
-nxt_int_t nxt_http_parse_unit_test(nxt_thread_t *thr);
-
-
-#endif /* _NXT_LIB_UNIT_TEST_H_INCLUDED_ */