#include "cpptest.h"

CPPTEST_CONTEXT("/UT_DFBProject/mstar_g2/mstar_layer.c");
CPPTEST_TEST_SUITE_INCLUDED_TO("/UT_DFBProject/mstar_g2/mstar_layer.c");

CPPTEST_TEST_SUITE(TestSuite_mstar_layer_c_eb559248);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarDFBFmt2MSFmt_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetSurfInfoSlotFree_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarFreeRelatedSurfInfo_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarAllSurfInfo_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarGetFreeSurfInfoSlot_Slot5);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarGetFreeSurfInfoSlot_NoSlot);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstardumpsurinfoslot_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbyGWinID_FBId5);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbyGWinID_NoFBId);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurfacewithExcept_FBId5);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurfacewithExcept_NoFBId);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurface_FBId5);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurface_NoFBId);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetSlotGWinID_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetSurfInfoSlot_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetAFreeOne);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetNoFreeOne);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_SetANewOne);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarLayerDataSize_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarRegionDataSize_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_MIXER2VE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_IP0);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarReorderGWIN_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_MIXER2VE_Layer);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_OP0_Layer);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_NoSharedMemory);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_fusion_call_execute);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_OK);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarAddRegion_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_NoSharedMemory);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_DFB_FUSION);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_OK);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_WIDTH);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_HEIGHT);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_FORMAT);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SURFACE_CAPS);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_BUFFERMODE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_OPTIONS);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SOURCE_ID);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SOURCE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_DEST);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_CLIPS);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_OPACITY);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_ALPHA_RAMP);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SRCKEY);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_DSTKEY);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_PARITY);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_TILEMODE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_HSTRETCH);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_VSTRETCH);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_TSTRETCH);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_PALETTE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_FREEZE);
#if 1
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE);
#endif
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_FRAMEPACKING_NORMAL);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_NORMAL_LEFTRIGHT);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_1);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_2);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_3);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_NoSharedMem);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_1);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_2);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_NoSharedMemory);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_DFB_FUSION);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_1);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_2);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_DFB_FAILURE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_NG_1);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_dfb_surface_create_NG_2);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_3Buf);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_2Buf);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_1Buf);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_surface_reconfig_NG);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_palette_create_NG);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_3Buf);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_2Buf);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstar_primaryDeallocateSurface_default);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_E_GOP_DST_VE);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Enable);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Disable);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetLBCoupleEnable_Enable);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetLBCoupleEnable_Disable);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDstByPassEnable_Enable);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDstByPassEnable_Disable);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVScale);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_OP);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_IP);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_ByPass);
CPPTEST_TEST(TestSuite_mstar_layer_c_eb559248_test__mstar_SetBootLogoPatch_Default);
CPPTEST_TEST_SUITE_END();
        

void TestSuite_mstar_layer_c_eb559248_test__mstarDFBFmt2MSFmt_default();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetSurfInfoSlotFree_default();
void TestSuite_mstar_layer_c_eb559248_test__mstarFreeRelatedSurfInfo_default();
void TestSuite_mstar_layer_c_eb559248_test_mstarAllSurfInfo_default();
void TestSuite_mstar_layer_c_eb559248_test__mstarGetFreeSurfInfoSlot_Slot5();
void TestSuite_mstar_layer_c_eb559248_test__mstarGetFreeSurfInfoSlot_NoSlot();
void TestSuite_mstar_layer_c_eb559248_test__mstardumpsurinfoslot_default();
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbyGWinID_FBId5();
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbyGWinID_NoFBId();
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurfacewithExcept_FBId5();
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurfacewithExcept_NoFBId();
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurface_FBId5();
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurface_NoFBId();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetSlotGWinID_default();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetSurfInfoSlot_default();
void TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetAFreeOne();
void TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetNoFreeOne();
void TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_SetANewOne();
void TestSuite_mstar_layer_c_eb559248_test_mstarLayerDataSize_default();
void TestSuite_mstar_layer_c_eb559248_test_mstarRegionDataSize_default();
void TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP();
void TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_MIXER2VE();
void TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_IP0();
void TestSuite_mstar_layer_c_eb559248_test_mstarReorderGWIN_default();
void TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer();
void TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_MIXER2VE_Layer();
void TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_OP0_Layer();
void TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_NoSharedMemory();
void TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_fusion_call_execute();
void TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_OK();
void TestSuite_mstar_layer_c_eb559248_test__mstarAddRegion_default();
void TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_NoSharedMemory();
void TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_DFB_FUSION();
void TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_OK();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_WIDTH();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_HEIGHT();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_FORMAT();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SURFACE_CAPS();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_BUFFERMODE();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_OPTIONS();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SOURCE_ID();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SOURCE();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_DEST();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_CLIPS();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_OPACITY();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_ALPHA_RAMP();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SRCKEY();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_DSTKEY();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_PARITY();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_TILEMODE();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_HSTRETCH();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_VSTRETCH();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_TSTRETCH();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_PALETTE();
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_FREEZE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_FRAMEPACKING_NORMAL();
void TestSuite_mstar_layer_c_eb559248_NORMAL_FRAMEPACKING();
void TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_NORMAL_LEFTRIGHT();
void TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_1();
void TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_2();
void TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_3();
void TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_default();
void TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_NoSharedMem();
void TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_1();
void TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_2();
void TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_default();
void TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default();
void TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_NoSharedMemory();
void TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_DFB_FUSION();
void TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_default();
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_1();
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_2();
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_DFB_FAILURE();
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3();
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_NG_1();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_dfb_surface_create_NG_2();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_3Buf();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_2Buf();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_1Buf();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_surface_reconfig_NG();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_palette_create_NG();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_3Buf();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_2Buf();
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryDeallocateSurface_default();
void TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_E_GOP_DST_VE();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Enable();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Disable();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetLBCoupleEnable_Enable();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetLBCoupleEnable_Disable();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDstByPassEnable_Enable();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDstByPassEnable_Disable();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVScale();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_OP();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_IP();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_ByPass();
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetBootLogoPatch_Default();
CPPTEST_TEST_SUITE_REGISTRATION(TestSuite_mstar_layer_c_eb559248);

extern bool bRunInMock_MApi_GOP_GWIN_DestroyFBInfo;
extern bool bRunInMock_mstarSetSurfInfoSlotFreeInfo;
extern bool bRunInMock_mstarGetFreeSurfInfoSlotInfo;
extern bool bRunInMock_MApi_GOP_GWIN_CreateFBFrom3rdSurfInfo;
extern bool bRunInMock_mstarSetSurfInfoSlotInfo;
extern bool bRunInMock_fusion_reactor_newInfo;
extern bool bRunInMock_fusion_call_initInfo;
extern bool bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo;
extern bool bRunInMock_MApi_GOP_GWIN_OutputColorInfo;
extern bool bRunInMock_dfb_core_shmpool_dataInfo;
extern bool bRunInMock_fusion_dbg_shmallocInfo;
extern bool bRunInMock_fusion_call_executeInfo;
extern bool bRunInMock_fusion_dbg_shfreeInfo;
extern bool bRunInMock_MApi_GOP_GWIN_OutputColorInfo;
extern bool bRunInMock_fusion_skirmish_prevailInfo;
extern bool bRunInMock_mstarBuildUpdateInfo;
extern bool bRunInMock_mstarGFXAddrInfo;
extern bool bRunInMock_mstar_sc_is_interlaceInfo;
extern bool bRunInMock_dfb_gfxcard_memory_physicalInfo;
extern bool bRunInMock_dfb_gfxcard_memory_virtualInfo;
extern bool bRunInMock_MApi_GOP_GWIN_DestroyWinInfo;
extern bool bRunInMock__mstarFindFBIdbyGWinIDInfo;
extern bool bRunInMock_mstarSetSurfInfoSlotFreeInfo;
extern bool bRunInMock__mstarGetSurfInfoSlotInfo;
extern bool bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo;
extern bool bRunInMock__mstarSetSlotGWinIDInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo;
extern bool bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo;
extern bool bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo;
extern bool bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo;
extern bool bRunInMock_MApi_GOP_SetPINPONInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info;
extern bool bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo;
extern bool bRunInMock_MApi_GOP_GetChipCapsInfo;
extern bool bRunInMock_MApi_GOP_SetConfigInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetBlendingInfo;
extern bool bRunInMock_MApi_GOP_GWIN_EnableInfo;
extern bool bRunInMock_mstarReorderGWINInfo;
extern bool bRunInMock_fusion_skirmish_dismissInfo;
extern bool bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo;
extern bool bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo;
extern bool bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo;
extern bool bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetPaletteOptInfo;
extern bool bRunInMock_mstarGFXAddrInfo;
extern bool bRunInMock__mstarRecordLayerCurPhyAddrInfo;
extern bool bRunInMock_dfb_surface_flipInfo;
extern bool bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo;
extern bool bRunInMock__mstarDFBFmt2MSFmtInfo;
extern bool bRunInMock_dfb_surface_createInfo;
extern bool bRunInMock_dfb_surface_reconfigInfo;
extern bool bRunInMock_dfb_palette_createInfo;
extern bool bRunInMock_dfb_palette_generate_rgb332_mapInfo;
extern bool bRunInMock_dfb_surface_set_paletteInfo;
extern bool bRunInMock_dfb_palette_unrefInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo;
extern bool bRunInMock_MApi_GOP_EnableLBCouple;


void TestSuite_mstar_layer_c_eb559248_setUp()
{

}

void TestSuite_mstar_layer_c_eb559248_tearDown()
{

}


/* CPPTEST_TEST_CASE_BEGIN test__mstarDFBFmt2MSFmt_default */
/* CPPTEST_TEST_CASE_CONTEXT MS_ColorFormat _mstarDFBFmt2MSFmt(DFBSurfacePixelFormat) */
void TestSuite_mstar_layer_c_eb559248_test__mstarDFBFmt2MSFmt_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_ARGB1555;
    {
        /* Tested function call */
        MS_ColorFormat _return  = _mstarDFBFmt2MSFmt(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( E_MS_FMT_ARGB1555, ( _return ) );
    }

    _format  = DSPF_ARGB;
    {
        /* Tested function call */
        MS_ColorFormat _return  = _mstarDFBFmt2MSFmt(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( E_MS_FMT_ARGB8888, ( _return ) );
    }

    _format  = DSPF_LUT8;
    {
        /* Tested function call */
        MS_ColorFormat _return  = _mstarDFBFmt2MSFmt(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( E_MS_FMT_I8, ( _return ) );
    }

    _format  = DSPF_ARGB4444;
    {
        /* Tested function call */
        MS_ColorFormat _return  = _mstarDFBFmt2MSFmt(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( E_MS_FMT_ARGB4444, ( _return ) );
    }

    _format  = DSPF_RGB16;
    {
        /* Tested function call */
        MS_ColorFormat _return  = _mstarDFBFmt2MSFmt(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( E_MS_FMT_RGB565, ( _return ) );
    }

    _format  = DSPF_UNKNOWN;
    {
        /* Tested function call */
        MS_ColorFormat _return  = _mstarDFBFmt2MSFmt(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( E_MS_FMT_GENERIC, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarDFBFmt2MSFmt_default */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetSurfInfoSlotFree_default */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarSetSurfInfoSlotFree(MSTARDriverData *, int) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetSurfInfoSlotFree_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
    MSTARDriverData _a_sdrv;
    /* Initializing argument 2 (slotID) */ 
    int _slotID  = 10;  //init

    _a_sdrv.mstarLayerBuffer[_slotID].u16SlotUsed  = 1;
    _a_sdrv.mstarLayerBuffer[_slotID].u8GWinID     = 0x10;

    {
        /* Tested function call */
        _mstarSetSurfInfoSlotFree( &_a_sdrv, _slotID);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_sdrv.mstarLayerBuffer[_slotID].u16SlotUsed );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xee, _a_sdrv.mstarLayerBuffer[_slotID].u8GWinID );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetSurfInfoSlotFree_default */

/* CPPTEST_TEST_CASE_BEGIN test__mstarFreeRelatedSurfInfo_default */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarFreeRelatedSurfInfo(MSTARDriverData *, CoreSurface *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarFreeRelatedSurfInfo_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData _a_sdrv;
    /* Initializing argument 2 (surf) */ 
    //CoreSurface * _surf  = 0 ;
	CoreSurface _a_surf;

	_a_sdrv.mstarLayerBuffer[10].u16SlotUsed = 1;
	_a_sdrv.mstarLayerBuffer[10].pCoDFBCoreSurface = &_a_surf;
	_a_sdrv.mstarLayerBuffer[10].u8GWinID = 0xee;


	bRunInMock_MApi_GOP_GWIN_DestroyFBInfo   = false;  //before
	bRunInMock_mstarSetSurfInfoSlotFreeInfo = false;  //before

    {
        /* Tested function call */
        _mstarFreeRelatedSurfInfo( &_a_sdrv, &_a_surf);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surf ", ( _surf ));

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);

        CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_sdrv.mstarLayerBuffer[10].u16SlotUsed );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xee, _a_sdrv.mstarLayerBuffer[10].u8GWinID );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarFreeRelatedSurfInfo_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarAllSurfInfo_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstarAllSurfInfo(MSTARDriverData *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarAllSurfInfo_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;

	_a_sdrv.mstarLayerBuffer[10].u16SlotUsed = 1;
    _a_sdrv.mstarLayerBuffer[10].u8GWinID    = 0x10;

	bRunInMock_MApi_GOP_GWIN_DestroyFBInfo   = false;  //before
	bRunInMock_mstarSetSurfInfoSlotFreeInfo = false;  //before

    {
        /* Tested function call */
        mstarAllSurfInfo( &_a_sdrv );

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);

        CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_sdrv.mstarLayerBuffer[10].u16SlotUsed );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xee, _a_sdrv.mstarLayerBuffer[10].u8GWinID );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarAllSurfInfo_default */

/* CPPTEST_TEST_CASE_BEGIN test__mstarGetFreeSurfInfoSlot_Slot5 */
/* CPPTEST_TEST_CASE_CONTEXT int _mstarGetFreeSurfInfoSlot(MSTARDriverData *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarGetFreeSurfInfoSlot_Slot5()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData _a_sdrv;
	int i;

	for (i=0; i<=4; i++)
		_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 1;
	_a_sdrv.mstarLayerBuffer[5].u16SlotUsed = 0;

    {
        /* Tested function call */
        int _return  = _mstarGetFreeSurfInfoSlot( &_a_sdrv );

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 5, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarGetFreeSurfInfoSlot_Slot5 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarGetFreeSurfInfoSlot_NoSlot */
/* CPPTEST_TEST_CASE_CONTEXT int _mstarGetFreeSurfInfoSlot(MSTARDriverData *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarGetFreeSurfInfoSlot_NoSlot()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (sdrv) */
	//MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData _a_sdrv;
	int i;

	for (i=0; i<MSTARGFX_MAX_LAYER_BUFFER; i++)
		_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 1;

    {
        /* Tested function call */
        int _return  = _mstarGetFreeSurfInfoSlot( &_a_sdrv );

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( -1, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarGetFreeSurfInfoSlot_NoSlot */

/* CPPTEST_TEST_CASE_BEGIN test__mstardumpsurinfoslot_default */
/* CPPTEST_TEST_CASE_CONTEXT int _mstardumpsurinfoslot(MSTARDriverData *) */
void TestSuite_mstar_layer_c_eb559248_test__mstardumpsurinfoslot_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;

    {
        /* Tested function call */
        int _return  = _mstardumpsurinfoslot( &_a_sdrv );

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstardumpsurinfoslot_default */

/* CPPTEST_TEST_CASE_BEGIN test__mstarFindFBIdbyGWinID_FBId5 */
/* CPPTEST_TEST_CASE_CONTEXT u8 _mstarFindFBIdbyGWinID(MSTARDriverData *, u8, u16 *, CoreSurface **) */
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbyGWinID_FBId5()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;
    /* Initializing argument 2 (u8GWindID) */ 
    uint8_t _u8GWindID  = 10;
    /* Initializing argument 3 (u16SlotID) */ 
    //u16 * _u16SlotID  = 0 ;
    u16 _a_u16SlotID;
    /* Initializing argument 4 (pSurface) */ 
    //CoreSurface ** _pSurface  = 0 ;
    CoreSurface * _pSurface  = 0 ;
    int i;

    for (i=0; i<=4; i++)
    	_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 0;
    _a_sdrv.mstarLayerBuffer[5].u16SlotUsed = 1;

    _a_sdrv.mstarLayerBuffer[5].u8GWinID = _u8GWindID;
    _a_sdrv.mstarLayerBuffer[5].pCoDFBCoreSurface =0x20;
    _a_sdrv.mstarLayerBuffer[5].u16GOPFBID = 11;

    {
        /* Tested function call */
        u8 _return  = _mstarFindFBIdbyGWinID( &_a_sdrv, _u8GWindID, &_a_u16SlotID, &_pSurface);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER("uint8_t _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _u16SlotID ", ( _u16SlotID ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface ** _pSurface ", ( _pSurface ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 5, _a_u16SlotID );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x20, _pSurface );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 11, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarFindFBIdbyGWinID_FBId5 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarFindFBIdbyGWinID_NoFBId */
/* CPPTEST_TEST_CASE_CONTEXT u8 _mstarFindFBIdbyGWinID(MSTARDriverData *, u8, u16 *, CoreSurface **) */
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbyGWinID_NoFBId()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (sdrv) */
	//MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;
	/* Initializing argument 2 (u8GWindID) */
	uint8_t _u8GWindID  = 10;
	/* Initializing argument 3 (u16SlotID) */
	//u16 * _u16SlotID  = 0 ;
	u16 _a_u16SlotID;
	/* Initializing argument 4 (pSurface) */
	//CoreSurface ** _pSurface  = 0 ;
	CoreSurface * _pSurface  = 0 ;
	int i;

	for (i=0; i<MSTARGFX_MAX_LAYER_BUFFER; i++)
		_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 0;

    {
	        /* Tested function call */
	    u8 _return  = _mstarFindFBIdbyGWinID( &_a_sdrv, _u8GWindID, &_a_u16SlotID, &_pSurface);
	    /* Post-condition check */
	    //CPPTEST_POST_CONDITION_UINTEGER("uint8_t _return", ( _return ));
	    //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
	    //CPPTEST_POST_CONDITION_PTR("u16 * _u16SlotID ", ( _u16SlotID ));
	    //CPPTEST_POST_CONDITION_PTR("CoreSurface ** _pSurface ", ( _pSurface ));

	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0xff, _return );
	}
}
/* CPPTEST_TEST_CASE_END test__mstarFindFBIdbyGWinID_NoFBId */

/* CPPTEST_TEST_CASE_BEGIN test__mstarFindFBIdbySurfacewithExcept_FBId5 */
/* CPPTEST_TEST_CASE_CONTEXT u8 _mstarFindFBIdbySurfacewithExcept(MSTARDriverData *, u8, u16 *, CoreSurface *, u16 *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurfacewithExcept_FBId5()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;
    /* Initializing argument 2 (u8GWindID) */ 
    uint8_t _u8GWindID  = 10;
    /* Initializing argument 3 (u16SlotID) */ 
    //u16 * _u16SlotID  = 0 ;
    u16  _a_u16SlotID;
    /* Initializing argument 4 (pSurface) */ 
    //CoreSurface * _pSurface  = 0 ;
    CoreSurface  _a_pSurface;
    /* Initializing argument 5 (pExcept) */ 
    //u16 * _pExcept  = 0 ;
    u16  _a_pExcept = 20;
    int i;

    for (i=0; i<=5; i++)
    {
    	_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 1;
    	_a_sdrv.mstarLayerBuffer[i].pCoDFBCoreSurface = &_a_pSurface;
    }

    _a_sdrv.mstarLayerBuffer[0].u8GWinID = 9;
    _a_sdrv.mstarLayerBuffer[1].u8GWinID = 9;
    _a_sdrv.mstarLayerBuffer[2].u8GWinID = 10;
    _a_sdrv.mstarLayerBuffer[3].u8GWinID = 10;
    _a_sdrv.mstarLayerBuffer[4].u8GWinID = 10;
    _a_sdrv.mstarLayerBuffer[5].u8GWinID = 10;

    _a_sdrv.mstarLayerBuffer[2].u16GOPFBID = _a_pExcept;
    _a_sdrv.mstarLayerBuffer[3].u16GOPFBID = _a_pExcept;
    _a_sdrv.mstarLayerBuffer[4].u16GOPFBID = _a_pExcept;
    _a_sdrv.mstarLayerBuffer[5].u16GOPFBID = _a_pExcept + 10;

    {
        /* Tested function call */
        u8 _return  = _mstarFindFBIdbySurfacewithExcept( &_a_sdrv, _u8GWindID, &_a_u16SlotID, &_a_pSurface, &_a_pExcept);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER("uint8_t _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _u16SlotID ", ( _u16SlotID ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _pSurface ", ( _pSurface ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pExcept ", ( _pExcept ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 5, _a_u16SlotID );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 30, _return );

    }
}
/* CPPTEST_TEST_CASE_END test__mstarFindFBIdbySurfacewithExcept_FBId5 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarFindFBIdbySurfacewithExcept_NoFBId */
/* CPPTEST_TEST_CASE_CONTEXT u8 _mstarFindFBIdbySurfacewithExcept(MSTARDriverData *, u8, u16 *, CoreSurface *, u16 *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurfacewithExcept_NoFBId()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;
    /* Initializing argument 2 (u8GWindID) */ 
    uint8_t _u8GWindID  = 10;
    /* Initializing argument 3 (u16SlotID) */ 
    //u16 * _u16SlotID  = 0 ;
    u16  _a_u16SlotID;
    /* Initializing argument 4 (pSurface) */ 
    //CoreSurface * _pSurface  = 0 ;
    CoreSurface  _a_pSurface;
    /* Initializing argument 5 (pExcept) */ 
    //u16 * _pExcept  = 0 ;
    u16  _a_pExcept = 20;
    int i;

    for (i=0; i<MSTARGFX_MAX_LAYER_BUFFER; i++)
    	_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 0;

    {
        /* Tested function call */
        u8 _return  = _mstarFindFBIdbySurfacewithExcept( &_a_sdrv, _u8GWindID, &_a_u16SlotID, &_a_pSurface, &_a_pExcept);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER("uint8_t _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _u16SlotID ", ( _u16SlotID ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _pSurface ", ( _pSurface ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pExcept ", ( _pExcept ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xff, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarFindFBIdbySurfacewithExcept_NoFBId */

/* CPPTEST_TEST_CASE_BEGIN test__mstarFindFBIdbySurface_FBId5 */
/* CPPTEST_TEST_CASE_CONTEXT u8 _mstarFindFBIdbySurface(MSTARDriverData *, u8, u16 *, CoreSurface *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurface_FBId5()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;
    /* Initializing argument 2 (u8GWindID) */ 
    uint8_t _u8GWindID  = 10;
    /* Initializing argument 3 (u16SlotID) */ 
    u16  _a_u16SlotID;
    /* Initializing argument 4 (pSurface) */ 
    //CoreSurface * _pSurface  = 0 ;
    CoreSurface  _a_pSurface;
    int i;

    for (i=0; i<=5; i++)
    {
    	_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 1;
    	_a_sdrv.mstarLayerBuffer[i].pCoDFBCoreSurface = &_a_pSurface;
    }

    _a_sdrv.mstarLayerBuffer[0].u8GWinID = _u8GWindID+1;
    _a_sdrv.mstarLayerBuffer[1].u8GWinID = _u8GWindID+1;
    _a_sdrv.mstarLayerBuffer[2].u8GWinID = _u8GWindID+1;
    _a_sdrv.mstarLayerBuffer[3].u8GWinID = _u8GWindID+1;
    _a_sdrv.mstarLayerBuffer[4].u8GWinID = _u8GWindID+1;
    _a_sdrv.mstarLayerBuffer[5].u8GWinID = _u8GWindID;

    _a_sdrv.mstarLayerBuffer[5].u16GOPFBID = 100;

    {
        /* Tested function call */
        u8 _return  = _mstarFindFBIdbySurface( &_a_sdrv, _u8GWindID, &_a_u16SlotID, &_a_pSurface);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER("uint8_t _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _u16SlotID ", ( _u16SlotID ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _pSurface ", ( _pSurface ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 5, _a_u16SlotID );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 100, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarFindFBIdbySurface_FBId5 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarFindFBIdbySurface_NoFBId */
/* CPPTEST_TEST_CASE_CONTEXT u8 _mstarFindFBIdbySurface(MSTARDriverData *, u8, u16 *, CoreSurface *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarFindFBIdbySurface_NoFBId()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;
    /* Initializing argument 2 (u8GWindID) */
    uint8_t _u8GWindID  = 10;
    /* Initializing argument 3 (u16SlotID) */
    u16  _a_u16SlotID;
    /* Initializing argument 4 (pSurface) */
    //CoreSurface * _pSurface  = 0 ;
    CoreSurface  _a_pSurface;
    int i;

    for (i=0; i<MSTARGFX_MAX_LAYER_BUFFER; i++)
    	_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 0;

    {
        /* Tested function call */
        u8 _return  = _mstarFindFBIdbySurface( &_a_sdrv, _u8GWindID, &_a_u16SlotID, &_a_pSurface);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER("uint8_t _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _u16SlotID ", ( _u16SlotID ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _pSurface ", ( _pSurface ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xff, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarFindFBIdbySurface_NoFBId */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetSlotGWinID_default */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarSetSlotGWinID(MSTARDriverData *, int, u8) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetSlotGWinID_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;
    /* Initializing argument 2 (slotID) */ 
    int _slotID  = 10;
    /* Initializing argument 3 (u8GWinID) */ 
    uint8_t _u8GWinID  = 23;

    _a_sdrv.mstarLayerBuffer[_slotID].u16SlotUsed = 0;
    _a_sdrv.mstarLayerBuffer[_slotID].u8GWinID = 0;

    {
        /* Tested function call */
        _mstarSetSlotGWinID( &_a_sdrv, _slotID, _u8GWinID);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 1, _a_sdrv.mstarLayerBuffer[_slotID].u16SlotUsed );
        CPPTEST_ASSERT_UINTEGER_EQUAL( _u8GWinID, _a_sdrv.mstarLayerBuffer[_slotID].u8GWinID );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetSlotGWinID_default */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetSurfInfoSlot_default */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarSetSurfInfoSlot(MSTARDriverData *, int, u16, CoreSurface *, CoreSurfaceBuffer *, unsigned long, unsigned long) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetSurfInfoSlot_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData  _a_sdrv;
    /* Initializing argument 2 (slotID) */ 
    int _slotID  = 5;
    /* Initializing argument 3 (u16FBID) */ 
    uint16_t _u16FBID  = 10;
    /* Initializing argument 4 (surf) */ 
    //CoreSurface * _surf  = 0 ;
    CoreSurface _a_surf;
    /* Initializing argument 5 (buffer) */ 
    //CoreSurfaceBuffer * _buffer  = 0 ;
    CoreSurfaceBuffer  _a_buffer;
    /* Initializing argument 6 (physAddr) */ 
    unsigned long _physAddr  = 0xab;
    /* Initializing argument 7 (pitch) */ 
    unsigned long _pitch  = 123;

    _a_surf.config.format = DSPF_UNKNOWN;

    {
        /* Tested function call */
        _mstarSetSurfInfoSlot( &_a_sdrv, _slotID, _u16FBID, &_a_surf, &_a_buffer, _physAddr, _pitch);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surf ", ( _surf ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBuffer * _buffer ", ( _buffer ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 10, _a_sdrv.mstarLayerBuffer[5].u16GOPFBID );
        CPPTEST_ASSERT_UINTEGER_EQUAL( &_a_surf, _a_sdrv.mstarLayerBuffer[5].pCoDFBCoreSurface );
        CPPTEST_ASSERT_UINTEGER_EQUAL( &_a_buffer, _a_sdrv.mstarLayerBuffer[5].pCoDFBBuffer );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xab, _a_sdrv.mstarLayerBuffer[5].physAddr );
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_UNKNOWN, _a_sdrv.mstarLayerBuffer[5].format );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 1, _a_sdrv.mstarLayerBuffer[5].u16SlotUsed );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 123, _a_sdrv.mstarLayerBuffer[5].pitch );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetSurfInfoSlot_default */

/* CPPTEST_TEST_CASE_BEGIN test__mstarGetSurfInfoSlot_GetAFreeOne */
/* CPPTEST_TEST_CASE_CONTEXT int _mstarGetSurfInfoSlot(MSTARDriverData *, MSTARLayerData *, CoreSurface *, CoreSurfaceBuffer *, unsigned long, unsigned long, u16 *, _Bool *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetAFreeOne()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData _a_sdrv;
    /* Initializing argument 2 (slay) */ 
    //MSTARLayerData * _slay  = 0 ;
	MSTARLayerData _a_slay;
    /* Initializing argument 3 (surf) */ 
    //CoreSurface * _surf  = 0 ;
	CoreSurface _a_surf;
    /* Initializing argument 4 (buffer) */ 
    //CoreSurfaceBuffer * _buffer  = 0 ;
	CoreSurfaceBuffer _a_buffer;
    /* Initializing argument 5 (phys) */ 
    unsigned long _phys  = 0x1a;
    /* Initializing argument 6 (pitch) */ 
    unsigned long _pitch  = 21;
    /* Initializing argument 7 (pFBId) */ 
    //u16 * _pFBId  = 0 ;
    u16 _a_pFBId  = 0 ;
    /* Initializing argument 8 (bNew) */ 
    //_Bool * _bNew  = 0 ;
    _Bool _a_bNew = true;
    int i;

    _a_surf.config.format = DSPF_UNKNOWN;

    for (i=0; i<=5; i++)
    {
    	_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 0;
		_a_sdrv.mstarLayerBuffer[i].pCoDFBBuffer = &_a_buffer;
		_a_sdrv.mstarLayerBuffer[i].pCoDFBCoreSurface = &_a_surf;
		_a_sdrv.mstarLayerBuffer[i].format = _a_surf.config.format;
		_a_sdrv.mstarLayerBuffer[i].pitch = _pitch;
		_a_sdrv.mstarLayerBuffer[i].physAddr = _phys;
    }
    _a_sdrv.mstarLayerBuffer[5].u16SlotUsed = 1;

    _a_sdrv.mstarLayerBuffer[5].u16GOPFBID = 100;

    {
        /* Tested function call */
        int _return  = _mstarGetSurfInfoSlot( &_a_sdrv, &_a_slay, &_a_surf, &_a_buffer, _phys, _pitch, &_a_pFBId, &_a_bNew);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARLayerData * _slay ", ( _slay ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surf ", ( _surf ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBuffer * _buffer ", ( _buffer ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pFBId ", ( _pFBId ));
        //CPPTEST_POST_CONDITION_PTR("_Bool * _bNew ", ( _bNew ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( 100, _a_pFBId );
        CPPTEST_ASSERT_UINTEGER_EQUAL( false, _a_bNew );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 5, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarGetSurfInfoSlot_GetAFreeOne */

/* CPPTEST_TEST_CASE_BEGIN test__mstarGetSurfInfoSlot_GetNoFreeOne */
/* CPPTEST_TEST_CASE_CONTEXT int _mstarGetSurfInfoSlot(MSTARDriverData *, MSTARLayerData *, CoreSurface *, CoreSurfaceBuffer *, unsigned long, unsigned long, u16 *, _Bool *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetNoFreeOne()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (sdrv) */
	//MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData _a_sdrv;
	/* Initializing argument 2 (slay) */
	//MSTARLayerData * _slay  = 0 ;
	MSTARLayerData _a_slay;
	/* Initializing argument 3 (surf) */
	//CoreSurface * _surf  = 0 ;
	CoreSurface _a_surf;
	/* Initializing argument 4 (buffer) */
	//CoreSurfaceBuffer * _buffer  = 0 ;
	CoreSurfaceBuffer _a_buffer;
	/* Initializing argument 5 (phys) */
	unsigned long _phys  = 0x1a;
	/* Initializing argument 6 (pitch) */
	unsigned long _pitch  = 21;
	/* Initializing argument 7 (pFBId) */
	//u16 * _pFBId  = 0 ;
	u16 _a_pFBId  = 0 ;
	/* Initializing argument 8 (bNew) */
	//_Bool * _bNew  = 0 ;
	_Bool _a_bNew = true;
	int i;

    _a_surf.config.format = DSPF_UNKNOWN;

    for (i=0; i<MSTARGFX_MAX_LAYER_BUFFER; i++)
    {
    	_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 0;
		#if 0
    	_a_sdrv.mstarLayerBuffer[i].pCoDFBBuffer = &_a_buffer;
		_a_sdrv.mstarLayerBuffer[i].pCoDFBCoreSurface = &_a_surf;
		_a_sdrv.mstarLayerBuffer[i].format = _a_surf.config.format;
		_a_sdrv.mstarLayerBuffer[i].pitch = _pitch;
		_a_sdrv.mstarLayerBuffer[i].physAddr = _phys;
		#endif
    }

    bRunInMock_mstarGetFreeSurfInfoSlotInfo          = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateFBFrom3rdSurfInfo = false;  //before
    bRunInMock_mstarSetSurfInfoSlotFreeInfo          = false;  //before

    {
        /* Tested function call */
        int _return  = _mstarGetSurfInfoSlot( &_a_sdrv, &_a_slay, &_a_surf, &_a_buffer, _phys, _pitch, &_a_pFBId, &_a_bNew);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARLayerData * _slay ", ( _slay ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surf ", ( _surf ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBuffer * _buffer ", ( _buffer ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pFBId ", ( _pFBId ));
        //CPPTEST_POST_CONDITION_PTR("_Bool * _bNew ", ( _bNew ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGetFreeSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateFBFrom3rdSurfInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(-1, _return);

        //CPPTEST_ASSERT_UINTEGER_EQUAL( 5, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarGetSurfInfoSlot_GetNoFreeOne */

/* CPPTEST_TEST_CASE_BEGIN test__mstarGetSurfInfoSlot_SetANewOne */
/* CPPTEST_TEST_CASE_CONTEXT int _mstarGetSurfInfoSlot(MSTARDriverData *, MSTARLayerData *, CoreSurface *, CoreSurfaceBuffer *, unsigned long, unsigned long, u16 *, _Bool *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_SetANewOne()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (sdrv) */
	//MSTARDriverData * _sdrv  = 0 ;
	MSTARDriverData _a_sdrv;
	/* Initializing argument 2 (slay) */
	//MSTARLayerData * _slay  = 0 ;
	MSTARLayerData _a_slay;
	/* Initializing argument 3 (surf) */
	//CoreSurface * _surf  = 0 ;
	CoreSurface _a_surf;
	/* Initializing argument 4 (buffer) */
	//CoreSurfaceBuffer * _buffer  = 0 ;
	CoreSurfaceBuffer _a_buffer;
	/* Initializing argument 5 (phys) */
	unsigned long _phys  = 0x1a;
	/* Initializing argument 6 (pitch) */
	unsigned long _pitch  = 21;
	/* Initializing argument 7 (pFBId) */
	//u16 * _pFBId  = 0 ;
	u16 _a_pFBId  = 0 ;
	/* Initializing argument 8 (bNew) */
	//_Bool * _bNew  = 0 ;
	_Bool _a_bNew = false;
	int i;

    _a_surf.config.format = DSPF_UNKNOWN;

    for (i=0; i<MSTARGFX_MAX_LAYER_BUFFER; i++)
    {
    	_a_sdrv.mstarLayerBuffer[i].u16SlotUsed = 0;
		#if 0
    	_a_sdrv.mstarLayerBuffer[i].pCoDFBBuffer = &_a_buffer;
		_a_sdrv.mstarLayerBuffer[i].pCoDFBCoreSurface = &_a_surf;
		_a_sdrv.mstarLayerBuffer[i].format = _a_surf.config.format;
		_a_sdrv.mstarLayerBuffer[i].pitch = _pitch;
		_a_sdrv.mstarLayerBuffer[i].physAddr = _phys;
		#endif
    }

   _a_sdrv.mstarLayerBuffer[7].u16GOPFBID = 100;

    bRunInMock_mstarGetFreeSurfInfoSlotInfo          = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateFBFrom3rdSurfInfo = false;  //before
    bRunInMock_mstarSetSurfInfoSlotInfo              = false;  //before

	 #if 1
    {
        /* Tested function call */
        int _return  = _mstarGetSurfInfoSlot( &_a_sdrv, &_a_slay, &_a_surf, &_a_buffer, _phys, _pitch, &_a_pFBId, &_a_bNew);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARLayerData * _slay ", ( _slay ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surf ", ( _surf ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBuffer * _buffer ", ( _buffer ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pFBId ", ( _pFBId ));
        //CPPTEST_POST_CONDITION_PTR("_Bool * _bNew ", ( _bNew ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGetFreeSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateFBFrom3rdSurfInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 100, _a_pFBId );
        CPPTEST_ASSERT_UINTEGER_EQUAL( true, _a_bNew );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 7, _return );
    }
	#endif
}
/* CPPTEST_TEST_CASE_END test__mstarGetSurfInfoSlot_SetANewOne */

/* CPPTEST_TEST_CASE_BEGIN test_mstarLayerDataSize_default */
/* CPPTEST_TEST_CASE_CONTEXT int mstarLayerDataSize(void) */
void TestSuite_mstar_layer_c_eb559248_test_mstarLayerDataSize_default()
{
	int size = sizeof (MSTARLayerData);
	printf ("sizeof (MSTARLayerData) = (%d)\n", size);

    /* Pre-condition initialization */
    /* Initializing global variable MSTAR_Layer */ 
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

    {
        /* Tested function call */
        int _return  = mstarLayerDataSize();

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        //CPPTEST_ASSERT_UINTEGER_EQUAL( /*size*/ 56, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarLayerDataSize_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarRegionDataSize_default */
/* CPPTEST_TEST_CASE_CONTEXT int mstarRegionDataSize(void) */
void TestSuite_mstar_layer_c_eb559248_test_mstarRegionDataSize_default()
{
	int size = sizeof (MSTARRegionData);
	printf ("sizeof (MSTARRegionData) = (%d)\n", size);

    /* Pre-condition initialization */
    /* Initializing global variable MSTAR_Layer */ 
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

    {
        /* Tested function call */
        int _return  = mstarRegionDataSize();

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( /*size*/ 116, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarRegionDataSize_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarInitLayer_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarInitLayer(CoreLayer *, void *, void *, DFBDisplayLayerDescription *, DFBDisplayLayerConfig *, DFBColorAdjustment *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_driver_data;
	MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
	MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (description) */ 
    //DFBDisplayLayerDescription * _description  = 0 ;
	DFBDisplayLayerDescription _a_description;
    /* Initializing argument 5 (config) */ 
    //DFBDisplayLayerConfig * _config  = 0 ;
	DFBDisplayLayerConfig  _a_config;
    /* Initializing argument 6 (adjustment) */ 
    //DFBColorAdjustment * _adjustment  = 0 ;
	DFBColorAdjustment _a_adjustment;
    int i;
	/* Initializing global variable MSTAR_Layer */
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

	for( i=0; i<MSTAR_MAX_OUTPUT_LAYER_COUNT; i++)
    {
		_a_driver_data.layers[i] = &_a_layer;
		dfb_config->mst_gop_dstPlane[i] = E_GOP_DST_OP0;
    }

	_a_driver_data.dev = &_a_sdev;

	//_a_layer_data.gop_dst = E_GOP_DST_OP0;
	//_a_layer_data.gop_dst = E_GOP_DST_MIXER2OP;

	bRunInMock_fusion_reactor_newInfo          = false;  //before
	bRunInMock_fusion_call_initInfo            = false;  //before
	bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
	bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before
	bRunInMock_MApi_GOP_GWIN_OutputColorInfo   = false;  //before

	{
        /* Tested function call */
        DFBResult _return  = mstarInitLayer( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), &_a_description, &_a_config, &_a_adjustment);

        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBDisplayLayerDescription * _description ", ( _description ));
        //CPPTEST_POST_CONDITION_PTR("DFBDisplayLayerConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("DFBColorAdjustment * _adjustment ", ( _adjustment ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_reactor_newInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_initInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_OutputColorInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);  //FIXJASON, hang-on
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarInitLayer_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarInitLayer_DST_MIXER2VE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarInitLayer(CoreLayer *, void *, void *, DFBDisplayLayerDescription *, DFBDisplayLayerConfig *, DFBColorAdjustment *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_MIXER2VE()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_driver_data;
	MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
	MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (description) */ 
    //DFBDisplayLayerDescription * _description  = 0 ;
	DFBDisplayLayerDescription _a_description;
    /* Initializing argument 5 (config) */ 
    //DFBDisplayLayerConfig * _config  = 0 ;
	DFBDisplayLayerConfig  _a_config;
    /* Initializing argument 6 (adjustment) */ 
    //DFBColorAdjustment * _adjustment  = 0 ;
	DFBColorAdjustment _a_adjustment;
    int i;
	/* Initializing global variable MSTAR_Layer */
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

	for( i=0; i<MSTAR_MAX_OUTPUT_LAYER_COUNT; i++)
    {
		_a_driver_data.layers[i] = &_a_layer;
		dfb_config->mst_gop_dstPlane[i] = E_GOP_DST_MIXER2VE;
    }

	_a_driver_data.dev = &_a_sdev;

	//_a_layer_data.gop_dst = E_GOP_DST_OP0;
	//_a_layer_data.gop_dst = E_GOP_DST_MIXER2OP;

	bRunInMock_fusion_reactor_newInfo          = false;  //before
	bRunInMock_fusion_call_initInfo            = false;  //before
	bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
	bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before

	{
        /* Tested function call */
        DFBResult _return  = mstarInitLayer( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), &_a_description, &_a_config, &_a_adjustment);

        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBDisplayLayerDescription * _description ", ( _description ));
        //CPPTEST_POST_CONDITION_PTR("DFBDisplayLayerConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("DFBColorAdjustment * _adjustment ", ( _adjustment ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_reactor_newInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_initInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);  //FIXJASON, hang-on
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarInitLayer_DST_MIXER2VE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarInitLayer_DST_IP0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarInitLayer(CoreLayer *, void *, void *, DFBDisplayLayerDescription *, DFBDisplayLayerConfig *, DFBColorAdjustment *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_IP0()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_driver_data;
	MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
	MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (description) */ 
    //DFBDisplayLayerDescription * _description  = 0 ;
	DFBDisplayLayerDescription _a_description;
    /* Initializing argument 5 (config) */ 
    //DFBDisplayLayerConfig * _config  = 0 ;
	DFBDisplayLayerConfig  _a_config;
    /* Initializing argument 6 (adjustment) */ 
    //DFBColorAdjustment * _adjustment  = 0 ;
	DFBColorAdjustment _a_adjustment;
    int i;
	/* Initializing global variable MSTAR_Layer */
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

	for( i=0; i<MSTAR_MAX_OUTPUT_LAYER_COUNT; i++)
    {
		_a_driver_data.layers[i] = &_a_layer;
		dfb_config->mst_gop_dstPlane[i] = E_GOP_DST_IP0;
    }

	_a_driver_data.dev = &_a_sdev;

	//_a_layer_data.gop_dst = E_GOP_DST_OP0;
	//_a_layer_data.gop_dst = E_GOP_DST_MIXER2OP;

	bRunInMock_fusion_reactor_newInfo          = false;  //before
	bRunInMock_fusion_call_initInfo            = false;  //before
	bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
	bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before

	{
        /* Tested function call */
        DFBResult _return  = mstarInitLayer( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), &_a_description, &_a_config, &_a_adjustment);

        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBDisplayLayerDescription * _description ", ( _description ));
        //CPPTEST_POST_CONDITION_PTR("DFBDisplayLayerConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("DFBColorAdjustment * _adjustment ", ( _adjustment ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_reactor_newInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_initInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);  //FIXJASON, hang-on
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarInitLayer_DST_IP0 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarReorderGWIN_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarReorderGWIN(MSTARDriverData *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarReorderGWIN_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
    MSTARDriverData _a_sdrv;

    {
        /* Tested function call */
        DFBResult _return  = mstarReorderGWIN(&_a_sdrv);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test_mstarReorderGWIN_default */

/* CPPTEST_TEST_CASE_BEGIN TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarTestRegion(CoreLayer *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_driver_data;
	MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
	MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 5 (failed) */ 
    //CoreLayerRegionConfigFlags * _failed  = 0 ;
	CoreLayerRegionConfigFlags _a_failed;

	_a_driver_data.dev = &_a_sdev;

	_a_layer_data.gop_dst = E_GOP_DST_IP0;

	_a_layer_data.gop_index = 1;

    /* Initializing global variable MSTAR_Layer */ 
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

	bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
	bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before
	bRunInMock_MApi_GOP_GWIN_OutputColorInfo   = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarTestRegion(&_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), &_a_config, &_a_failed);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfigFlags * _failed ", ( _failed ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_OutputColorInfo);
        CPPTEST_ASSERT_EQUAL( DFB_UNSUPPORTED, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer */

/* CPPTEST_TEST_CASE_BEGIN test__mstarTestRegion_E_GOP_DST_MIXER2VE_Layer */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarTestRegion(CoreLayer *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_MIXER2VE_Layer()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_driver_data;
	MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */
    //void * _layer_data  = 0 ;
	MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (config) */
    //CoreLayerRegionConfig * _config  = 0 ;
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 5 (failed) */
    //CoreLayerRegionConfigFlags * _failed  = 0 ;
	CoreLayerRegionConfigFlags _a_failed;

	_a_driver_data.dev = &_a_sdev;

	_a_layer_data.gop_dst = E_GOP_DST_MIXER2VE;

	_a_layer_data.gop_index = 1;

    /* Initializing global variable MSTAR_Layer */
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

	bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
	bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarTestRegion(&_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), &_a_config, &_a_failed);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfigFlags * _failed ", ( _failed ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_EQUAL( DFB_UNSUPPORTED, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarTestRegion_E_GOP_DST_MIXER2VE_Layer */

/* CPPTEST_TEST_CASE_BEGIN test__mstarTestRegion_E_GOP_DST_OP0_Layer */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarTestRegion(CoreLayer *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_OP0_Layer()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_driver_data;
	MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */
    //void * _layer_data  = 0 ;
	MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (config) */
    //CoreLayerRegionConfig * _config  = 0 ;
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 5 (failed) */
    //CoreLayerRegionConfigFlags * _failed  = 0 ;
	CoreLayerRegionConfigFlags _a_failed;

	_a_driver_data.dev = &_a_sdev;

	_a_layer_data.gop_dst = E_GOP_DST_OP0;

	_a_layer_data.gop_index = 1;

    /* Initializing global variable MSTAR_Layer */
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

	bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
	bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarTestRegion(&_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), &_a_config, &_a_failed);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfigFlags * _failed ", ( _failed ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_EQUAL( DFB_UNSUPPORTED, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarTestRegion_E_GOP_DST_OP0_Layer */

/* CPPTEST_TEST_CASE_BEGIN test_mstarTestRegion_NoSharedMemory */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarTestRegion(CoreLayer *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_NoSharedMemory()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer  _a_layer;
	CoreDFB _a_core;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 5 (failed) */ 
    //CoreLayerRegionConfigFlags * _failed  = 0 ;
    CoreLayerRegionConfigFlags _a_failed;

    _a_layer.core = &_a_core;


    bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo   = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarTestRegion( &_a_layer, _driver_data, (void*)(&_a_layer_data), &_a_config, &_a_failed);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfigFlags * _failed ", ( _failed ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_NOSHAREDMEMORY, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarTestRegion_NoSharedMemory */

/* CPPTEST_TEST_CASE_BEGIN test_mstarTestRegion_fusion_call_execute */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarTestRegion(CoreLayer *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_fusion_call_execute()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer  _a_layer;
	CoreDFB _a_core;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 5 (failed) */ 
    //CoreLayerRegionConfigFlags * _failed  = 0 ;
    CoreLayerRegionConfigFlags _a_failed;

    _a_layer.core = &_a_core;


    bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo   = false;  //before
    bRunInMock_fusion_call_executeInfo   = false;  //before
    bRunInMock_fusion_dbg_shfreeInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarTestRegion( &_a_layer, _driver_data, (void*)(&_a_layer_data), &_a_config, &_a_failed);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfigFlags * _failed ", ( _failed ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_FUSION, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarTestRegion_fusion_call_execute */

/* CPPTEST_TEST_CASE_BEGIN test_mstarTestRegion_OK */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarTestRegion(CoreLayer *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_OK()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer  _a_layer;
	CoreDFB _a_core;
    /* Initializing argument 2 (driver_data) */ 
	void * _driver_data  = 0 ;
	/* Initializing argument 3 (layer_data) */
	//void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 5 (failed) */ 
    //CoreLayerRegionConfigFlags * _failed  = 0 ;
    CoreLayerRegionConfigFlags _a_failed;

    _a_layer.core = &_a_core;


    bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo   = false;  //before
    bRunInMock_fusion_call_executeInfo   = false;  //before
    bRunInMock_fusion_dbg_shfreeInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarTestRegion( &_a_layer, _driver_data, (void*)(&_a_layer_data), &_a_config, &_a_failed);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfigFlags * _failed ", ( _failed ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 9, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarTestRegion_OK */

/* CPPTEST_TEST_CASE_BEGIN test__mstarAddRegion_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarAddRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarAddRegion_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_driver_data;
	MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
	MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
	MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
	CoreLayerRegionConfig _a_config;

	_a_driver_data.dev = &_a_sdev;

	/* Initializing global variable MSTAR_Layer */
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

    {
        /* Tested function call */
        DFBResult _return  = _mstarAddRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarAddRegion_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarAddRegion_NoSharedMemory */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarAddRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_NoSharedMemory()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
	CoreLayerRegionConfig _a_config;

	bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
	bRunInMock_fusion_dbg_shmallocInfo   = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarAddRegion( &_a_layer, _driver_data, (void*)(&_a_layer_data), _region_data, &_a_config);

        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_NOSHAREDMEMORY, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarAddRegion_NoSharedMemory */

/* CPPTEST_TEST_CASE_BEGIN test_mstarAddRegion_DFB_FUSION */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarAddRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_DFB_FUSION()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (layer) */
	//CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */
    //CoreLayerRegionConfig * _config  = 0 ;
	CoreLayerRegionConfig _a_config;

	bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
	bRunInMock_fusion_dbg_shmallocInfo   = false;  //before
	bRunInMock_fusion_call_executeInfo   = false;  //before
	bRunInMock_fusion_dbg_shfreeInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarAddRegion( &_a_layer, _driver_data, (void*)(&_a_layer_data), _region_data, &_a_config);

        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_FUSION, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarAddRegion_DFB_FUSION */

/* CPPTEST_TEST_CASE_BEGIN test_mstarAddRegion_OK */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarAddRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_OK()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (layer) */
	//CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */
    //CoreLayerRegionConfig * _config  = 0 ;
	CoreLayerRegionConfig _a_config;

	bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
	bRunInMock_fusion_dbg_shmallocInfo   = false;  //before
	bRunInMock_fusion_call_executeInfo   = false;  //before
	bRunInMock_fusion_dbg_shfreeInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarAddRegion( &_a_layer, _driver_data, (void*)(&_a_layer_data), _region_data, &_a_config);

        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 9, _return );
	    }
}
/* CPPTEST_TEST_CASE_END test_mstarAddRegion_OK */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_WIDTH */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_WIDTH()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */ 
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */ 
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_WIDTH;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000001, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_WIDTH */


/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_HEIGHT */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_HEIGHT()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */ 
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */ 
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_HEIGHT;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000002, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_HEIGHT */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_FORMAT */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_FORMAT()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_FORMAT;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000004, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_FORMAT */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_SURFACE_CAPS */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SURFACE_CAPS()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
	_a_sreg.config.surface_caps = 10;  //init
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
	_a_config.surface_caps = 20;  //init
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_SURFACE_CAPS;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000008, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_SURFACE_CAPS */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_BUFFERMODE */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_BUFFERMODE()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_BUFFERMODE;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000010, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_BUFFERMODE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_OPTIONS */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_OPTIONS()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_OPTIONS;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000020, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_OPTIONS */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_SOURCE_ID */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SOURCE_ID()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_SOURCE_ID;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000040, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_SOURCE_ID */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_SOURCE */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SOURCE()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_SOURCE;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000100, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_SOURCE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_DEST */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_DEST()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_DEST;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000200, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_DEST */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_CLIPS */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_CLIPS()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
	_a_config.num_clips = 10;  //init
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_CLIPS;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000400, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_CLIPS */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_OPACITY */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_OPACITY()
{
	  /* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	  MSTARRegionData _a_sreg;
	  _a_sreg.config.opacity = 19;  //init
    /* Initializing argument 2 (config) */
	  CoreLayerRegionConfig _a_config;
	  _a_config.opacity = 29;  //init
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_OPACITY;
 
    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00001000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_OPACITY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_ALPHA_RAMP */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_ALPHA_RAMP()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_ALPHA_RAMP;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00002000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_ALPHA_RAMP */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_SRCKEY */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_SRCKEY()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_SRCKEY;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00010000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_SRCKEY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_DSTKEY */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_DSTKEY()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_DSTKEY;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00020000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_DSTKEY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_PARITY */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_PARITY()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_PARITY;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00100000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_PARITY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_TILEMODE */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_TILEMODE()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_TILEMODE;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000080, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_TILEMODE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_HSTRETCH */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_HSTRETCH()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_HSTRETCH;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000800, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_HSTRETCH */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_VSTRETCH */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_VSTRETCH()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_VSTRETCH;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00004000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_VSTRETCH */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_TSTRETCH */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_TSTRETCH()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_TSTRETCH;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00008000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_TSTRETCH */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_PALETTE */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_PALETTE()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_PALETTE;

    _a_config.format=DSPF_LUT8;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x20000000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_PALETTE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBuildUpdate_FREEZE */
/* CPPTEST_TEST_CASE_CONTEXT CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
void TestSuite_mstar_layer_c_eb559248_test_mstarBuildUpdate_FREEZE()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (sreg) */
	MSTARRegionData _a_sreg;
    /* Initializing argument 2 (config) */
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 3 (updated) */
    CoreLayerRegionConfigFlags _updated  = CLRCF_FREEZE;

    {
        /* Tested function call */
        CoreLayerRegionConfigFlags _return  = mstarBuildUpdate( &_a_sreg, &_a_config, _updated);

        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x80000000, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBuildUpdate_FREEZE */

#if 1
/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    _a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    #if 0
    /* Initializing global variable MSTAR_Layer */ 
    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	 #endif

    bRunInMock_fusion_skirmish_prevailInfo     = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before
    bRunInMock_mstarBuildUpdateInfo            = false;  //before
    bRunInMock_mstarGFXAddrInfo                = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo  = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )


        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surface ", ( _surface ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    _a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0 /*INVALID_WIN_ID*/;

    _a_config.format = DSPF_UNKNOWN;  //////////////////////////////

    bRunInMock_fusion_skirmish_prevailInfo     = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before
    bRunInMock_mstarBuildUpdateInfo            = false;  //before
    bRunInMock_mstarGFXAddrInfo                = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo  = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo    = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo      = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo     = false;  //before
    bRunInMock_mstarSetSurfInfoSlotFreeInfo    = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo       = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB1555 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ CLRCF_OPTIONS;  //CLRCF_HSTRETCH CLRCF_VSTRETCH CLRCF_TSTRETCH (CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */;

    _a_config.format = DSPF_ARGB1555;  //////////////////////////////

    _a_region_data.config.options = DLOP_SRC_COLORKEY;  //DLOP_OPACITY DLOP_ALPHACHANNEL  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = 1;  ////////


    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo           = false;  //before
    bRunInMock_mstarBuildUpdateInfo                  = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo             = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo          = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo            = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo           = false;  //before
    bRunInMock_mstarSetSurfInfoSlotFreeInfo          = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo             = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = false;  //before  //DSPF_ARGB1555
    bRunInMock__mstarSetSlotGWinIDInfo               = false;  //before  //DSPF_ARGB1555
    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo       = false;  //before  //DSPF_ARGB1555
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo      = false;  //before  //DSPF_ARGB1555
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo          = false;  //before  //DSPF_ARGB1555
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo          = false;  //before  //DSPF_ARGB1555
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo      = false;  //before  //DSPF_ARGB1555
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //DSPF_ARGB1555
    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info    = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo      = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_SetBlendingInfo         = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                  = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB1555 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGB16 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ CLRCF_OPTIONS;  //CLRCF_HSTRETCH CLRCF_VSTRETCH CLRCF_TSTRETCH (CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */;

    _a_config.format = DSPF_RGB16;  //////////////////////////////

    _a_region_data.config.options = DLOP_SRC_COLORKEY;  //DLOP_OPACITY DLOP_ALPHACHANNEL  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo           = false;  //before
    bRunInMock_mstarBuildUpdateInfo                  = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo             = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo          = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo            = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo           = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo          = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo             = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = false;  //before  //DSPF_ARGB1555 DSPF_RGB16
    bRunInMock__mstarSetSlotGWinIDInfo               = false;  //before  //DSPF_ARGB1555 DSPF_RGB16
    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //DSPF_ARGB1555 DSPF_RGB16
    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info    = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo      = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_SetBlendingInfo         = false;  //before  //
//    bRunInMock_MApi_GOP_GWIN_EnableInfo              = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                  = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGB16 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB()
{
		/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ CLRCF_OPTIONS;  //CLRCF_HSTRETCH CLRCF_VSTRETCH CLRCF_TSTRETCH (CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */;

    _a_config.format = DSPF_ARGB;  //////////////////////////////

    _a_region_data.config.options = DLOP_SRC_COLORKEY;  //DLOP_OPACITY DLOP_ALPHACHANNEL  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo           = false;  //before
    bRunInMock_mstarBuildUpdateInfo                  = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo             = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo          = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo            = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo           = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo          = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo             = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo               = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info    = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo      = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_SetBlendingInfo         = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableInfo              = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                  = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ CLRCF_OPTIONS;  //CLRCF_HSTRETCH CLRCF_VSTRETCH CLRCF_TSTRETCH (CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */;

    _a_config.format = DSPF_ARGB4444;  //////////////////////////////

    _a_region_data.config.options = DLOP_SRC_COLORKEY;  //DLOP_OPACITY DLOP_ALPHACHANNEL  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo           = false;  //before
    bRunInMock_mstarBuildUpdateInfo                  = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo             = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo          = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo            = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo           = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo          = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo             = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo               = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info    = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo      = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_SetBlendingInfo         = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                  = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ CLRCF_OPTIONS;  //CLRCF_HSTRETCH CLRCF_VSTRETCH CLRCF_TSTRETCH (CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB4444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ DLOP_OPACITY /*DLOP_ALPHACHANNEL*/;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo           = false;  //before
    bRunInMock_mstarBuildUpdateInfo                  = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo             = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo          = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo            = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo           = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo          = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo             = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo               = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info    = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo      = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_SetBlendingInfo         = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                  = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ CLRCF_OPTIONS;  //CLRCF_HSTRETCH CLRCF_VSTRETCH CLRCF_TSTRETCH (CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB4444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo           = false;  //before
    bRunInMock_mstarBuildUpdateInfo                  = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo             = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo          = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo            = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo           = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo          = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo             = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo               = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info    = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo      = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_SetBlendingInfo         = false;  //before  //
    bRunInMock_MApi_GOP_GWIN_EnableInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                  = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL */











//1127



/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ CLRCF_HSTRETCH;  //CLRCF_VSTRETCH CLRCF_TSTRETCH (CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB4444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo           = false;  //before
    bRunInMock_mstarBuildUpdateInfo                  = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo             = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo       = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo          = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo            = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo           = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo          = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo             = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo               = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    //bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo          = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info    = false;  //before  //
    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo      = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                = false;  //before  //
    
    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo         = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
    bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo    = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
    
    bRunInMock_MApi_GOP_GWIN_EnableInfo              = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                  = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
        
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ CLRCF_VSTRETCH;  //CLRCF_TSTRETCH (CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB4444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    //bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
    
    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
    bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
    
    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                         = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
        
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;

    //_a_region_data.config_dirtyFlag = CLRCF_SURFACE;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ CLRCF_TSTRETCH;  //(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT) CLRCF_TILEMODE
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB4444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    //bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
    
    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
    bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
    
    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                         = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
        
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_WIDTH;  //CLRCF_TILEMODE
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB4444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    //bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
    
    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
    
    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                         = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
       // CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB4444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    //bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
    
    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
    
    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                         = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
       // CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion__DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
    
    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
    
    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
    bRunInMock_mstarReorderGWINInfo                         = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
        
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion__DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE */

//failure case
/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGB24 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_RGB24;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGB24 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_RGB32;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_A8_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_A8;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_A8_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_YUY2;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_YVYU;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_RGB332;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_UYVY;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_I420_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_I420;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_I420_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_YV12_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_YV12;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_YV12_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ALUT44;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_AiRGB;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_A1_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_A1;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_A1_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_NV12_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_NV12;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_NV12_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_NV16_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_NV16;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_NV16_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB2554;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_NV21_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_NV21;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_NV21_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_AYUV;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_A4_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_A4;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_A4_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB1666;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_ARGB6666;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_RGB18;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_LUT2;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_LUT1;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_LUT4;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_RGB444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_RGB555;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE */



/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_BGR555;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_RGBA4444;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE */
#endif

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ CLRCF_TILEMODE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_RGBA5551;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////


    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before
//    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    //CoreLayer * _layer  = 0 ;
	  CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	  MSTARDriverData _a_driver_data;
	  MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    //void * _layer_data  = 0 ;
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    //void * _region_data  = 0 ;
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    //CoreLayerRegionConfig * _config  = 0 ;
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    //CoreSurface * _surface  = 0 ;
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    //CorePalette * _palette  = 0 ;
    CorePalette _a_palette;
    DFBColor     _a_entries[1];
    /* Initializing argument 9 (lock) */ 
    //CoreSurfaceBufferLock * _lock  = 0 ;
    CoreSurfaceBufferLock _a_lock;

    _a_driver_data.dev = &_a_sdev;

    _a_layer_data.gop_index = 2;

    _a_layer_data.gop_dst = E_GOP_DST_IP0;

    _a_layer_data.VideoFiledMode = E_VIDEO_FIELD_PROGRESSIVE;

    //_a_region_data.config_dirtyFlag = CLRCF_WIDTH;
    _a_region_data.config_dirtyFlag = CLRCF_SURFACE_CAPS;
    //_a_layer_data.ShadowFlags = CLRCF_NONE;

    _a_layer_data.ShadowFlags = /*SLF_SHADOW_LAYER_BOOLEAN*/ 0;
    _a_region_data.config_dirtyFlag = /*CLRCF_SRCKEY*/ /*CLRCF_OPTIONS*/ /*CLRCF_HSTRETCH*/ /*CLRCF_VSTRETCH*/ /*CLRCF_TSTRETCH*/ /*(CLRCF_DEST|CLRCF_WIDTH|CLRCF_HEIGHT)*/ /*CLRCF_TILEMODE*/ CLRCF_PALETTE;
    _a_region_data.config.dest.w = 100;
    _a_region_data.config.dest.h = 100;
    _a_layer_data.layer_index = 0;
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = 0;   /* INVALID_WIN_ID(255), GWIN_FAIL(254) */

    _a_config.format = DSPF_LUT8;  //////////////////////////////

    _a_region_data.config.options = /*DLOP_SRC_COLORKEY*/ /*DLOP_OPACITY*/ DLOP_ALPHACHANNEL;  ////////////////////////

    _a_sdev.layer_zorder[_a_layer_data.layer_index] = 0;

    _a_region_data.config.btile_mode = /*1*/ 0;  ////////

    _a_palette.entries = &(_a_entries[1]);
    _a_palette.num_entries  = 1;
    _a_palette.entries[0].a = 10;
    _a_palette.entries[0].r = 20;
    _a_palette.entries[0].g = 30;
    _a_palette.entries[0].b = 40;

    bRunInMock_fusion_skirmish_prevailInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;  //before
    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;  //before
    bRunInMock_mstarBuildUpdateInfo                         = false;  //before
    bRunInMock_mstarGFXAddrInfo                             = false;  //before
    bRunInMock_mstar_sc_is_interlaceInfo                    = false;  //before
    bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;  //before
//    bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                = false;  //before
//    bRunInMock_mstarSetSurfInfoSlotFreeInfo               = false;  //before
    bRunInMock__mstarGetSurfInfoSlotInfo                    = false;  //before

      bRunInMock_MApi_GOP_GWIN_SetPaletteOptInfo            = false;  //before    //DSPF_LUT8

    bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock__mstarSetSlotGWinIDInfo                      = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//    bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////    bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info         = false;  //before  //
//    //bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo           = false;  //before  //
//    bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetConfigInfo                       = false;  //before  //
//    
//    //bRunInMock_MApi_GOP_GWIN_SetBlendingInfo              = false;  //before  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//    //bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo         = false;  //before  //config_dirtyFlag == CLRCF_HSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;  //before  //config_dirtyFlag == CLRCF_VSTRETCH
//    //bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;  //before  //config_dirtyFlag == CLRCF_TSTRETCH
//    bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;  //before  //config_dirtyFlag == CLRCF_TILEMODE
//    
//    bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;  //before  //
//    bRunInMock_MApi_GOP_SetPINPONInfo                       = false;  //before  //
//    bRunInMock_mstarReorderGWINInfo                         = false;  //before
//    bRunInMock_fusion_skirmish_dismissInfo                  = false;  //before
                                                      
    {                                                  
        /* Tested function call */                      
        DFBResult _return  = _mstarSetRegion( &_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, &_a_palette, &_a_lock);

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarBuildUpdateInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_is_interlaceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_physicalInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarGetSurfInfoSlotInfo);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetPaletteOptInfo);  //DSPF_LUT8

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarSetSlotGWinIDInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //DSPF_ARGB1555 DSPF_RGB16 DSPF_ARGB
////        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info);  //
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GetChipCapsInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetConfigInfo);  //
//        
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetBlendingInfo);  //config_dirtyFlag == (CLRCF_OPACITY|CLRCF_OPTIONS)
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);  //config_dirtyFlag == CLRCF_HSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo);  //config_dirtyFlag == CLRCF_VSTRETCH
//        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo);  //config_dirtyFlag == CLRCF_TSTRETCH
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo);  //config_dirtyFlag == CLRCF_TILEMODE
//
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);  //
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarReorderGWINInfo);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_ConfigDisplayMode_FRAMEPACKING_NORMAL */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_ConfigDisplayMode(CoreLayer *, void *, void *, CoreSurface *, CoreSurfaceBufferLock *, DFBDisplayLayerDeskTopDisplayMode) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_FRAMEPACKING_NORMAL()
{
    /* Pre-condition initialization */
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	CoreSurface stub_surface;
	CoreSurfaceBufferLock stub_lock;
	MSTARDeviceData stub_sdev;


	stub_slay.layer_displayMode = DLDM_STEREO_FRAME_PACKING;
	stub_sdrv.dev = &stub_sdev;
	stub_slay.layer_index=0;
	stub_slay.gop_index = 0;
	stub_surface.config.size.w=1280;
	stub_surface.config.size.h=720;



    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = &stub_layer ;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = &stub_sdrv ;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (surface) */ 
    CoreSurface * _surface  = &stub_surface ;
    /* Initializing argument 5 (lock) */ 
    CoreSurfaceBufferLock * _lock  =&stub_lock ;
    /* Initializing argument 6 (display_mode) */ 
    DFBDisplayLayerDeskTopDisplayMode _display_mode  = DLDM_NORMAL;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_ConfigDisplayMode(_layer, _driver_data, _layer_data, _surface, _lock, _display_mode);

        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL(stub_slay.layer_displayMode,DLDM_NORMAL);


    }
}
/* CPPTEST_TEST_CASE_END test_mstar_ConfigDisplayMode_FRAMEPACKING_NORMAL */



/* CPPTEST_TEST_CASE_BEGIN test_mstar_ConfigDisplayMode_NORMAL_LEFTRIGHT */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_ConfigDisplayMode(CoreLayer *, void *, void *, CoreSurface *, CoreSurfaceBufferLock *, DFBDisplayLayerDeskTopDisplayMode) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_NORMAL_LEFTRIGHT()
{
    /* Pre-condition initialization */
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	CoreSurface stub_surface;
	CoreSurfaceBufferLock stub_lock;
	MSTARDeviceData stub_sdev;

	stub_slay.layer_displayMode = DLDM_NORMAL;

	stub_sdrv.dev = &stub_sdev;
	stub_slay.layer_index=0;
	stub_slay.gop_index = 0;
	stub_surface.config.size.w=1280;
	stub_surface.config.size.h=720;




    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = &stub_layer ;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = &stub_sdrv ;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (surface) */ 
    CoreSurface * _surface  = &stub_surface ;
    /* Initializing argument 5 (lock) */ 
    CoreSurfaceBufferLock * _lock  =&stub_lock ;
    /* Initializing argument 6 (display_mode) */ 
    DFBDisplayLayerDeskTopDisplayMode _display_mode  = DLDM_STEREO_LEFTRIGHT_3DUI;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_ConfigDisplayMode(_layer, _driver_data, _layer_data, _surface, _lock, _display_mode);

        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL(stub_slay.layer_displayMode,DLDM_STEREO_LEFTRIGHT_3DUI);

    }
}
/* CPPTEST_TEST_CASE_END test_mstar_ConfigDisplayMode_NORMAL_LEFTRIGHT */

/* CPPTEST_TEST_CASE_BEGIN test__mstarRecordLayerCurPhyAddr_InputErr_1 */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarRecordLayerCurPhyAddr(MSTARDriverData *, MSTARDeviceData *, CoreSurfaceBufferLock *, u8) */
void TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_1()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = NULL ;
    /* Initializing argument 2 (sdev) */ 
    MSTARDeviceData * _sdev  = 100 ;
    /* Initializing argument 3 (lock) */ 
    CoreSurfaceBufferLock * _lock  = 100 ;
    /* Initializing argument 4 (layer_index) */ 
    uint8_t _layer_index  = 0;
    {
        /* Tested function call */
        _mstarRecordLayerCurPhyAddr(_sdrv, _sdev, _lock, _layer_index);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstarRecordLayerCurPhyAddr_InputErr_1 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarRecordLayerCurPhyAddr_InputErr_2 */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarRecordLayerCurPhyAddr(MSTARDriverData *, MSTARDeviceData *, CoreSurfaceBufferLock *, u8) */
void TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_2()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = 100 ;
    /* Initializing argument 2 (sdev) */ 
    MSTARDeviceData * _sdev  = NULL ;
    /* Initializing argument 3 (lock) */ 
    CoreSurfaceBufferLock * _lock  = 100 ;
    /* Initializing argument 4 (layer_index) */ 
    uint8_t _layer_index  = 0;
    {
        /* Tested function call */
        _mstarRecordLayerCurPhyAddr(_sdrv, _sdev, _lock, _layer_index);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstarRecordLayerCurPhyAddr_InputErr_2 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarRecordLayerCurPhyAddr_InputErr_3 */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarRecordLayerCurPhyAddr(MSTARDriverData *, MSTARDeviceData *, CoreSurfaceBufferLock *, u8) */
void TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_InputErr_3()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = 100 ;
    /* Initializing argument 2 (sdev) */ 
    MSTARDeviceData * _sdev  = 100 ;
    /* Initializing argument 3 (lock) */ 
    CoreSurfaceBufferLock * _lock  = NULL ;
    /* Initializing argument 4 (layer_index) */ 
    uint8_t _layer_index  = 0;
    {
        /* Tested function call */
        _mstarRecordLayerCurPhyAddr(_sdrv, _sdev, _lock, _layer_index);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstarRecordLayerCurPhyAddr_InputErr_3 */

/* CPPTEST_TEST_CASE_BEGIN test__mstarRecordLayerCurPhyAddr_default */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarRecordLayerCurPhyAddr(MSTARDriverData *, MSTARDeviceData *, CoreSurfaceBufferLock *, u8) */
void TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData _a_sdrv;
    /* Initializing argument 2 (sdev) */ 
    MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (lock) */ 
    CoreSurfaceBufferLock _a_lock;
    CoreSurfaceAllocation _a_allocation;  //declare
    _a_lock.allocation = &_a_allocation;  //set
    _a_lock.allocation->gfxSerial.serial = 10;  //init
    /* Initializing argument 4 (layer_index) */ 
    uint8_t _layer_index  = 0;

    bRunInMock_mstarGFXAddrInfo = false;  //before

    {
        /* Tested function call */
        _mstarRecordLayerCurPhyAddr( &_a_sdrv, &_a_sdev, &_a_lock, _layer_index);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
    }
}
/* CPPTEST_TEST_CASE_END test__mstarRecordLayerCurPhyAddr_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetRegion_NoSharedMem */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_NoSharedMem()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    CoreDFB _a_CoreDFB;  //declare
    _a_layer.core = &_a_CoreDFB;  //set
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig * _config  = 0 ;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    CoreSurface * _surface  = 0 ;
    /* Initializing argument 8 (palette) */ 
    CorePalette * _palette  = 0 ;
    /* Initializing argument 9 (lock) */ 
    CoreSurfaceBufferLock * _lock  = 0 ;

    bRunInMock__mstarRecordLayerCurPhyAddrInfo = false;  //before
    bRunInMock_dfb_core_shmpool_dataInfo       = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo         = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarSetRegion(&_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), _config, _updated, _surface, _palette, _lock);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surface ", ( _surface ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarRecordLayerCurPhyAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_NOSHAREDMEMORY, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetRegion_NoSharedMem */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetRegion_DFB_FUSION_1 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_1()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    CoreDFB _a_CoreDFB;  //declare
    _a_layer.core = &_a_CoreDFB;  //set
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    CorePalette * _palette  = 0 ;
    /* Initializing argument 9 (lock) */ 
    CoreSurfaceBufferLock _a_lock;

    dfb_config->mst_forcewrite_DFB = DFB_FORECWRITE_USING | DFB_FORCEWRITE_ENABLE;

    bRunInMock__mstarRecordLayerCurPhyAddrInfo = false;  //before
    bRunInMock_dfb_core_shmpool_dataInfo       = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo         = false;  //before
    bRunInMock_fusion_call_executeInfo         = false;  //before
    bRunInMock_fusion_dbg_shfreeInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarSetRegion(&_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, _palette, &_a_lock);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surface ", ( _surface ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarRecordLayerCurPhyAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_FUSION, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetRegion_DFB_FUSION_1 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetRegion_DFB_FUSION_2 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_2()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    CoreDFB _a_CoreDFB;  //declare
    _a_layer.core = &_a_CoreDFB;  //set
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    CorePalette * _palette  = 0 ;
    /* Initializing argument 9 (lock) */ 
    CoreSurfaceBufferLock _a_lock;

    dfb_config->mst_forcewrite_DFB = ~DFB_FORECWRITE_USING;

    bRunInMock__mstarRecordLayerCurPhyAddrInfo = false;  //before
    bRunInMock_dfb_core_shmpool_dataInfo       = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo         = false;  //before
    bRunInMock_fusion_call_executeInfo         = false;  //before
    bRunInMock_fusion_dbg_shfreeInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarSetRegion(&_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, _palette, &_a_lock);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surface ", ( _surface ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarRecordLayerCurPhyAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_FUSION, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetRegion_DFB_FUSION_2 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetRegion_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarSetRegion(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags, CoreSurface *, CorePalette *, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_default()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    CoreDFB _a_CoreDFB;  //declare
    _a_layer.core = &_a_CoreDFB;  //set
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (updated) */ 
    CoreLayerRegionConfigFlags _updated  = CLRCF_NONE;
    /* Initializing argument 7 (surface) */ 
    CoreSurface _a_surface;
    /* Initializing argument 8 (palette) */ 
    CorePalette * _palette  = 0 ;
    /* Initializing argument 9 (lock) */ 
    CoreSurfaceBufferLock _a_lock;

    dfb_config->mst_forcewrite_DFB = ~DFB_FORECWRITE_USING;

    bRunInMock__mstarRecordLayerCurPhyAddrInfo = false;  //before
    bRunInMock_dfb_core_shmpool_dataInfo       = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo         = false;  //before
    bRunInMock_fusion_call_executeInfo         = false;  //before
    bRunInMock_fusion_dbg_shfreeInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarSetRegion(&_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), (void*)(&_a_region_data), &_a_config, _updated, &_a_surface, _palette, &_a_lock);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surface ", ( _surface ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurfaceBufferLock * _lock ", ( _lock ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarRecordLayerCurPhyAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 100, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetRegion_default */

/* CPPTEST_TEST_CASE_BEGIN test__mstarRemoveRegion_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstarRemoveRegion(CoreLayer *, void *, void *, void *) */
void TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_sdev;  //declare here
    _a_driver_data.dev = &_a_sdev;  //set
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    _a_layer_data.layer_index = 0;  //init
    //_a_layer_data.layer_index = MSTAR_MAX_OUTPUT_LAYER_COUNT-1;  //init
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing global variable MSTAR_Layer */ 

    _a_sdev.layer_refcnt[_a_layer_data.layer_index] = 1;  //init
    _a_sdev.layer_gwin_id[_a_layer_data.layer_index] = INVALID_WIN_ID - 1;  //init


    bRunInMock_fusion_skirmish_prevailInfo  = false;  //before
    bRunInMock_MApi_GOP_GWIN_EnableInfo     = false;  //before
    bRunInMock_MApi_GOP_SetPINPONInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = false;  //before
    bRunInMock__mstarFindFBIdbyGWinIDInfo   = false;  //before
    //bRunInMock_MApi_GOP_GWIN_DestroyFBInfo  = false;  //before
    //bRunInMock_mstarSetSurfInfoSlotFreeInfo = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo  = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = _mstarRemoveRegion(_layer, &_a_driver_data, &_a_layer_data, _region_data);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_SetPINPONInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyWinInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarFindFBIdbyGWinIDInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_DestroyFBInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarSetSurfInfoSlotFreeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarRemoveRegion_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarRemoveRegion_NoSharedMemory */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarRemoveRegion(CoreLayer *, void *, void *, void *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_NoSharedMemory()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;

    bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo   = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarRemoveRegion(&_a_layer, _driver_data, _layer_data, _region_data);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_NOSHAREDMEMORY, _return );

    }
}
/* CPPTEST_TEST_CASE_END test_mstarRemoveRegion_NoSharedMemory */

/* CPPTEST_TEST_CASE_BEGIN test_mstarRemoveRegion_DFB_FUSION */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarRemoveRegion(CoreLayer *, void *, void *, void *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_DFB_FUSION()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;

    bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo   = false;  //before
    bRunInMock_fusion_call_executeInfo   = false;  //before
    bRunInMock_fusion_dbg_shfreeInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarRemoveRegion(&_a_layer, _driver_data, _layer_data, _region_data);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_FUSION, _return );

    }
}
/* CPPTEST_TEST_CASE_END test_mstarRemoveRegion_DFB_FUSION */

/* CPPTEST_TEST_CASE_BEGIN test_mstarRemoveRegion_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarRemoveRegion(CoreLayer *, void *, void *, void *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_default()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;

    bRunInMock_dfb_core_shmpool_dataInfo = false;  //before
    bRunInMock_fusion_dbg_shmallocInfo   = false;  //before
    bRunInMock_fusion_call_executeInfo   = false;  //before
    bRunInMock_fusion_dbg_shfreeInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarRemoveRegion(&_a_layer, _driver_data, _layer_data, _region_data);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_shmpool_dataInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shmallocInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_call_executeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_dbg_shfreeInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 100, _return );

    }
}
/* CPPTEST_TEST_CASE_END test_mstarRemoveRegion_default */


/* CPPTEST_TEST_CASE_BEGIN test_mstarFlipRegion_default_1 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarFlipRegion(CoreLayer *, void *, void *, void *, CoreSurface *, DFBSurfaceFlipFlags, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_1()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;
    _a_driver_data.dev = &_a_MSTARDeviceData;
    /* Initializing argument 3 (layer_data) */
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (surface) */
    CoreSurface _a_surface;
    /* Initializing argument 6 (flags) */
    DFBSurfaceFlipFlags _flags  = DSFLIP_NONE;
    /* Initializing argument 7 (lock) */
    CoreSurfaceBufferLock _a_lock;
    CoreSurfaceAllocation _a_CoreSurfaceAllocation;
    _a_lock.allocation = &_a_CoreSurfaceAllocation;
    /* Initializing global variable MSTAR_Layer */

    _a_layer_data.layer_index = 0;

    _a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_BOOLEAN;  //

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstarFlipRegion(_layer, &_a_driver_data, &_a_layer_data, &_a_region_data, &_a_surface, _flags, &_a_lock);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFlipRegion_default_1 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFlipRegion_default_2 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarFlipRegion(CoreLayer *, void *, void *, void *, CoreSurface *, DFBSurfaceFlipFlags, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_2()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;
    _a_driver_data.dev = &_a_MSTARDeviceData;
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (surface) */ 
    CoreSurface _a_surface;
    /* Initializing argument 6 (flags) */ 
    DFBSurfaceFlipFlags _flags  = DSFLIP_NONE;
    /* Initializing argument 7 (lock) */ 
    CoreSurfaceBufferLock _a_lock;
    CoreSurfaceAllocation _a_CoreSurfaceAllocation;
    _a_lock.allocation = &_a_CoreSurfaceAllocation;
    /* Initializing global variable MSTAR_Layer */ 

    _a_layer_data.layer_index = 0;

    _a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_INDEX0;  //

    _a_layer_data.layer_index = 0;

    _a_region_data.config.btile_mode = DFB_TRUE;  //

    bRunInMock__mstarRecordLayerCurPhyAddrInfo = false;  //before
    bRunInMock_fusion_skirmish_prevailInfo     = false;  //before
    bRunInMock_dfb_surface_flipInfo            = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo     = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstarFlipRegion(_layer, &_a_driver_data, &_a_layer_data, &_a_region_data, &_a_surface, _flags, &_a_lock);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarRecordLayerCurPhyAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_flipInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFlipRegion_default_2 */


/* CPPTEST_TEST_CASE_BEGIN test_mstarFlipRegion_DFB_FAILURE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarFlipRegion(CoreLayer *, void *, void *, void *, CoreSurface *, DFBSurfaceFlipFlags, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_DFB_FAILURE()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;
    _a_driver_data.dev = &_a_MSTARDeviceData;
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (surface) */ 
    CoreSurface _a_surface;
    /* Initializing argument 6 (flags) */ 
    DFBSurfaceFlipFlags _flags  = DSFLIP_NONE;
    /* Initializing argument 7 (lock) */ 
    CoreSurfaceBufferLock _a_lock;
    CoreSurfaceAllocation _a_CoreSurfaceAllocation;
    _a_lock.allocation = &_a_CoreSurfaceAllocation;
    CoreSurfaceBuffer _a_buffer;
    _a_lock.buffer = &_a_buffer;
    /* Initializing global variable MSTAR_Layer */ 

    _a_layer_data.layer_index = 0;

    _a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_INDEX0;  //

    _a_layer_data.layer_index = 0;

    _a_region_data.config.btile_mode = DFB_FALSE;  //

    _a_surface.config.caps = DSCAPS_TRIPLE;  //

    bRunInMock__mstarRecordLayerCurPhyAddrInfo       = false;  //before
    //bRunInMock_fusion_skirmish_prevailInfo         = false;  //before
    //bRunInMock_dfb_surface_flipInfo                = false;  //before
    //bRunInMock_fusion_skirmish_dismissInfo         = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstarFlipRegion(_layer, &_a_driver_data, &_a_layer_data, &_a_region_data, &_a_surface, _flags, &_a_lock);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarRecordLayerCurPhyAddrInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_flipInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_FAILURE, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFlipRegion_DFB_FAILURE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFlipRegion_default_3 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarFlipRegion(CoreLayer *, void *, void *, void *, CoreSurface *, DFBSurfaceFlipFlags, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;
    _a_driver_data.dev = &_a_MSTARDeviceData;
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (surface) */ 
    CoreSurface _a_surface;
    /* Initializing argument 6 (flags) */ 
    DFBSurfaceFlipFlags _flags  = DSFLIP_NONE;
    /* Initializing argument 7 (lock) */ 
    CoreSurfaceBufferLock _a_lock;
    CoreSurfaceAllocation _a_CoreSurfaceAllocation;
    _a_lock.allocation = &_a_CoreSurfaceAllocation;
    CoreSurfaceBuffer _a_buffer;
    _a_lock.buffer = &_a_buffer;
    /* Initializing global variable MSTAR_Layer */ 

    _a_layer_data.layer_index = 0;

    _a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_INDEX0;  //

    _a_layer_data.layer_index = 0;

    _a_region_data.config.btile_mode = DFB_FALSE;  //

    _a_surface.config.caps = DSCAPS_STATIC_POS;  //

    _a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_INDEXALL;

    bRunInMock__mstarRecordLayerCurPhyAddrInfo       = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo = false;  //before
    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_dfb_surface_flipInfo                = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo         = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstarFlipRegion(_layer, &_a_driver_data, &_a_layer_data, &_a_region_data, &_a_surface, _flags, &_a_lock);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarRecordLayerCurPhyAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_flipInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFlipRegion_default_3 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFlipRegion_default_4 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarFlipRegion(CoreLayer *, void *, void *, void *, CoreSurface *, DFBSurfaceFlipFlags, CoreSurfaceBufferLock *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;
    _a_driver_data.dev = &_a_MSTARDeviceData;
    /* Initializing argument 3 (layer_data) */ 
    MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (region_data) */ 
    MSTARRegionData _a_region_data;
    /* Initializing argument 5 (surface) */ 
    CoreSurface _a_surface;
    /* Initializing argument 6 (flags) */ 
    DFBSurfaceFlipFlags _flags  = DSFLIP_NONE;
    /* Initializing argument 7 (lock) */ 
    CoreSurfaceBufferLock _a_lock;
    CoreSurfaceAllocation _a_CoreSurfaceAllocation;
    _a_lock.allocation = &_a_CoreSurfaceAllocation;
    CoreSurfaceBuffer _a_buffer;
    _a_lock.buffer = &_a_buffer;
    /* Initializing global variable MSTAR_Layer */ 

    _a_layer_data.layer_index = 0;

    _a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_INDEX0;  //

    _a_layer_data.layer_index = 0;

    _a_region_data.config.btile_mode = DFB_FALSE;  //

    _a_surface.config.caps = DSCAPS_STATIC_POS;  //

    _a_layer_data.ShadowFlags = SLF_SHADOW_LAYER_INDEXALL;

    bRunInMock__mstarRecordLayerCurPhyAddrInfo       = false;  //before
    bRunInMock_mstarGFXAddrInfo                      = false;  //before
    bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo = false;  //before
    bRunInMock_fusion_skirmish_prevailInfo           = false;  //before
    bRunInMock_dfb_surface_flipInfo                = false;  //before
    bRunInMock_fusion_skirmish_dismissInfo         = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstarFlipRegion(_layer, &_a_driver_data, &_a_layer_data, &_a_region_data, &_a_surface, _flags, &_a_lock);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarRecordLayerCurPhyAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarGFXAddrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_prevailInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_flipInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_dismissInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFlipRegion_default_4 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryAllocateSurface_NG_1 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryAllocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface **) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_NG_1()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;  //declare
    _a_driver_data.dev = &_a_MSTARDeviceData;  //set
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    DFBSurfacePixelFormat _a_DFBSurfacePixelFormat;  //declare
    _a_config.format = _a_DFBSurfacePixelFormat;  //set
    /* Initializing argument 6 (ret_surface) */ 
    CoreSurface ** _ret_surface  = 0 ;
    /* Initializing global variable MSTAR_Layer */ 

    bRunInMock__mstarDFBFmt2MSFmtInfo = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryAllocateSurface(_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, _ret_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarDFBFmt2MSFmtInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_FAILURE, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryAllocateSurface_NG_1 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryAllocateSurface_dfb_surface_create_NG_2 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryAllocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface **) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_dfb_surface_create_NG_2()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    CoreLayerShared _a_shared;  //declare
    _a_layer.shared = &_a_shared;  //set
    DFBDisplayLayerID _a_layer_id = 0;  //declare
    _a_layer.shared->layer_id = _a_layer_id;  //set
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;  //declare
    _a_driver_data.dev = &_a_MSTARDeviceData;  //set
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    DFBSurfacePixelFormat _a_DFBSurfacePixelFormat;  //declare
    _a_config.format = _a_DFBSurfacePixelFormat;  //set
    /* Initializing argument 6 (ret_surface) */ 
    CoreSurface ** _ret_surface  = 0 ;
    /* Initializing global variable MSTAR_Layer */ 

    //_a_config.width = 200;
    //_a_config.height = 100;
    //_a_config.format = ;
    _a_config.buffermode = DLBM_TRIPLE;  //
		
    //FIXJASON
    extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
    dfb_config->mst_gop_miu_setting = GOP_MIU_MASK;  //
    dfb_config->mst_gop_available[0] = 0;
    dfb_config->mst_gop_available[1] = 0;
    dfb_config->mst_gop_available[2] = 0;
    dfb_config->mst_gop_available[3] = 0;


    
    bRunInMock__mstarDFBFmt2MSFmtInfo = false;  //before
    bRunInMock_dfb_surface_createInfo = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryAllocateSurface( &_a_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, _ret_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarDFBFmt2MSFmtInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_createInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 5, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryAllocateSurface_dfb_surface_create_NG_2 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryAllocateSurface_3Buf */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryAllocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface **) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_3Buf()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    CoreLayerShared _a_shared;  //declare
    _a_layer.shared = &_a_shared;  //set
    DFBDisplayLayerID _a_layer_id = 0;  //declare
    _a_layer.shared->layer_id = _a_layer_id;  //set
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;  //declare
    _a_driver_data.dev = &_a_MSTARDeviceData;  //set
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    DFBSurfacePixelFormat _a_DFBSurfacePixelFormat;  //declare
    _a_config.format = _a_DFBSurfacePixelFormat;  //set
    /* Initializing argument 6 (ret_surface) */ 
    //CoreSurface ** _ret_surface  = 0 ;
    CoreSurface * _p_ret_surface  = 0 ;
    /* Initializing global variable MSTAR_Layer */ 

    //_a_config.width = 200;
    //_a_config.height = 100;
    //_a_config.format = ;
    _a_config.buffermode = DLBM_TRIPLE /*DLBM_BACKVIDEO*/;  //

    //FIXJASON
    extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
    dfb_config->mst_gop_miu_setting = GOP_MIU_MASK;  //
    dfb_config->mst_gop_available[0] = 0;
    dfb_config->mst_gop_available[1] = 0;
    dfb_config->mst_gop_available[2] = 0;
    dfb_config->mst_gop_available[3] = 0;



    bRunInMock__mstarDFBFmt2MSFmtInfo = false;  //before
    bRunInMock_dfb_surface_createInfo = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryAllocateSurface( &_a_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, &_p_ret_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarDFBFmt2MSFmtInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_createInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryAllocateSurface_3Buf */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryAllocateSurface_2Buf */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryAllocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface **) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_2Buf()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    CoreLayerShared _a_shared;  //declare
    _a_layer.shared = &_a_shared;  //set
    DFBDisplayLayerID _a_layer_id = 0;  //declare
    _a_layer.shared->layer_id = _a_layer_id;  //set
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;  //declare
    _a_driver_data.dev = &_a_MSTARDeviceData;  //set
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    DFBSurfacePixelFormat _a_DFBSurfacePixelFormat;  //declare
    _a_config.format = _a_DFBSurfacePixelFormat;  //set
    /* Initializing argument 6 (ret_surface) */ 
    //CoreSurface ** _ret_surface  = 0 ;
    CoreSurface * _p_ret_surface  = 0 ;
    /* Initializing global variable MSTAR_Layer */ 

    //_a_config.width = 200;
    //_a_config.height = 100;
    //_a_config.format = ;
    _a_config.buffermode = DSCAPS_DOUBLE /*DLBM_TRIPLE*/ /*DLBM_BACKVIDEO*/;  //

    //FIXJASON
    extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
    dfb_config->mst_gop_miu_setting = GOP_MIU_MASK;  //
    dfb_config->mst_gop_available[0] = 0;
    dfb_config->mst_gop_available[1] = 0;
    dfb_config->mst_gop_available[2] = 0;
    dfb_config->mst_gop_available[3] = 0;



    bRunInMock__mstarDFBFmt2MSFmtInfo = false;  //before
    bRunInMock_dfb_surface_createInfo = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryAllocateSurface( &_a_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, &_p_ret_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarDFBFmt2MSFmtInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_createInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryAllocateSurface_2Buf */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryAllocateSurface_1Buf */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryAllocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface **) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_1Buf()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer _a_layer;
    CoreLayerShared _a_shared;  //declare
    _a_layer.shared = &_a_shared;  //set
    DFBDisplayLayerID _a_layer_id = 0;  //declare
    _a_layer.shared->layer_id = _a_layer_id;  //set
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_MSTARDeviceData;  //declare
    _a_driver_data.dev = &_a_MSTARDeviceData;  //set
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    DFBSurfacePixelFormat _a_DFBSurfacePixelFormat;  //declare
    _a_config.format = _a_DFBSurfacePixelFormat;  //set
    /* Initializing argument 6 (ret_surface) */ 
    //CoreSurface ** _ret_surface  = 0 ;
    CoreSurface * _p_ret_surface  = 0 ;
    /* Initializing global variable MSTAR_Layer */ 

    //_a_config.width = 200;
    //_a_config.height = 100;
    //_a_config.format = ;
    _a_config.buffermode = DSCAPS_PRIMARY /*DSCAPS_DOUBLE*/ /*DLBM_TRIPLE*/ /*DLBM_BACKVIDEO*/;  //

    //FIXJASON
    extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
    dfb_config->mst_gop_miu_setting = GOP_MIU_MASK;  //
    dfb_config->mst_gop_available[0] = 0;
    dfb_config->mst_gop_available[1] = 0;
    dfb_config->mst_gop_available[2] = 0;
    dfb_config->mst_gop_available[3] = 0;



    bRunInMock__mstarDFBFmt2MSFmtInfo = false;  //before
    bRunInMock_dfb_surface_createInfo = false;  //before

    {
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryAllocateSurface( &_a_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, &_p_ret_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock__mstarDFBFmt2MSFmtInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_createInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryAllocateSurface_1Buf */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryReallocateSurface_dfb_surface_reconfig_NG */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryReallocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface *) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_surface_reconfig_NG()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_sdev;
    _a_driver_data.dev = &_a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (surface) */ 
    CoreSurface _a_surface;
    CoreSurfaceConfig _config;  //declare
    _a_surface.config = _config;

    _a_config.width  = 200;
    _a_config.height = 100;
    _a_config.format = DSPF_ARGB1555;

    _a_config.buffermode = DLBM_TRIPLE;  //

    bRunInMock_dfb_surface_reconfigInfo = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryReallocateSurface(_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, &_a_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_reconfigInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DR_FAILURE, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryReallocateSurface_dfb_surface_reconfig_NG */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryReallocateSurface_dfb_palette_create_NG */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryReallocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface *) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_palette_create_NG()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_sdev;
    _a_driver_data.dev = &_a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (surface) */ 
    CoreSurface _a_surface;
    CoreSurfaceConfig _config;  //declare
    _a_surface.config = _config;
    //CorePalette _a_palette;  //declare
    _a_surface.palette = NULL;


    _a_config.width  = 200;
    _a_config.height = 100;
    _a_config.format = /*0x40000000*/ /*DSPF_LUT1*/ DSPF_LUT8;  //

    _a_config.buffermode = DLBM_WINDOWS;  //

    bRunInMock_dfb_surface_reconfigInfo = false;  //before
    bRunInMock_dfb_palette_createInfo   = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryReallocateSurface(_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, &_a_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_reconfigInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_palette_createInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DR_FAILURE, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryReallocateSurface_dfb_palette_create_NG */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryReallocateSurface_default_3Buf */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryReallocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface *) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_3Buf()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_sdev;
    _a_driver_data.dev = &_a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (surface) */ 
    CoreSurface _a_surface;
    CoreSurfaceConfig _config;  //declare
    _a_surface.config = _config;
    //CorePalette _a_palette;  //declare
    _a_surface.palette = NULL;


    _a_config.width  = 200;
    _a_config.height = 100;
    _a_config.format = /*0x40000000*/ /*DSPF_LUT1*/ DSPF_LUT8;  //

    _a_config.buffermode = DLBM_TRIPLE /*DLBM_WINDOWS*/;  //

    bRunInMock_dfb_surface_reconfigInfo            = false;  //before
    bRunInMock_dfb_palette_createInfo              = false;  //before
    bRunInMock_dfb_palette_generate_rgb332_mapInfo = false;  //before
    bRunInMock_dfb_surface_set_paletteInfo         = false;  //before
    bRunInMock_dfb_palette_unrefInfo               = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryReallocateSurface(_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, &_a_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_reconfigInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_palette_createInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_palette_generate_rgb332_mapInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_set_paletteInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_palette_unrefInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryReallocateSurface_default_3Buf */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryReallocateSurface_default_2Buf */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryReallocateSurface(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreSurface *) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_2Buf()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    MSTARDriverData _a_driver_data;
    MSTARDeviceData _a_sdev;
    _a_driver_data.dev = &_a_sdev;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (config) */ 
    CoreLayerRegionConfig _a_config;
    /* Initializing argument 6 (surface) */ 
    CoreSurface _a_surface;
    CoreSurfaceConfig _config;  //declare
    _a_surface.config = _config;
    //CorePalette _a_palette;  //declare
    _a_surface.palette = NULL;


    _a_config.width  = 200;
    _a_config.height = 100;
    _a_config.format = /*0x40000000*/ /*DSPF_LUT1*/ DSPF_LUT8;  //

    _a_config.buffermode = /*DLBM_TRIPLE*/ DLBM_WINDOWS;  //

    bRunInMock_dfb_surface_reconfigInfo            = false;  //before
    bRunInMock_dfb_palette_createInfo              = false;  //before
    bRunInMock_dfb_palette_generate_rgb332_mapInfo = false;  //before
    bRunInMock_dfb_surface_set_paletteInfo         = false;  //before
    bRunInMock_dfb_palette_unrefInfo               = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryReallocateSurface(_layer, &_a_driver_data, _layer_data, _region_data, &_a_config, &_a_surface);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_reconfigInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_palette_createInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_palette_generate_rgb332_mapInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_surface_set_paletteInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_palette_unrefInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryReallocateSurface_default_2Buf */


/* CPPTEST_TEST_CASE_BEGIN test_mstar_primaryDeallocateSurface_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_primaryDeallocateSurface(CoreLayer *, void *, void *, void *, CoreSurface *) */
void TestSuite_mstar_layer_c_eb559248_test_mstar_primaryDeallocateSurface_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
    CoreLayer * _layer  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (layer_data) */ 
    void * _layer_data  = 0 ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = 0 ;
    /* Initializing argument 5 (surface) */ 
    CoreSurface * _surface  = 0 ;
    {
        /* Tested function call */
        DFBResult _return  = mstar_primaryDeallocateSurface(_layer, _driver_data, _layer_data, _region_data, _surface);
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreSurface * _surface ", ( _surface ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( DFB_OK, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_primaryDeallocateSurface_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarTestRegion_E_GOP_DST_VE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarTestRegion(CoreLayer *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags *) */
void TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_E_GOP_DST_VE()
{
	/* Pre-condition initialization */
    /* Initializing argument 1 (layer) */
    //CoreLayer * _layer  = 0 ;
	CoreLayer _a_layer;
    /* Initializing argument 2 (driver_data) */
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_driver_data;
	MSTARDeviceData _a_sdev;
    /* Initializing argument 3 (layer_data) */
    //void * _layer_data  = 0 ;
	MSTARLayerData _a_layer_data;
    /* Initializing argument 4 (config) */
    //CoreLayerRegionConfig * _config  = 0 ;
	CoreLayerRegionConfig _a_config;
    /* Initializing argument 5 (failed) */
    //CoreLayerRegionConfigFlags * _failed  = 0 ;
	CoreLayerRegionConfigFlags _a_failed;

	_a_driver_data.dev = &_a_sdev;

	_a_layer_data.gop_dst = E_GOP_DST_VE;

	_a_layer_data.gop_index = 1;

    /* Initializing global variable MSTAR_Layer */
	#if 0
	{
         MSTAR_Layer.age  = 0u;
         MSTAR_Layer.enabled  = false;
         MSTAR_Layer.registered  = false;
         MSTAR_Layer.name  = 0 ;
         MSTAR_Layer.description  = 0 ;
         MSTAR_Layer.name_len  = 0;
    }
	#endif

	bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = false;  //before
	bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo     = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = _mstarTestRegion(&_a_layer, (void*)(&_a_driver_data), (void*)(&_a_layer_data), &_a_config, &_a_failed);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfig * _config ", ( _config ));
        //CPPTEST_POST_CONDITION_PTR("CoreLayerRegionConfigFlags * _failed ", ( _failed ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_Layer.age", ( MSTAR_Layer.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.enabled", ( MSTAR_Layer.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_Layer.registered", ( MSTAR_Layer.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.name", ( MSTAR_Layer.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_Layer.description", ( MSTAR_Layer.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_Layer.name_len", ( MSTAR_Layer.name_len ));
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        //CPPTEST_ASSERT_EQUAL( DFB_UNSUPPORTED, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarTestRegion_E_GOP_DST_VE */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetHVMirrorEnable_Enable */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetHVMirrorEnable(CoreLayer *, void *, void *, _Bool, _Bool) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Enable()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
    /* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (HEnable) */ 
    _Bool _HEnable  = true;
    /* Initializing argument 5 (VEnable) */ 
    _Bool _VEnable  = true;
    bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo = false;
    bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo = false;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetHVMirrorEnable(_layer, _driver_data, _layer_data, _HEnable, _VEnable);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) );
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo);
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetHVMirrorEnable_Enable */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetHVMirrorEnable_Disable */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetHVMirrorEnable(CoreLayer *, void *, void *, _Bool, _Bool) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Disable()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
	/* Initializing argument 4 (HEnable) */
	_Bool _HEnable  = false;
	/* Initializing argument 5 (VEnable) */
	_Bool _VEnable  = false;
	bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo = false;
	bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo = false;
	{
		/* Tested function call */
		DFBResult _return  = _mstar_SetHVMirrorEnable(_layer, _driver_data, _layer_data, _HEnable, _VEnable);
		/* Post-condition check */
		CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
		CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo);
		CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo);
		//CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
	}
}
/* CPPTEST_TEST_CASE_END test__mstar_SetHVMirrorEnable_Disable */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetLBCoupleEnable_Enable */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetLBCoupleEnable(CoreLayer *, void *, void *, _Bool) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetLBCoupleEnable_Enable()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (LBCoupleEnable) */ 
    _Bool _LBCoupleEnable  = true;

    bRunInMock_MApi_GOP_EnableLBCouple = false;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetLBCoupleEnable(_layer, _driver_data, _layer_data, _LBCoupleEnable);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_EnableLBCouple);
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetLBCoupleEnable_Enable */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetLBCoupleEnable_Disable */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetLBCoupleEnable(CoreLayer *, void *, void *, _Bool) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetLBCoupleEnable_Disable()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
	/* Initializing argument 4 (LBCoupleEnable) */
	_Bool _LBCoupleEnable  = false;

	bRunInMock_MApi_GOP_EnableLBCouple = false;
	{
		/* Tested function call */
		DFBResult _return  = _mstar_SetLBCoupleEnable(_layer, _driver_data, _layer_data, _LBCoupleEnable);
		/* Post-condition check */
		CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) );
		CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_EnableLBCouple);
		//CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
	}
}
/* CPPTEST_TEST_CASE_END test__mstar_SetLBCoupleEnable_Disable */


/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetGOPDstByPassEnable_Enable */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetGOPDstByPassEnable(CoreLayer *, void *, void *, _Bool) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDstByPassEnable_Enable()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (ByPassEnable) */ 
    _Bool _ByPassEnable  = true;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetGOPDstByPassEnable(_layer, _driver_data, _layer_data, _ByPassEnable);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
       // CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
       // CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
       // CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetGOPDstByPassEnable_Enable */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetGOPDstByPassEnable_Disable */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetGOPDstByPassEnable(CoreLayer *, void *, void *, _Bool) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDstByPassEnable_Disable()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (ByPassEnable) */ 
    _Bool _ByPassEnable  = false;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetGOPDstByPassEnable(_layer, _driver_data, _layer_data, _ByPassEnable);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
       // CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
       // CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
       // CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetGOPDstByPassEnable_Disable */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetHVScale */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetHVScale(CoreLayer *, void *, void *, void *, int, int) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVScale()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	MSTARRegionData  stub_region_data;
    /* Pre-condition initialization */
    /* Initializing argument 1 (layer) */ 
	CoreLayer * _layer  = &stub_layer ;
    /* Initializing argument 2 (driver_data) */ 
	void * _driver_data  = &stub_sdrv ;
    /* Initializing argument 3 (layer_data) */ 
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (region_data) */ 
    void * _region_data  = &stub_region_data ;
    /* Initializing argument 5 (HScale) */ 
    int _HScale  = 1920;
    /* Initializing argument 6 (VScale) */ 
    int _VScale  = 1080;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetHVScale(_layer, _driver_data, _layer_data, _region_data, _HScale, _VScale);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _region_data ", ( _region_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetHVScale */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetGOPDst_OP */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetGOPDst(CoreLayer *, void *, void *, DFBDisplayLayerGOPDST) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_OP()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (GopDst) */ 
    DFBDisplayLayerGOPDST _GopDst  = DLGD_OP0;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetGOPDst(_layer, _driver_data, _layer_data, _GopDst);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetGOPDst_OP */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetGOPDst_IP */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetGOPDst(CoreLayer *, void *, void *, DFBDisplayLayerGOPDST) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_IP()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (GopDst) */ 
    DFBDisplayLayerGOPDST _GopDst  = DLGD_IP0;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetGOPDst(_layer, _driver_data, _layer_data, _GopDst);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
       // CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
       // CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
       // CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetGOPDst_IP */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetGOPDst_ByPass */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetGOPDst(CoreLayer *, void *, void *, DFBDisplayLayerGOPDST) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_ByPass()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (GopDst) */ 
    DFBDisplayLayerGOPDST _GopDst  = DLGD_BYPASS;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetGOPDst(_layer, _driver_data, _layer_data, _GopDst);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
       // CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
       // CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
       // CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetGOPDst_ByPass */

/* CPPTEST_TEST_CASE_BEGIN test__mstar_SetBootLogoPatch_Default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _mstar_SetBootLogoPatch(CoreLayer *, void *, void *, int) */
void TestSuite_mstar_layer_c_eb559248_test__mstar_SetBootLogoPatch_Default()
{
	MSTARLayerData  stub_slay;
	MSTARDriverData  stub_sdrv;
	CoreLayer stub_layer;
	/* Pre-condition initialization */
	 /* Initializing argument 1 (layer) */
	CoreLayer * _layer  = &stub_layer ;
	/* Initializing argument 2 (driver_data) */
	void * _driver_data  = &stub_sdrv ;
	/* Initializing argument 3 (layer_data) */
	void * _layer_data  = &stub_slay ;
    /* Initializing argument 4 (miusel) */ 
    int _miusel  = 0;
    {
        /* Tested function call */
        DFBResult _return  = _mstar_SetBootLogoPatch(_layer, _driver_data, _layer_data, _miusel);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreLayer * _layer ", ( _layer ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _layer_data ", ( _layer_data ));
    }
}
/* CPPTEST_TEST_CASE_END test__mstar_SetBootLogoPatch_Default */
