2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

minIni.mock.h 700 B

1234567891011121314151617181920212223242526272829
  1. #ifndef MININI_MOCK_H
  2. #define MININI_MOCK_H
  3. #include "../src/packages/test/IZ_test.h"
  4. mock(ini_getl) long ini_getl(const TCHAR *Section, const TCHAR *Key, long DefValue, const TCHAR *Filename) {
  5. mock_return(ini_getl) DefValue;
  6. }
  7. mock(ini_putl) int ini_putl(const TCHAR *Section, const TCHAR *Key, long Value, const TCHAR *Filename) {
  8. mock_return(ini_putl) 1;
  9. }
  10. mock(ini_gets) int ini_gets(
  11. const TCHAR *Section,
  12. const TCHAR *Key,
  13. const TCHAR *DefValue,
  14. TCHAR *Buffer,
  15. int BufferSize,
  16. const TCHAR *Filename
  17. ) {
  18. mock_return(ini_gets) 0;
  19. }
  20. mock(ini_puts) int ini_puts(const TCHAR *Section, const TCHAR *Key, const TCHAR *Value, const TCHAR *Filename) {
  21. mock_return(ini_puts) 1;
  22. }
  23. #endif