1 /* AUTOGENERATED FILE. DO NOT EDIT. */ 2 #ifndef _MOCKFWK_MODULE_INTERNAL_H 3 #define _MOCKFWK_MODULE_INTERNAL_H 4 5 #include "unity.h" 6 #include "internal/fwk_module.h" 7 8 /* Ignore the following warnings, since we are copying code */ 9 #if defined(__GNUC__) && !defined(__ICC) && !defined(__TMS470__) 10 #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 6 || (__GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ > 0))) 11 #pragma GCC diagnostic push 12 #endif 13 #if !defined(__clang__) 14 #pragma GCC diagnostic ignored "-Wpragmas" 15 #endif 16 #pragma GCC diagnostic ignored "-Wunknown-pragmas" 17 #pragma GCC diagnostic ignored "-Wduplicate-decl-specifier" 18 #endif 19 20 void Mockfwk_module_internal_Init(void); 21 void Mockfwk_module_internal_Destroy(void); 22 void Mockfwk_module_internal_Verify(void); 23 24 25 26 27 #define fwk_module_start_ExpectAndReturn(cmock_retval) fwk_module_start_CMockExpectAndReturn(__LINE__, cmock_retval) 28 void fwk_module_start_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 29 typedef int (* CMOCK_fwk_module_start_CALLBACK)(int cmock_num_calls); 30 void fwk_module_start_AddCallback(CMOCK_fwk_module_start_CALLBACK Callback); 31 void fwk_module_start_Stub(CMOCK_fwk_module_start_CALLBACK Callback); 32 #define fwk_module_start_StubWithCallback fwk_module_start_Stub 33 #define fwk_module_stop_ExpectAndReturn(cmock_retval) fwk_module_stop_CMockExpectAndReturn(__LINE__, cmock_retval) 34 void fwk_module_stop_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 35 typedef int (* CMOCK_fwk_module_stop_CALLBACK)(int cmock_num_calls); 36 void fwk_module_stop_AddCallback(CMOCK_fwk_module_stop_CALLBACK Callback); 37 void fwk_module_stop_Stub(CMOCK_fwk_module_stop_CALLBACK Callback); 38 #define fwk_module_stop_StubWithCallback fwk_module_stop_Stub 39 #define fwk_module_get_ctx_ExpectAnyArgsAndReturn(cmock_retval) fwk_module_get_ctx_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 40 void fwk_module_get_ctx_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, struct fwk_module_context* cmock_to_return); 41 #define fwk_module_get_ctx_ExpectAndReturn(id, cmock_retval) fwk_module_get_ctx_CMockExpectAndReturn(__LINE__, id, cmock_retval) 42 void fwk_module_get_ctx_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t id, struct fwk_module_context* cmock_to_return); 43 typedef struct fwk_module_context* (* CMOCK_fwk_module_get_ctx_CALLBACK)(fwk_id_t id, int cmock_num_calls); 44 void fwk_module_get_ctx_AddCallback(CMOCK_fwk_module_get_ctx_CALLBACK Callback); 45 void fwk_module_get_ctx_Stub(CMOCK_fwk_module_get_ctx_CALLBACK Callback); 46 #define fwk_module_get_ctx_StubWithCallback fwk_module_get_ctx_Stub 47 #define fwk_module_get_state_ExpectAnyArgsAndReturn(cmock_retval) fwk_module_get_state_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 48 void fwk_module_get_state_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 49 #define fwk_module_get_state_ExpectAndReturn(id, state, cmock_retval) fwk_module_get_state_CMockExpectAndReturn(__LINE__, id, state, cmock_retval) 50 void fwk_module_get_state_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t id, enum fwk_module_state* state, int cmock_to_return); 51 typedef int (* CMOCK_fwk_module_get_state_CALLBACK)(fwk_id_t id, enum fwk_module_state* state, int cmock_num_calls); 52 void fwk_module_get_state_AddCallback(CMOCK_fwk_module_get_state_CALLBACK Callback); 53 void fwk_module_get_state_Stub(CMOCK_fwk_module_get_state_CALLBACK Callback); 54 #define fwk_module_get_state_StubWithCallback fwk_module_get_state_Stub 55 #define fwk_module_get_state_ReturnThruPtr_state(state) fwk_module_get_state_CMockReturnMemThruPtr_state(__LINE__, state, sizeof(enum fwk_module_state)) 56 #define fwk_module_get_state_ReturnArrayThruPtr_state(state, cmock_len) fwk_module_get_state_CMockReturnMemThruPtr_state(__LINE__, state, cmock_len * sizeof(*state)) 57 #define fwk_module_get_state_ReturnMemThruPtr_state(state, cmock_size) fwk_module_get_state_CMockReturnMemThruPtr_state(__LINE__, state, cmock_size) 58 void fwk_module_get_state_CMockReturnMemThruPtr_state(UNITY_LINE_TYPE cmock_line, enum fwk_module_state* state, size_t cmock_size); 59 #define fwk_module_get_element_ctx_ExpectAnyArgsAndReturn(cmock_retval) fwk_module_get_element_ctx_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 60 void fwk_module_get_element_ctx_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, struct fwk_element_ctx* cmock_to_return); 61 #define fwk_module_get_element_ctx_ExpectAndReturn(element_id, cmock_retval) fwk_module_get_element_ctx_CMockExpectAndReturn(__LINE__, element_id, cmock_retval) 62 void fwk_module_get_element_ctx_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t element_id, struct fwk_element_ctx* cmock_to_return); 63 typedef struct fwk_element_ctx* (* CMOCK_fwk_module_get_element_ctx_CALLBACK)(fwk_id_t element_id, int cmock_num_calls); 64 void fwk_module_get_element_ctx_AddCallback(CMOCK_fwk_module_get_element_ctx_CALLBACK Callback); 65 void fwk_module_get_element_ctx_Stub(CMOCK_fwk_module_get_element_ctx_CALLBACK Callback); 66 #define fwk_module_get_element_ctx_StubWithCallback fwk_module_get_element_ctx_Stub 67 #define fwk_module_reset_Expect() fwk_module_reset_CMockExpect(__LINE__) 68 void fwk_module_reset_CMockExpect(UNITY_LINE_TYPE cmock_line); 69 typedef void (* CMOCK_fwk_module_reset_CALLBACK)(int cmock_num_calls); 70 void fwk_module_reset_AddCallback(CMOCK_fwk_module_reset_CALLBACK Callback); 71 void fwk_module_reset_Stub(CMOCK_fwk_module_reset_CALLBACK Callback); 72 #define fwk_module_reset_StubWithCallback fwk_module_reset_Stub 73 74 #if defined(__GNUC__) && !defined(__ICC) && !defined(__TMS470__) 75 #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 6 || (__GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ > 0))) 76 #pragma GCC diagnostic pop 77 #endif 78 #endif 79 80 #endif 81