1 /* AUTOGENERATED FILE. DO NOT EDIT. */ 2 #ifndef _MOCKMOD_POWER_METER_EXTRA_H 3 #define _MOCKMOD_POWER_METER_EXTRA_H 4 5 #include "unity.h" 6 #include "mod_power_meter_extra.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 Mockmod_power_meter_extra_Init(void); 21 void Mockmod_power_meter_extra_Destroy(void); 22 void Mockmod_power_meter_extra_Verify(void); 23 24 25 26 27 #define get_power_IgnoreAndReturn(cmock_retval) get_power_CMockIgnoreAndReturn(__LINE__, cmock_retval) 28 void get_power_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 29 #define get_power_StopIgnore() get_power_CMockStopIgnore() 30 void get_power_CMockStopIgnore(void); 31 #define get_power_ExpectAnyArgsAndReturn(cmock_retval) get_power_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 32 void get_power_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 33 #define get_power_ExpectAndReturn(domain_id, power, cmock_retval) get_power_CMockExpectAndReturn(__LINE__, domain_id, power, cmock_retval) 34 void get_power_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t domain_id, uint32_t* power, int cmock_to_return); 35 typedef int (* CMOCK_get_power_CALLBACK)(fwk_id_t domain_id, uint32_t* power, int cmock_num_calls); 36 void get_power_AddCallback(CMOCK_get_power_CALLBACK Callback); 37 void get_power_Stub(CMOCK_get_power_CALLBACK Callback); 38 #define get_power_StubWithCallback get_power_Stub 39 #define get_power_ExpectWithArrayAndReturn(domain_id, power, power_Depth, cmock_retval) get_power_CMockExpectWithArrayAndReturn(__LINE__, domain_id, power, power_Depth, cmock_retval) 40 void get_power_CMockExpectWithArrayAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t domain_id, uint32_t* power, int power_Depth, int cmock_to_return); 41 #define get_power_ReturnThruPtr_power(power) get_power_CMockReturnMemThruPtr_power(__LINE__, power, sizeof(uint32_t)) 42 #define get_power_ReturnArrayThruPtr_power(power, cmock_len) get_power_CMockReturnMemThruPtr_power(__LINE__, power, cmock_len * sizeof(*power)) 43 #define get_power_ReturnMemThruPtr_power(power, cmock_size) get_power_CMockReturnMemThruPtr_power(__LINE__, power, cmock_size) 44 void get_power_CMockReturnMemThruPtr_power(UNITY_LINE_TYPE cmock_line, uint32_t* power, size_t cmock_size); 45 #define get_power_IgnoreArg_domain_id() get_power_CMockIgnoreArg_domain_id(__LINE__) 46 void get_power_CMockIgnoreArg_domain_id(UNITY_LINE_TYPE cmock_line); 47 #define get_power_IgnoreArg_power() get_power_CMockIgnoreArg_power(__LINE__) 48 void get_power_CMockIgnoreArg_power(UNITY_LINE_TYPE cmock_line); 49 #define set_power_change_notif_thresholds_IgnoreAndReturn(cmock_retval) set_power_change_notif_thresholds_CMockIgnoreAndReturn(__LINE__, cmock_retval) 50 void set_power_change_notif_thresholds_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 51 #define set_power_change_notif_thresholds_StopIgnore() set_power_change_notif_thresholds_CMockStopIgnore() 52 void set_power_change_notif_thresholds_CMockStopIgnore(void); 53 #define set_power_change_notif_thresholds_ExpectAnyArgsAndReturn(cmock_retval) set_power_change_notif_thresholds_CMockExpectAnyArgsAndReturn(__LINE__, cmock_retval) 54 void set_power_change_notif_thresholds_CMockExpectAnyArgsAndReturn(UNITY_LINE_TYPE cmock_line, int cmock_to_return); 55 #define set_power_change_notif_thresholds_ExpectAndReturn(id, threshold_low, threshold_high, cmock_retval) set_power_change_notif_thresholds_CMockExpectAndReturn(__LINE__, id, threshold_low, threshold_high, cmock_retval) 56 void set_power_change_notif_thresholds_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t id, uint32_t threshold_low, uint32_t threshold_high, int cmock_to_return); 57 typedef int (* CMOCK_set_power_change_notif_thresholds_CALLBACK)(fwk_id_t id, uint32_t threshold_low, uint32_t threshold_high, int cmock_num_calls); 58 void set_power_change_notif_thresholds_AddCallback(CMOCK_set_power_change_notif_thresholds_CALLBACK Callback); 59 void set_power_change_notif_thresholds_Stub(CMOCK_set_power_change_notif_thresholds_CALLBACK Callback); 60 #define set_power_change_notif_thresholds_StubWithCallback set_power_change_notif_thresholds_Stub 61 #define set_power_change_notif_thresholds_IgnoreArg_id() set_power_change_notif_thresholds_CMockIgnoreArg_id(__LINE__) 62 void set_power_change_notif_thresholds_CMockIgnoreArg_id(UNITY_LINE_TYPE cmock_line); 63 #define set_power_change_notif_thresholds_IgnoreArg_threshold_low() set_power_change_notif_thresholds_CMockIgnoreArg_threshold_low(__LINE__) 64 void set_power_change_notif_thresholds_CMockIgnoreArg_threshold_low(UNITY_LINE_TYPE cmock_line); 65 #define set_power_change_notif_thresholds_IgnoreArg_threshold_high() set_power_change_notif_thresholds_CMockIgnoreArg_threshold_high(__LINE__) 66 void set_power_change_notif_thresholds_CMockIgnoreArg_threshold_high(UNITY_LINE_TYPE cmock_line); 67 68 #if defined(__GNUC__) && !defined(__ICC) && !defined(__TMS470__) 69 #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 6 || (__GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ > 0))) 70 #pragma GCC diagnostic pop 71 #endif 72 #endif 73 74 #endif 75