zenilib: zenilib/jni/external/sdl/SDL/SDL_test_fuzzer.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_test_fuzzer.h
Go to the documentation of this file.
1 /*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20 */
21
30 /*
31
32 Data generators for fuzzing test data in a reproducible way.
33
34 */
35
36 #ifndef _SDL_test_fuzzer_h
37 #define _SDL_test_fuzzer_h
38
39 #include "begin_code.h"
40 /* Set up for C function definitions, even when using C++ */
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45
46 /*
47 Based on GSOC code by Markus Kauppila <markus.kauppila@gmail.com>
48 */
49
50
63 void SDLTest_FuzzerInit(Uint64 execKey);
64
65
71 Uint8 SDLTest_RandomUint8();
72
78 Sint8 SDLTest_RandomSint8();
79
80
86 Uint16 SDLTest_RandomUint16();
87
93 Sint16 SDLTest_RandomSint16();
94
95
101 Sint32 SDLTest_RandomSint32();
102
103
109 Uint32 SDLTest_RandomUint32();
110
116 Uint64 SDLTest_RandomUint64();
117
118
124 Sint64 SDLTest_RandomSint64();
125
129 float SDLTest_RandomUnitFloat();
130
134 double SDLTest_RandomUnitDouble();
135
140 float SDLTest_RandomFloat();
141
146 double SDLTest_RandomDouble();
147
167 Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain);
168
188 Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain);
189
209 Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain);
210
230 Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain);
231
251 Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain);
252
253
273 Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain);
274
294 Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain);
295
315 Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain);
316
317
329 Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max);
330
331
341 char * SDLTest_RandomAsciiString();
342
343
355 char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength);
356
357
369 char * SDLTest_RandomAsciiStringOfSize(int size);
370
374 int SDLTest_GetFuzzerInvocationCount();
375
376 /* Ends C function definitions when using C++ */
377 #ifdef __cplusplus
378 }
379 #endif
380 #include "close_code.h"
381
382 #endif /* _SDL_test_fuzzer_h */
383
384 /* vi: set ts=4 sw=4 expandtab: */
SDLTest_RandomUint64BoundaryValue
Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
Definition: SDL_test_fuzzer.c:297
Sint32
int32_t Sint32
A signed 32-bit integer type.
Definition: SDL_stdinc.h:141
SDLTest_RandomIntegerInRange
Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max)
Definition: SDL_test_fuzzer.c:155
SDLTest_RandomSint32
Sint32 SDLTest_RandomSint32()
Definition: SDL_test_fuzzer.c:109
SDL_bool
SDL_bool
Definition: SDL_stdinc.h:116
SDLTest_RandomSint16
Sint16 SDLTest_RandomSint16()
Definition: SDL_test_fuzzer.c:101
SDLTest_RandomUint32BoundaryValue
Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain)
Definition: SDL_test_fuzzer.c:283
begin_code.h
SDLTest_RandomAsciiString
char * SDLTest_RandomAsciiString()
Definition: SDL_test_fuzzer.c:478
Uint32
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
SDLTest_RandomUnitDouble
double SDLTest_RandomUnitDouble()
Definition: SDL_test_fuzzer.c:456
SDLTest_RandomUint8
Uint8 SDLTest_RandomUint8()
Definition: SDL_test_fuzzer.c:77
SDLTest_RandomSint8
Sint8 SDLTest_RandomSint8()
Definition: SDL_test_fuzzer.c:85
SDLTest_RandomAsciiStringOfSize
char * SDLTest_RandomAsciiStringOfSize(int size)
Definition: SDL_test_fuzzer.c:499
SDLTest_RandomUint32
Uint32 SDLTest_RandomUint32()
Definition: SDL_test_fuzzer.c:117
close_code.h
SDLTest_RandomAsciiStringWithMaximumLength
char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength)
Definition: SDL_test_fuzzer.c:484
SDLTest_RandomUint16BoundaryValue
Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain)
Definition: SDL_test_fuzzer.c:273
SDLTest_RandomSint32BoundaryValue
Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain)
Definition: SDL_test_fuzzer.c:417
maxLength
GLuint GLsizei maxLength
Definition: glew.h:1811
Uint64
uint64_t Uint64
An unsigned 64-bit integer type.
Definition: SDL_stdinc.h:154
SDLTest_RandomSint16BoundaryValue
Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain)
Definition: SDL_test_fuzzer.c:406
SDLTest_RandomUint16
Uint16 SDLTest_RandomUint16()
Definition: SDL_test_fuzzer.c:93
SDLTest_RandomSint64
Sint64 SDLTest_RandomSint64()
Definition: SDL_test_fuzzer.c:139
SDLTest_RandomSint8BoundaryValue
Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain)
Definition: SDL_test_fuzzer.c:395
SDLTest_GetFuzzerInvocationCount
int SDLTest_GetFuzzerInvocationCount()
Definition: SDL_test_fuzzer.c:71
SDLTest_RandomSint64BoundaryValue
Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
Definition: SDL_test_fuzzer.c:433
Uint8
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129
SDLTest_RandomUint64
Uint64 SDLTest_RandomUint64()
Definition: SDL_test_fuzzer.c:125
SDLTest_RandomFloat
float SDLTest_RandomFloat()
Definition: SDL_test_fuzzer.c:450
Sint16
int16_t Sint16
A signed 16-bit integer type.
Definition: SDL_stdinc.h:133
SDLTest_RandomUnitFloat
float SDLTest_RandomUnitFloat()
Definition: SDL_test_fuzzer.c:444
Uint16
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
SDLTest_FuzzerInit
void SDLTest_FuzzerInit(Uint64 execKey)
Definition: SDL_test_fuzzer.c:61
min
#define min(x, y)
Definition: os.h:75
SDLTest_RandomUint8BoundaryValue
Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain)
Definition: SDL_test_fuzzer.c:263
max
#define max(x, y)
Definition: os.h:79
Sint64
int64_t Sint64
A signed 64-bit integer type.
Definition: SDL_stdinc.h:150
Sint8
int8_t Sint8
A signed 8-bit integer type.
Definition: SDL_stdinc.h:125
SDLTest_RandomDouble
double SDLTest_RandomDouble()
Definition: SDL_test_fuzzer.c:462
size
GLsizei size
Definition: gl2ext.h:1467