diff --git a/unit-test/CMakeLists.txt b/unit-test/CMakeLists.txt index f9210f7..73652db 100644 --- a/unit-test/CMakeLists.txt +++ b/unit-test/CMakeLists.txt @@ -22,8 +22,12 @@ target_link_libraries(coverage-fm_internal-stubs ut_core_api_stubs ut_assert) # Include and expose unit test utilities, fsw/inc, and fsw/src includes target_include_directories(coverage-fm_internal-stubs PUBLIC utilities) -target_include_directories(coverage-fm_internal-stubs PUBLIC ../fsw/inc) -target_include_directories(coverage-fm_internal-stubs PUBLIC ../fsw/src) +target_include_directories(coverage-fm_internal-stubs PUBLIC $) + +# This permits all source files under this directory scope to reference internal +# headers in the "fsw/src" directory. This is OK because it is a white-box test, +# normally these headers should not be referenced outside the module. +include_directories(../fsw/src) # Generate a dedicated "testrunner" executable for each test file # Accomplish this by cycling through all the app's source files, there must be diff --git a/unit-test/stubs/fm_child_stubs.c b/unit-test/stubs/fm_child_stubs.c index 9cfa9a2..16a1c66 100644 --- a/unit-test/stubs/fm_child_stubs.c +++ b/unit-test/stubs/fm_child_stubs.c @@ -19,281 +19,283 @@ /** * @file - * File Manager (FM) Child task (low priority command handler) + * + * Auto-Generated stub implementations for functions defined in fm_child header */ -#include "cfe.h" -#include "fm_msg.h" -#include "fm_msgdefs.h" -#include "fm_msgids.h" -#include "fm_events.h" -#include "fm_app.h" #include "fm_child.h" -#include "fm_cmds.h" -#include "fm_cmd_utils.h" -#include "fm_perfids.h" -#include "fm_platform_cfg.h" -#include "fm_verify.h" -#include "fm_test_utils.h" +#include "utgenstub.h" -#include "uttest.h" -#include "utassert.h" -#include "utstubs.h" +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildConcatCmd() + * ---------------------------------------------------- + */ +void FM_ChildConcatCmd(const FM_ChildQueueEntry_t *CmdArgs) +{ + UT_GenStub_AddParam(FM_ChildConcatCmd, const FM_ChildQueueEntry_t *, CmdArgs); -#include + UT_GenStub_Execute(FM_ChildConcatCmd, Basic, NULL); +} -#ifdef FM_INCLUDE_DECOMPRESS -#include "cfs_fs_lib.h" -#endif +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildCopyCmd() + * ---------------------------------------------------- + */ +void FM_ChildCopyCmd(const FM_ChildQueueEntry_t *CmdArgs) +{ + UT_GenStub_AddParam(FM_ChildCopyCmd, const FM_ChildQueueEntry_t *, CmdArgs); -/************************************************************************ -** OSAL Compatibility for directory name access -** New OSAL version have an access macro to get the string. If that -** macro is defined, use it, otherwise assume "d_name" structure member. -*************************************************************************/ -#ifndef OS_DIRENTRY_NAME -#define OS_DIRENTRY_NAME(x) ((x).d_name) -#endif - -#define FM_QUEUE_SEM_NAME "FM_QUEUE_SEM" - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task -- startup initialization */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildCopyCmd, Basic, NULL); +} -int32 FM_ChildInit(void) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildCreateDirCmd() + * ---------------------------------------------------- + */ +void FM_ChildCreateDirCmd(const FM_ChildQueueEntry_t *CmdArgs) { - return UT_DEFAULT_IMPL(FM_ChildInit); -} + UT_GenStub_AddParam(FM_ChildCreateDirCmd, const FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task -- task entry point */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildCreateDirCmd, Basic, NULL); +} -void FM_ChildTask(void) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildDecompressCmd() + * ---------------------------------------------------- + */ +void FM_ChildDecompressCmd(const FM_ChildQueueEntry_t *CmdArgs) { - UT_DEFAULT_IMPL(FM_ChildTask); -} + UT_GenStub_AddParam(FM_ChildDecompressCmd, const FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task -- main process loop */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildDecompressCmd, Basic, NULL); +} -void FM_ChildLoop(void) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildDeleteAllCmd() + * ---------------------------------------------------- + */ +void FM_ChildDeleteAllCmd(FM_ChildQueueEntry_t *CmdArgs) { - UT_DEFAULT_IMPL(FM_ChildLoop); -} + UT_GenStub_AddParam(FM_ChildDeleteAllCmd, FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task -- interface handshake processor */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildDeleteAllCmd, Basic, NULL); +} -void FM_ChildProcess(void) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildDeleteCmd() + * ---------------------------------------------------- + */ +void FM_ChildDeleteCmd(const FM_ChildQueueEntry_t *CmdArgs) { - UT_DEFAULT_IMPL(FM_ChildProcess); -} + UT_GenStub_AddParam(FM_ChildDeleteCmd, const FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Copy File */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildDeleteCmd, Basic, NULL); +} -void FM_ChildCopyCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildDeleteDirCmd() + * ---------------------------------------------------- + */ +void FM_ChildDeleteDirCmd(const FM_ChildQueueEntry_t *CmdArgs) { - UT_Stub_RegisterContext(UT_KEY(FM_ChildCopyCmd), CmdArgs); - UT_DEFAULT_IMPL(FM_ChildCopyCmd); -} + UT_GenStub_AddParam(FM_ChildDeleteDirCmd, const FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Move File */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildDeleteDirCmd, Basic, NULL); +} -void FM_ChildMoveCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildDirListFileCmd() + * ---------------------------------------------------- + */ +void FM_ChildDirListFileCmd(const FM_ChildQueueEntry_t *CmdArgs) { - UT_DEFAULT_IMPL(FM_ChildMoveCmd); -} + UT_GenStub_AddParam(FM_ChildDirListFileCmd, const FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Rename File */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildDirListFileCmd, Basic, NULL); +} -void FM_ChildRenameCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildDirListFileInit() + * ---------------------------------------------------- + */ +bool FM_ChildDirListFileInit(osal_id_t *FileHandlePtr, const char *Directory, const char *Filename) { - UT_DEFAULT_IMPL(FM_ChildRenameCmd); -} + UT_GenStub_SetupReturnBuffer(FM_ChildDirListFileInit, bool); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Delete File */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_AddParam(FM_ChildDirListFileInit, osal_id_t *, FileHandlePtr); + UT_GenStub_AddParam(FM_ChildDirListFileInit, const char *, Directory); + UT_GenStub_AddParam(FM_ChildDirListFileInit, const char *, Filename); -void FM_ChildDeleteCmd(const FM_ChildQueueEntry_t *CmdArgs) -{ - UT_DEFAULT_IMPL(FM_ChildDeleteCmd); -} + UT_GenStub_Execute(FM_ChildDirListFileInit, Basic, NULL); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Delete All Files */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + return UT_GenStub_GetReturnValue(FM_ChildDirListFileInit, bool); +} -void FM_ChildDeleteAllCmd(FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildDirListFileLoop() + * ---------------------------------------------------- + */ +void FM_ChildDirListFileLoop(osal_id_t DirId, osal_id_t FileHandle, const char *Directory, const char *DirWithSep, + const char *Filename, uint8 GetSizeTimeMode) { - UT_DEFAULT_IMPL(FM_ChildDeleteAllCmd); + UT_GenStub_AddParam(FM_ChildDirListFileLoop, osal_id_t, DirId); + UT_GenStub_AddParam(FM_ChildDirListFileLoop, osal_id_t, FileHandle); + UT_GenStub_AddParam(FM_ChildDirListFileLoop, const char *, Directory); + UT_GenStub_AddParam(FM_ChildDirListFileLoop, const char *, DirWithSep); + UT_GenStub_AddParam(FM_ChildDirListFileLoop, const char *, Filename); + UT_GenStub_AddParam(FM_ChildDirListFileLoop, uint8, GetSizeTimeMode); + + UT_GenStub_Execute(FM_ChildDirListFileLoop, Basic, NULL); } -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Decompress File */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -#ifdef FM_INCLUDE_DECOMPRESS - -void FM_ChildDecompressCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildDirListPktCmd() + * ---------------------------------------------------- + */ +void FM_ChildDirListPktCmd(const FM_ChildQueueEntry_t *CmdArgs) { - UT_DEFAULT_IMPL(FM_ChildDecompressCmd); + UT_GenStub_AddParam(FM_ChildDirListPktCmd, const FM_ChildQueueEntry_t *, CmdArgs); + + UT_GenStub_Execute(FM_ChildDirListPktCmd, Basic, NULL); } -#endif +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildFileInfoCmd() + * ---------------------------------------------------- + */ +void FM_ChildFileInfoCmd(FM_ChildQueueEntry_t *CmdArgs) +{ + UT_GenStub_AddParam(FM_ChildFileInfoCmd, FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Concatenate Files */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildFileInfoCmd, Basic, NULL); +} -void FM_ChildConcatCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildInit() + * ---------------------------------------------------- + */ +int32 FM_ChildInit(void) { - UT_DEFAULT_IMPL(FM_ChildConcatCmd); -} + UT_GenStub_SetupReturnBuffer(FM_ChildInit, int32); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Get File Info */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildInit, Basic, NULL); -void FM_ChildFileInfoCmd(FM_ChildQueueEntry_t *CmdArgs) -{ - UT_DEFAULT_IMPL(FM_ChildFileInfoCmd); + return UT_GenStub_GetReturnValue(FM_ChildInit, int32); } -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Create Directory */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -void FM_ChildCreateDirCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildLoop() + * ---------------------------------------------------- + */ +void FM_ChildLoop(void) { - UT_DEFAULT_IMPL(FM_ChildCreateDirCmd); -} -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Delete Directory */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildLoop, Basic, NULL); +} -void FM_ChildDeleteDirCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildMoveCmd() + * ---------------------------------------------------- + */ +void FM_ChildMoveCmd(const FM_ChildQueueEntry_t *CmdArgs) { - UT_DEFAULT_IMPL(FM_ChildDeleteDirCmd); -} + UT_GenStub_AddParam(FM_ChildMoveCmd, const FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Get Directory List (to file) */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildMoveCmd, Basic, NULL); +} -void FM_ChildDirListFileCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildProcess() + * ---------------------------------------------------- + */ +void FM_ChildProcess(void) { - UT_DEFAULT_IMPL(FM_ChildDeleteDirCmd); -} -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Get Directory List (to pkt) */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildProcess, Basic, NULL); +} -void FM_ChildDirListPktCmd(const FM_ChildQueueEntry_t *CmdArgs) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildRenameCmd() + * ---------------------------------------------------- + */ +void FM_ChildRenameCmd(const FM_ChildQueueEntry_t *CmdArgs) { - UT_DEFAULT_IMPL(FM_ChildDirListPktCmd); + UT_GenStub_AddParam(FM_ChildRenameCmd, const FM_ChildQueueEntry_t *, CmdArgs); + + UT_GenStub_Execute(FM_ChildRenameCmd, Basic, NULL); } -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task command handler -- Set File Permissions */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildSetPermissionsCmd() + * ---------------------------------------------------- + */ void FM_ChildSetPermissionsCmd(const FM_ChildQueueEntry_t *CmdArgs) { - UT_DEFAULT_IMPL(FM_ChildSetPermissionsCmd); -} + UT_GenStub_AddParam(FM_ChildSetPermissionsCmd, const FM_ChildQueueEntry_t *, CmdArgs); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task utility function -- create dir list output file */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildSetPermissionsCmd, Basic, NULL); +} -bool FM_ChildDirListFileInit(osal_id_t *FileHandlePtr, const char *Directory, const char *Filename) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildSizeTimeMode() + * ---------------------------------------------------- + */ +int32 FM_ChildSizeTimeMode(const char *Filename, uint32 *FileSize, uint32 *FileTime, uint32 *FileMode) { - return UT_DEFAULT_IMPL(FM_ChildDirListFileInit); -} + UT_GenStub_SetupReturnBuffer(FM_ChildSizeTimeMode, int32); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task utility function -- write to dir list output file */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_AddParam(FM_ChildSizeTimeMode, const char *, Filename); + UT_GenStub_AddParam(FM_ChildSizeTimeMode, uint32 *, FileSize); + UT_GenStub_AddParam(FM_ChildSizeTimeMode, uint32 *, FileTime); + UT_GenStub_AddParam(FM_ChildSizeTimeMode, uint32 *, FileMode); -void FM_ChildDirListFileLoop(osal_id_t DirId, osal_id_t FileHandle, const char *Directory, const char *DirWithSep, - const char *Filename, uint8 getSizeTimeMode) -{ - UT_DEFAULT_IMPL(FM_ChildDirListFileLoop); -} + UT_GenStub_Execute(FM_ChildSizeTimeMode, Basic, NULL); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task utility function -- get dir entry size and time */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + return UT_GenStub_GetReturnValue(FM_ChildSizeTimeMode, int32); +} -int32 FM_ChildSizeTimeMode(const char *Filename, uint32 *FileSize, uint32 *FileTime, uint32 *FileMode) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildSleepStat() + * ---------------------------------------------------- + */ +void FM_ChildSleepStat(const char *Filename, FM_DirListEntry_t *DirListData, int32 *FilesTillSleep, + bool GetSizeTimeMode) { - return UT_DEFAULT_IMPL(FM_ChildSizeTimeMode); -} + UT_GenStub_AddParam(FM_ChildSleepStat, const char *, Filename); + UT_GenStub_AddParam(FM_ChildSleepStat, FM_DirListEntry_t *, DirListData); + UT_GenStub_AddParam(FM_ChildSleepStat, int32 *, FilesTillSleep); + UT_GenStub_AddParam(FM_ChildSleepStat, bool, GetSizeTimeMode); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM child task utility function -- sleep between OS_stat on files*/ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ChildSleepStat, Basic, NULL); +} -void FM_ChildSleepStat(const char *Filename, FM_DirListEntry_t *DirListData, int32 *FilesTillSleep, - bool getSizeTimeMode) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ChildTask() + * ---------------------------------------------------- + */ +void FM_ChildTask(void) { - UT_Stub_RegisterContext(UT_KEY(FM_ChildSleepStat), Filename); - UT_Stub_RegisterContext(UT_KEY(FM_ChildSleepStat), DirListData); - UT_Stub_RegisterContext(UT_KEY(FM_ChildSleepStat), FilesTillSleep); - UT_Stub_RegisterContextGenericArg(UT_KEY(FM_ChildSleepStat), getSizeTimeMode); - UT_DEFAULT_IMPL(FM_ChildSleepStat); + + UT_GenStub_Execute(FM_ChildTask, Basic, NULL); } diff --git a/unit-test/stubs/fm_tbl_stubs.c b/unit-test/stubs/fm_tbl_stubs.c index c7a37c6..238448e 100644 --- a/unit-test/stubs/fm_tbl_stubs.c +++ b/unit-test/stubs/fm_tbl_stubs.c @@ -19,72 +19,61 @@ /** * @file - * Provides functions for the initialization, validation, and - * management of the FM File System Free Space Table + * + * Auto-Generated stub implementations for functions defined in fm_tbl header */ -#include "cfe.h" -#include "fm_platform_cfg.h" -#include "fm_msg.h" #include "fm_tbl.h" -#include "fm_events.h" -#include "fm_perfids.h" -#include "fm_child.h" -#include "fm_test_utils.h" +#include "utgenstub.h" -/************************************************************************ -** UT Includes -*************************************************************************/ -#include "uttest.h" -#include "utassert.h" -#include "utstubs.h" +/* + * ---------------------------------------------------- + * Generated stub function for FM_AcquireTablePointers() + * ---------------------------------------------------- + */ +void FM_AcquireTablePointers(void) +{ + + UT_GenStub_Execute(FM_AcquireTablePointers, Basic, NULL); +} -#include +/* + * ---------------------------------------------------- + * Generated stub function for FM_ReleaseTablePointers() + * ---------------------------------------------------- + */ +void FM_ReleaseTablePointers(void) +{ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM table function -- startup initialization */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_ReleaseTablePointers, Basic, NULL); +} +/* + * ---------------------------------------------------- + * Generated stub function for FM_TableInit() + * ---------------------------------------------------- + */ int32 FM_TableInit(void) { - int32 status; - status = UT_DEFAULT_IMPL(FM_TableInit); - return status; -} + UT_GenStub_SetupReturnBuffer(FM_TableInit, int32); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM table function -- table data verification */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_Execute(FM_TableInit, Basic, NULL); -int32 FM_ValidateTable(FM_MonitorTable_t *TablePtr) -{ - int32 status; - status = UT_DEFAULT_IMPL(FM_ValidateTable); - return status; + return UT_GenStub_GetReturnValue(FM_TableInit, int32); } -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM table function -- acquire table data pointer */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -void FM_AcquireTablePointers(void) +/* + * ---------------------------------------------------- + * Generated stub function for FM_ValidateTable() + * ---------------------------------------------------- + */ +int32 FM_ValidateTable(FM_MonitorTable_t *TablePtr) { - UT_DEFAULT_IMPL(FM_AcquireTablePointers); -} + UT_GenStub_SetupReturnBuffer(FM_ValidateTable, int32); -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* */ -/* FM table function -- release table data pointer */ -/* */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + UT_GenStub_AddParam(FM_ValidateTable, FM_MonitorTable_t *, TablePtr); -void FM_ReleaseTablePointers(void) -{ - UT_DEFAULT_IMPL(FM_ReleaseTablePointers); + UT_GenStub_Execute(FM_ValidateTable, Basic, NULL); + + return UT_GenStub_GetReturnValue(FM_ValidateTable, int32); }