2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ini-config.mock.h 4.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #ifndef INI_CONFIG_MOCK_H
  2. #define INI_CONFIG_MOCK_H
  3. #include <bdd-for-c-mocks.h>
  4. #include <ini-config.h>
  5. mock(INI_ConfigInitialize) INI_ConfigInitializeResult INI_ConfigInitialize(INI_ConfigItem _item[], const char* _config_path, u8 _argc, const char* _argv[]) {
  6. mock_return(INI_ConfigInitialize) INI_CONFIG_INITIALIZE_RESULT_OK;
  7. }
  8. mock(INI_ConfigSave) INI_ConfigSaveResult INI_ConfigSave(INI_ConfigItem _item[], const char* _config_path) {
  9. mock_return(INI_ConfigSave) 0;
  10. }
  11. mock(INI_ConfigGetCommandlineOption) const char* INI_ConfigGetCommandlineOption(uint8_t _argc, const char* _argv[], const char* _val) {
  12. mock_return(INI_ConfigGetCommandlineOption) "";
  13. }
  14. mock(INI_ConfigLoadU8) void INI_ConfigLoadU8(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  15. mock_return(INI_ConfigLoadU8);
  16. }
  17. mock(INI_ConfigLoadU16) void INI_ConfigLoadU16(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  18. mock_return(INI_ConfigLoadU16);
  19. }
  20. mock(INI_ConfigLoadU32) void INI_ConfigLoadU32(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  21. mock_return(INI_ConfigLoadU32);
  22. }
  23. mock(INI_ConfigLoadI8) void INI_ConfigLoadI8(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  24. mock_return(INI_ConfigLoadI8);
  25. }
  26. mock(INI_ConfigLoadI16) void INI_ConfigLoadI16(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  27. mock_return(INI_ConfigLoadI16);
  28. }
  29. mock(INI_ConfigLoadI32) void INI_ConfigLoadI32(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  30. mock_return(INI_ConfigLoadI32);
  31. }
  32. mock(INI_ConfigLoadString) void INI_ConfigLoadString(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  33. mock_return(INI_ConfigLoadString);
  34. }
  35. mock(INI_ConfigSaveU8) INI_ConfigSaveItemResult INI_ConfigSaveU8(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  36. mock_return(INI_ConfigSaveU8) INI_CONFIG_SAVE_ITEM_OK;
  37. }
  38. mock(INI_ConfigSaveU16) INI_ConfigSaveItemResult INI_ConfigSaveU16(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  39. mock_return(INI_ConfigSaveU16) INI_CONFIG_SAVE_ITEM_OK;
  40. }
  41. mock(INI_ConfigSaveU32) INI_ConfigSaveItemResult INI_ConfigSaveU32(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  42. mock_return(INI_ConfigSaveU32) INI_CONFIG_SAVE_ITEM_OK;
  43. }
  44. mock(INI_ConfigSaveI8) INI_ConfigSaveItemResult INI_ConfigSaveI8(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  45. mock_return(INI_ConfigSaveI8) INI_CONFIG_SAVE_ITEM_OK;
  46. }
  47. mock(INI_ConfigSaveI16) INI_ConfigSaveItemResult INI_ConfigSaveI16(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  48. mock_return(INI_ConfigSaveI16) INI_CONFIG_SAVE_ITEM_OK;
  49. }
  50. mock(INI_ConfigSaveI32) INI_ConfigSaveItemResult INI_ConfigSaveI32(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  51. mock_return(INI_ConfigSaveI32) INI_CONFIG_SAVE_ITEM_OK;
  52. }
  53. mock(INI_ConfigSaveString) INI_ConfigSaveItemResult INI_ConfigSaveString(INI_ConfigItem* _item, const char* _config_path, void* _item_array) {
  54. mock_return(INI_ConfigSaveString) INI_CONFIG_SAVE_ITEM_OK;
  55. }
  56. mock(INI_ConfigOverrideU8) void INI_ConfigOverrideU8(INI_ConfigItem* _item, uint8_t _argc, const char* _argv[]) {
  57. mock_return(INI_ConfigOverrideU8);
  58. }
  59. mock(INI_ConfigOverrideU16) void INI_ConfigOverrideU16(INI_ConfigItem* _item, uint8_t _argc, const char* _argv[]) {
  60. mock_return(INI_ConfigOverrideU16);
  61. }
  62. mock(INI_ConfigOverrideU32) void INI_ConfigOverrideU32(INI_ConfigItem* _item, uint8_t _argc, const char* _argv[]) {
  63. mock_return(INI_ConfigOverrideU32);
  64. }
  65. mock(INI_ConfigOverrideI8) void INI_ConfigOverrideI8(INI_ConfigItem* _item, uint8_t _argc, const char* _argv[]) {
  66. mock_return(INI_ConfigOverrideI8);
  67. }
  68. mock(INI_ConfigOverrideI16) void INI_ConfigOverrideI16(INI_ConfigItem* _item, uint8_t _argc, const char* _argv[]) {
  69. mock_return(INI_ConfigOverrideI16);
  70. }
  71. mock(INI_ConfigOverrideI32) void INI_ConfigOverrideI32(INI_ConfigItem* _item, uint8_t _argc, const char* _argv[]) {
  72. mock_return(INI_ConfigOverrideI32);
  73. }
  74. mock(INI_ConfigOverrideString) void INI_ConfigOverrideString(INI_ConfigItem* _item, uint8_t _argc, const char* _argv[]) {
  75. mock_return(INI_ConfigOverrideString);
  76. }
  77. #endif