SDL_test_fuzzer.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef _SDL_test_fuzzer_h
  2. #define _SDL_test_fuzzer_h
  3. #include "begin_code.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. void SDLTest_FuzzerInit(Uint64 execKey);
  8. Uint8 SDLTest_RandomUint8();
  9. Sint8 SDLTest_RandomSint8();
  10. Uint16 SDLTest_RandomUint16();
  11. Sint16 SDLTest_RandomSint16();
  12. Sint32 SDLTest_RandomSint32();
  13. Uint32 SDLTest_RandomUint32();
  14. Uint64 SDLTest_RandomUint64();
  15. Sint64 SDLTest_RandomSint64();
  16. float SDLTest_RandomUnitFloat();
  17. double SDLTest_RandomUnitDouble();
  18. float SDLTest_RandomFloat();
  19. double SDLTest_RandomDouble();
  20. Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain);
  21. Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain);
  22. Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain);
  23. Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain);
  24. Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain);
  25. Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain);
  26. Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain);
  27. Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain);
  28. Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max);
  29. char * SDLTest_RandomAsciiString();
  30. char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength);
  31. char * SDLTest_RandomAsciiStringOfSize(int size);
  32. int SDLTest_GetFuzzerInvocationCount();
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #include "close_code.h"
  37. #endif