blob: 235358e82c8f61c73e82de8353f069a51819f4ce [file] [log] [blame]
Laurence Lundblade2ded3d92018-10-09 21:36:11 +08001/*==============================================================================
Laurence Lundbladed92a6162018-11-01 11:38:35 +07002 Copyright (c) 2016-2018, The Linux Foundation.
3 Copyright (c) 2018, Laurence Lundblade.
Máté Tóth-Pálef5f07a2021-09-17 19:31:37 +02004 Copyright (c) 2021, Arm Limited.
Laurence Lundbladed92a6162018-11-01 11:38:35 +07005 All rights reserved.
Laurence Lundblade3aee3a32018-12-17 16:17:45 -08006
Laurence Lundblade0dbc9172018-11-01 14:17:21 +07007Redistribution and use in source and binary forms, with or without
8modification, are permitted provided that the following conditions are
9met:
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.
Laurence Lundblade3aee3a32018-12-17 16:17:45 -080020
Laurence Lundblade0dbc9172018-11-01 14:17:21 +070021THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
22WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
24ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
28BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
31IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053032 ==============================================================================*/
33
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);
Máté Tóth-Pálef5f07a2021-09-17 19:31:37 +020051#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