blob: 828f3f422287cded05d897fd9b7f6355bab7a348 [file] [log] [blame]
Laurence Lundblade52aefa62024-06-13 13:23:17 -07001/* ==========================================================================
2 * Copyright (c) 2016-2018, The Linux Foundation.
3 * Copyright (c) 2018, Laurence Lundblade.
4 * Copyright (c) 2021, Arm Limited.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are
9 * met:
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above
13 * copyright notice, this list of conditions and the following
14 * disclaimer in the documentation and/or other materials provided
15 * with the distribution.
16 * * Neither the name of The Linux Foundation nor the names of its
17 * contributors, nor the name "Laurence Lundblade" may be used to
18 * endorse or promote products derived from this software without
19 * specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
22 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
28 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
31 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 * ========================================================================= */
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053033
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080034#ifndef UsefulBuf_UsefulBuf_Tests_h
35#define UsefulBuf_UsefulBuf_Tests_h
36
Laurence Lundblade7566b9f2018-10-12 09:13:32 +080037const char * UOBTest_NonAdversarial(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080038
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053039const char * TestBasicSanity(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080040
Laurence Lundblade7566b9f2018-10-12 09:13:32 +080041const char * UOBTest_BoundaryConditionsTest(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080042
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053043const char * UBMacroConversionsTest(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080044
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053045const char * UBUtilTests(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080046
Laurence Lundblade7566b9f2018-10-12 09:13:32 +080047const char * UIBTest_IntegerFormat(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080048
Máté Tóth-Pálef5f07a2021-09-17 19:31:37 +020049#ifndef USEFULBUF_DISABLE_ALL_FLOAT
Laurence Lundblade7566b9f2018-10-12 09:13:32 +080050const char * UBUTest_CopyUtil(void);
Laurence Lundblade52aefa62024-06-13 13:23:17 -070051#endif /* ! USEFULBUF_DISABLE_ALL_FLOAT */
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080052
Laurence Lundbladeb24faef2022-04-26 11:03:08 -060053const char * UBAdvanceTest(void);
54
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080055#endif