1 /* AUTOGENERATED FILE. DO NOT EDIT. */ 2 #ifndef _MOCKFWK_CORE_INTERNAL_H 3 #define _MOCKFWK_CORE_INTERNAL_H 4 5 #include "unity.h" 6 #include "internal/fwk_core.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_core_internal_Init(void); 21 void Mockfwk_core_internal_Destroy(void); 22 void Mockfwk_core_internal_Verify(void); 23 24 25 26 27 #define __fwk_init_ExpectAnyArgsAndReturn(cmock_retval) __fwk_init_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 28 void __fwk_init_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 29 #define __fwk_init_ExpectAndReturn(event_count, cmock_retval) __fwk_init_CMockExpectAndReturn(__LINE__, event_count, cmock_retval) 30 void __fwk_init_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, size_t event_count, int cmock_to_return); 31 typedef int (* CMOCK___fwk_init_CALLBACK)(size_t event_count, int cmock_num_calls); 32 void __fwk_init_AddCallback(CMOCK___fwk_init_CALLBACK Callback); 33 void __fwk_init_Stub(CMOCK___fwk_init_CALLBACK Callback); 34 #define __fwk_init_StubWithCallback __fwk_init_Stub 35 #define __fwk_run_main_loop_Expect() __fwk_run_main_loop_CMockExpect(__LINE__) 36 void __fwk_run_main_loop_CMockExpect(UNITY_LINE_TYPE cmock_line); 37 typedef void (* CMOCK___fwk_run_main_loop_CALLBACK)(int cmock_num_calls); 38 void __fwk_run_main_loop_AddCallback(CMOCK___fwk_run_main_loop_CALLBACK Callback); 39 void __fwk_run_main_loop_Stub(CMOCK___fwk_run_main_loop_CALLBACK Callback); 40 #define __fwk_run_main_loop_StubWithCallback __fwk_run_main_loop_Stub 41 #define __fwk_get_current_event_ExpectAndReturn(cmock_retval) __fwk_get_current_event_CMockExpectAndReturn(__LINE__, cmock_retval) 42 void __fwk_get_current_event_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, const struct fwk_event* cmock_to_return); 43 typedef const struct fwk_event* (* CMOCK___fwk_get_current_event_CALLBACK)(int cmock_num_calls); 44 void __fwk_get_current_event_AddCallback(CMOCK___fwk_get_current_event_CALLBACK Callback); 45 void __fwk_get_current_event_Stub(CMOCK___fwk_get_current_event_CALLBACK Callback); 46 #define __fwk_get_current_event_StubWithCallback __fwk_get_current_event_Stub 47 #define __fwk_put_notification_ExpectAnyArgsAndReturn(cmock_retval) __fwk_put_notification_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 48 void __fwk_put_notification_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 49 #define __fwk_put_notification_ExpectAndReturn(event, cmock_retval) __fwk_put_notification_CMockExpectAndReturn(__LINE__, event, cmock_retval) 50 void __fwk_put_notification_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct fwk_event* event, int cmock_to_return); 51 typedef int (* CMOCK___fwk_put_notification_CALLBACK)(struct fwk_event* event, int cmock_num_calls); 52 void __fwk_put_notification_AddCallback(CMOCK___fwk_put_notification_CALLBACK Callback); 53 void __fwk_put_notification_Stub(CMOCK___fwk_put_notification_CALLBACK Callback); 54 #define __fwk_put_notification_StubWithCallback __fwk_put_notification_Stub 55 #define __fwk_put_notification_ReturnThruPtr_event(event) __fwk_put_notification_CMockReturnMemThruPtr_event(__LINE__, event, sizeof(struct fwk_event)) 56 #define __fwk_put_notification_ReturnArrayThruPtr_event(event, cmock_len) __fwk_put_notification_CMockReturnMemThruPtr_event(__LINE__, event, cmock_len * sizeof(*event)) 57 #define __fwk_put_notification_ReturnMemThruPtr_event(event, cmock_size) __fwk_put_notification_CMockReturnMemThruPtr_event(__LINE__, event, cmock_size) 58 void __fwk_put_notification_CMockReturnMemThruPtr_event(UNITY_LINE_TYPE cmock_line, struct fwk_event* event, size_t cmock_size); 59 #define __fwk_put_event_ExpectAnyArgsAndReturn(cmock_retval) __fwk_put_event_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 60 void __fwk_put_event_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 61 #define __fwk_put_event_ExpectAndReturn(event, cmock_retval) __fwk_put_event_CMockExpectAndReturn(__LINE__, event, cmock_retval) 62 void __fwk_put_event_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct fwk_event* event, int cmock_to_return); 63 typedef int (* CMOCK___fwk_put_event_CALLBACK)(struct fwk_event* event, int cmock_num_calls); 64 void __fwk_put_event_AddCallback(CMOCK___fwk_put_event_CALLBACK Callback); 65 void __fwk_put_event_Stub(CMOCK___fwk_put_event_CALLBACK Callback); 66 #define __fwk_put_event_StubWithCallback __fwk_put_event_Stub 67 #define __fwk_put_event_ReturnThruPtr_event(event) __fwk_put_event_CMockReturnMemThruPtr_event(__LINE__, event, sizeof(struct fwk_event)) 68 #define __fwk_put_event_ReturnArrayThruPtr_event(event, cmock_len) __fwk_put_event_CMockReturnMemThruPtr_event(__LINE__, event, cmock_len * sizeof(*event)) 69 #define __fwk_put_event_ReturnMemThruPtr_event(event, cmock_size) __fwk_put_event_CMockReturnMemThruPtr_event(__LINE__, event, cmock_size) 70 void __fwk_put_event_CMockReturnMemThruPtr_event(UNITY_LINE_TYPE cmock_line, struct fwk_event* event, size_t cmock_size); 71 #define __fwk_put_event_light_ExpectAnyArgsAndReturn(cmock_retval) __fwk_put_event_light_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 72 void __fwk_put_event_light_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 73 #define __fwk_put_event_light_ExpectAndReturn(event, cmock_retval) __fwk_put_event_light_CMockExpectAndReturn(__LINE__, event, cmock_retval) 74 void __fwk_put_event_light_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, struct fwk_event_light* event, int cmock_to_return); 75 typedef int (* CMOCK___fwk_put_event_light_CALLBACK)(struct fwk_event_light* event, int cmock_num_calls); 76 void __fwk_put_event_light_AddCallback(CMOCK___fwk_put_event_light_CALLBACK Callback); 77 void __fwk_put_event_light_Stub(CMOCK___fwk_put_event_light_CALLBACK Callback); 78 #define __fwk_put_event_light_StubWithCallback __fwk_put_event_light_Stub 79 #define __fwk_put_event_light_ReturnThruPtr_event(event) __fwk_put_event_light_CMockReturnMemThruPtr_event(__LINE__, event, sizeof(struct fwk_event_light)) 80 #define __fwk_put_event_light_ReturnArrayThruPtr_event(event, cmock_len) __fwk_put_event_light_CMockReturnMemThruPtr_event(__LINE__, event, cmock_len * sizeof(*event)) 81 #define __fwk_put_event_light_ReturnMemThruPtr_event(event, cmock_size) __fwk_put_event_light_CMockReturnMemThruPtr_event(__LINE__, event, cmock_size) 82 void __fwk_put_event_light_CMockReturnMemThruPtr_event(UNITY_LINE_TYPE cmock_line, struct fwk_event_light* event, size_t cmock_size); 83 84 #if defined(__GNUC__) && !defined(__ICC) && !defined(__TMS470__) 85 #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 6 || (__GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ > 0))) 86 #pragma GCC diagnostic pop 87 #endif 88 #endif 89 90 #endif 91