blob: 7b0eab113f5561bda4724e23b37b61a951fcd602 [file] [log] [blame]
Laurence Lundblade2ded3d92018-10-09 21:36:11 +08001/*==============================================================================
2Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
3
4Redistribution and use in source and binary forms, with or without
5modification, are permitted provided that the following conditions are
6met:
7 * Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above
10 copyright notice, this list of conditions and the following
11 disclaimer in the documentation and/or other materials provided
12 with the distribution.
13 * Neither the name of The Linux Foundation nor the names of its
14 contributors may be used to endorse or promote products derived
15 from this software without specific prior written permission.
16
17THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
18WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
20ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
21BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28==============================================================================*/
29
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053030/*==============================================================================
31 Modifications beyond the version released on CAF are under the MIT license:
32
33 Copyright 2018 Laurence Lundblade
34
35 Permission is hereby granted, free of charge, to any person obtaining
36 a copy of this software and associated documentation files (the
37 "Software"), to deal in the Software without restriction, including
38 without limitation the rights to use, copy, modify, merge, publish,
39 distribute, sublicense, and/or sell copies of the Software, and to
40 permit persons to whom the Software is furnished to do so, subject to
41 the following conditions:
42
43 The above copyright notice and this permission notice shall be included
44 in all copies or substantial portions of the Software.
45
46 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
47 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
48 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
49 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
50 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
51 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
52 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
53 SOFTWARE.
54 ==============================================================================*/
55
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080056#ifndef UsefulBuf_UsefulBuf_Tests_h
57#define UsefulBuf_UsefulBuf_Tests_h
58
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053059const char * NonAdversarialUOBTest(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080060
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053061const char * TestBasicSanity(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080062
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053063const char * BoundaryConditionsTest(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080064
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053065const char * UBMacroConversionsTest(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080066
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053067const char * UBUtilTests(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080068
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053069const char * UBIntegerFormatTests(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080070
Laurence Lundbladedc6e28e2018-10-11 19:19:27 +053071const char * UBCopyUtilTest(void);
Laurence Lundblade2ded3d92018-10-09 21:36:11 +080072
73#endif