#define PATCH_MSTAR_GE_BLEND_OPT 1  //FIXJASON, in void CppTest_Stub__mstarCheckStateInternal(), struct CardState doesn't define PATCH_MSTAR_GE_BLEND_OPT

#include "cpptest.h"

/**
 * This file contains user stub definitions.
 *
 * To create a user stub:
 * 1. Open stub template list:
 *    - Eclipse IDE: type 'stub' and press <Ctrl> <Space>
 *    - Microsoft Visual Studio IDE: use context menu C++test->Insert Snippet...
 * 2. Choose the stub template from the list.
 * 3. #include the header file where the function you want to stub is originally 
 *    declared as well as any supporting header files as necessary.
 * 4. Fill out the stub signature to match that of the original function, 
 *    while keeping the CppTest_Stub prefix when it applies.
 *    Note: for C++ operators, use appropriate stub names - e.g.:
 *        CppTest_Stub_operator_new    for operator new
 *        CppTest_Stub_operator_delete for operator delete
 *        CppTest_Stub_operator_plus   for operator +
 *    Refer to C++test User's Guide for a complete list of stub names for operators. 
 * 5. Fill out the body of the stub according to intent.
 *
 * Available C++test API functions (see C++test Users Guide for details):
 *     void CppTest_Assert(bool test, const char * message)
 *     void CppTest_Break()
 *     const char* CppTest_GetCurrentTestCaseName()
 *     const char* CppTest_GetCurrentTestSuiteName()
 *     bool CppTest_IsCurrentTestCase(const char* testCaseName)
 */

/** 
 * Header files where the stubbed functions are originally declared.
 * Verify #include directives and add any additional header files as necessary.
 */
#include "directfb.h"
#include "apiGFX.h"
#include "drvXC_IOPort.h"
#include "apiXC.h"
#include "apiXC_DWIN.h"
#include "apiPNL.h"
#include "drvTVEncoder.h"
#include "apiJPEG.h"
#include "MsOS.h"
#include "jpeglib.h"
#include "apiGOP.h"
#include "directfb_util.h"
#include "core/state.h"
#include "../gfxdrivers/mstar_g2/mstar_types.h"
#include "fusion/lock.h"
#include "direct/interface.h"
#include "direct/mem.h"
#include "direct/util.h"
#include "direct/debug.h"
#include "direct/thread.h"
#include "direct/modules.h"
#include "drvSEM.h"
#include "drvMMIO.h"
#include "core/core.h"
#include "core/gfxcard.h"
#include "core/screens.h"
#include "core/layers.h"
#include "fusion/reactor.h"
#include "fusion/call.h"
#include "fusion/shmalloc.h"
#include "core/surface.h"
#include "core/palette.h"
//#include "mstar.h"      //FIXJASON, original is OK
#if 0
// david test
#undef GFXDRAW_FLAG_DEFAULT
#undef GFXDRAW_FLAG_SCALE
#undef GFXDRAW_FLAG_DUPLICAPE
#undef GFXDRAW_FLAG_TRAPEZOID_X
#undef GFXDRAW_FLAG_TRAPEZOID_Y
// david test
#endif 


#include "directfb_util.h"
#include <misc/conf.h>
#include "core/state.h"

//DFBConfig *dfb_config = &config;



//FIXJASON
#if 1
static DirectConfig config = {
     .debug                 = false,
     .trace                 = true,
     .sighandler            = true,

     .fatal                 = DCFL_ASSERT,
     .fatal_break           = true,
     .thread_block_signals  = true,
     .thread_priority_scale = 100,
     .bdestroy              = false,

};

DirectConfig *direct_config       = &config;
#endif



//FIXJASON
#if 1  //FIXJASON
DFBConfig ABC_DFBConfig;
DFBConfig* dfb_config = &ABC_DFBConfig;
#endif



_Bool bRunInMock_MApi_GFX_BitBlt                              = false;
_Bool bRunInMock_MApi_GFX_BitBltEx                            = false;
_Bool bRunInMock_MApi_GFX_DrawLine                            = false;
_Bool bRunInMock_MApi_GFX_DrawOval                            = false;
_Bool bRunInMock_MApi_GFX_DrawOval_2                          = false;
_Bool bRunInMock_MApi_GFX_RectFill                            = false;
_Bool bRunInMock_MApi_GFX_TrapezoidFill                       = false;
                                                              
_Bool bRunInMock_MApi_GFX_SetDFBBldOP                         = false;
_Bool bRunInMock_MApi_GFX_SetDFBBldFlags                      = false;
_Bool bRunInMock_MApi_GFX_SetDFBBldConstColor                 = false;
_Bool bRunInMock_MApi_GFX_EnableDFBBlending                   = false;
_Bool bRunInMock_MApi_GFX_EnableAlphaBlending                 = false;
                                                              
_Bool bRunInMock_MApi_GFX_SetSrcColorKey                      = false;
_Bool bRunInMock_MApi_GFX_SetDstColorKey                      = false;
                                                              
_Bool bRunInMock_MApi_GFX_SetAlphaBlending                    = false;
_Bool bRunInMock_MApi_GFX_SetSrcBufferInfo                    = false;
_Bool bRunInMock_MApi_GFX_SetRotate                           = false;
_Bool bRunInMock_MApi_GFX_SetNearestMode                      = false;
_Bool bRunInMock_MApi_GFX_SetMirror                           = false;
                                                              
_Bool bEnableDFBBlending                                      = false;
_Bool bRunInMock_MApi_JPEG_UpdateReadInfo                     = false;
_Bool bRunInMock_MsOS_MPool_PA2KSEG1                          = false;
_Bool bRunInMock_MApi_JPEG_Exit                               = false;
_Bool bRunInMock_MApi_JPEG_Rst                                = false;
_Bool bRunInMock_dfb_primary_layer_pixelformat                = false;
_Bool bRunInMock_MApi_JPEG_HdlVidxChk                         = false;
_Bool bRunInMock_MApi_JPEG_GetJPDEventFlag                    = false;
_Bool bRunInMock_MApi_JPEG_GetBuffLoadType                    = false;
_Bool bRunInMock_MApi_JPEG_ReadData                           = false;
                                                              
                                                              
_Bool bRunInMock_MDrv_VE_InitVECapture 	                      = false;
_Bool bRunInMock_EnaVECapture                                 = false;
_Bool bRunInMock_MDrv_VE_EnaVECapture                         = false;
                                                              
_Bool bRunInMock_MDrv_VE_VECaptureWaitOnFrame                 = false;
                                                              
                                                              
_Bool bRunInMock_MApi_GOP_DWIN_EnableIntr                     = false;
_Bool bRunInMock_MApi_GOP_DWIN_Enable                         = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetForceWrite                  = false;
_Bool bRunInMock_MApi_GOP_DWIN_GetDWinIntInfoTimeout          = false;
_Bool bRunInMock_mstarAllSurfInfo 			                      = false;
_Bool bRunInMock_mstarCheckStateInternalInfo                  = false;
_Bool bRunInMock_fusion_skirmish_destroyInfo                  = false;
_Bool bRunInMock_MApi_GFX_GetNextTAGIDInfo                    = false;
_Bool bRunInMock_MApi_GFX_WaitForTAGIDInfo                    = false;
_Bool bRunInMock_MApi_XC_GetStatus_OK_Info                    = false;
_Bool bRunInMock_mstarCheckBlitOptionInfo                     = false;
_Bool bRunInMock_MsOS_InitInfo                                = false;
_Bool bRunInMock_MDrv_SEM_InitInfo                            = false;
_Bool bRunInMock_MApi_PNL_IOMapBaseInitInfo                   = false;
_Bool bRunInMock_MDrv_VE_SetIOMapBaseInfo                     = false;
_Bool bRunInMock_MApi_XC_InitInfo                             = false;
_Bool bRunInMock_mstar_sc_get_h_cap_startInfo                 = false;
_Bool bRunInMock_MApi_GOP_RegisterFBFmtCBInfo                 = false;
_Bool bRunInMock_MApi_GOP_RegisterXCIsInterlaceCBInfo         = false;
_Bool bRunInMock_MApi_GOP_RegisterXCGetCapHStartCBInfo        = false;
_Bool bRunInMock_MApi_GOP_RegisterXCReduceBWForOSDCBInfo      = false;
_Bool bRunInMock_MApi_GOP_GWIN_GetMaxGOPNumInfo               = false;
_Bool bRunInMock_MApi_GOP_InitByGOPInfo                       = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo                 = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo                 = false;
_Bool bRunInMock_MApi_GFX_InitInfo                            = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetMuxInfo                     = false;
_Bool bRunInMock_MApi_GFX_QueryDFBBldCapsInfo                 = false;
_Bool bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo                  = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetGOPDstInfo                  = false;
_Bool bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo           = false;
_Bool bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo             = false;
_Bool bRunInMock_MApi_XC_SetOSD2VEModeInfo                    = false;
_Bool bRunInMock_MApi_GFX_EnableVCmdQueueInfo                 = false;
_Bool bRunInMock_MApi_GFX_SetStrBltSckTypeInfo                = false;
_Bool bRunInMock_MsOS_FlushMemoryInfo                         = false;
_Bool bRunInMock_MApi_GFX_FlushQueueInfo                      = false;
_Bool bRunInMock_MApi_GFX_BeginDrawInfo                       = false;
_Bool bRunInMock_MApi_GFX_EndDrawInfo                         = false;
_Bool bRunInMock_MDrv_MMIO_InitInfo                           = false;
_Bool bRunInMock_dfb_core_is_masterInfo                       = false;
_Bool bRunInMock_dfb_gfxcard_memory_virtualInfo               = false;
_Bool bRunInMock_dfb_screens_registerInfo                     = false;
_Bool bRunInMock_dfb_layers_registerInfo                      = false;
_Bool bRunInMock_mstar_init_driverInfo                        = false;
_Bool bRunInMock_MApi_GFX_SetPaletteOptInfo                   = false;
_Bool bRunInMock_mstar_init_deviceInfo                        = false;
_Bool bRunInMock_fusion_skirmish_initInfo                     = false;
_Bool bRunInMock_dfb_core_worldInfo                           = false;
_Bool bRunInMock_MApi_GOP_GWIN_DestroyFBInfo                  = false;
_Bool bRunInMock_mstarSetSurfInfoSlotFreeInfo                 = false;
_Bool bRunInMock_mstarGetFreeSurfInfoSlotInfo                 = false;
_Bool bRunInMock_MApi_GOP_GWIN_CreateFBFrom3rdSurfInfo        = false;
_Bool bRunInMock_mstarSetSurfInfoSlotInfo                     = false;
_Bool bRunInMock_fusion_reactor_newInfo                       = false;
_Bool bRunInMock_fusion_call_initInfo                         = false;
_Bool bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo              = false;
_Bool bRunInMock_MApi_GOP_GWIN_OutputColorInfo                = false;
_Bool bRunInMock_dfb_core_shmpool_dataInfo                    = false;
_Bool bRunInMock_fusion_dbg_shmallocInfo                      = false;
char BUF[300];  //declare here
_Bool bRunInMock_fusion_call_executeInfo                      = false;
_Bool bRunInMock_fusion_dbg_shfreeInfo                        = false;
_Bool bRunInMock_MApi_GFX_SetDstBufferInfoInfo                = false;
_Bool bRunInMock_MApi_GFX_SetClipInfo                         = false;
_Bool bRunInMock_MApi_GFX_SetIntensityInfo                    = false;
_Bool bRunInMock_MApi_GFX_SetAlphaCmpInfo                     = false;
_Bool bRunInMock_MApi_GFX_SetDC_CSC_FMTInfo                   = false;
_Bool bRunInMock_EnaVECaptureInfo                             = false;
_Bool bRunInMock_fusion_skirmish_prevailInfo                  = false;
_Bool bRunInMock_mstarBuildUpdateInfo                         = false;
_Bool bRunInMock_mstarGFXAddrInfo                             = false;
_Bool bRunInMock_mstar_sc_is_interlaceInfo                    = false;
_Bool bRunInMock_dfb_gfxcard_memory_physicalInfo              = false;
_Bool bRunInMock_MApi_GOP_GWIN_DestroyWinInfo                 = false;
_Bool bRunInMock__mstarFindFBIdbyGWinIDInfo                   = false;
_Bool bRunInMock__mstarGetSurfInfoSlotInfo                    = false;
_Bool bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo        = false;
_Bool bRunInMock__mstarSetSlotGWinIDInfo                      = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo              = false;
_Bool bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo             = false;
_Bool bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo                 = false;
_Bool bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo                 = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo             = false;
_Bool bRunInMock_MApi_GOP_SetPINPONInfo                       = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info           = false;
_Bool bRunInMock_MApi_GOP_GetChipCapsInfo                     = false;
_Bool bRunInMock_MApi_GOP_SetConfigInfo                       = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetBlendingInfo                = false;
_Bool bRunInMock_MApi_GOP_GWIN_EnableInfo                     = false;
_Bool bRunInMock_mstarReorderGWINInfo                         = false;
_Bool bRunInMock_fusion_skirmish_dismissInfo                  = false;
_Bool bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo           = false;
_Bool bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = false;
_Bool bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo             = false;
_Bool bRunInMock_MApi_GOP_GWIN_SetPaletteOptInfo              = false;
_Bool bRunInMock__mstarRecordLayerCurPhyAddrInfo              = false;
_Bool bRunInMock_dfb_surface_flipInfo                         = false;
_Bool bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo        = false;
_Bool bRunInMock__mstarDFBFmt2MSFmtInfo                       = false;
_Bool bRunInMock_dfb_surface_createInfo                       = false;
_Bool bRunInMock_dfb_surface_reconfigInfo                     = false;
_Bool bRunInMock_dfb_palette_createInfo                       = false;
_Bool bRunInMock_dfb_palette_generate_rgb332_mapInfo          = false;
_Bool bRunInMock_dfb_surface_set_paletteInfo                  = false;
_Bool bRunInMock_dfb_palette_unrefInfo                        = false;
_Bool bRunInMock_MApi_GOP_DWIN_SetWinProperty                 = false;
_Bool bRunInMock_MApi_GOP_VE_SetOutputTiming                  = false;
_Bool bRunInMock_MApi_GOP_EnableLBCouple                      = false;


//_Bool bRunInMock_MApi_XC_GetStatus_NG_Info           = false;


MS_U16 HStart (void )
{
	return 0;
}

XC_PNL_OBJ g_IPanel= {0, HStart};

/** User stub definition for function: GFX_Result MApi_GFX_BitBlt(GFX_DrawRect *, MS_U32) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_BitBlt (GFX_DrawRect * drawbuf, MS_U32 drawflag) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_BitBlt (GFX_DrawRect * drawbuf, MS_U32 drawflag) 
{
	//printf("FIXJASON-user dfb_config(0x%x)\n", dfb_config);  //FIXJASON, del later

	bRunInMock_MApi_GFX_BitBlt = true;
    //printf("CppTest_Stub_MApi_GFX_BitBlt 0502 2000!\n");
	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_horiz_direct_is_false"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( GFXRECT_FLAG_TRAPE_DIRECTION_Y|GFXDRAW_FLAG_SCALE, drawflag);
		CPPTEST_ASSERT_UINTEGER_EQUAL(0,   ( drawbuf->srcblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(2,   ( drawbuf->srcblk.y ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->srcblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(130, ( drawbuf->srcblk.height ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(5,   ( drawbuf->dsttrapeblk.u16X0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(8,   ( drawbuf->dsttrapeblk.u16Y0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( drawbuf->dsttrapeblk.u16X1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(110, ( drawbuf->dsttrapeblk.u16Y1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(50,  ( drawbuf->dsttrapeblk.u16DeltaTop ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(70,  ( drawbuf->dsttrapeblk.u16DeltaBottom ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_horiz_direct_is_true"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( GFXRECT_FLAG_TRAPE_DIRECTION_X|GFXDRAW_FLAG_SCALE, drawflag);
		CPPTEST_ASSERT_UINTEGER_EQUAL(0,   ( drawbuf->srcblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(2,   ( drawbuf->srcblk.y ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->srcblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(130, ( drawbuf->srcblk.height ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(5,   ( drawbuf->dsttrapeblk.u16X0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(8,   ( drawbuf->dsttrapeblk.u16Y0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( drawbuf->dsttrapeblk.u16X1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(110, ( drawbuf->dsttrapeblk.u16Y1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(50,  ( drawbuf->dsttrapeblk.u16DeltaTop ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(70,  ( drawbuf->dsttrapeblk.u16DeltaBottom ));
		return GFX_SUCCESS;
	}

	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_xmirror"))
	{
		//printf("xmirror: srcblk.x = %d, %d\n\n", drawbuf->srcblk.x,  drawbuf->srcblk.width - 1);
		CPPTEST_ASSERT_UINTEGER_EQUAL(130, ( drawbuf->srcblk.x ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(4,   ( drawbuf->srcblk.y ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->srcblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(129, ( drawbuf->srcblk.height ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(5,   ( drawbuf->dsttrapeblk.u16X0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(8,   ( drawbuf->dsttrapeblk.u16Y0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( drawbuf->dsttrapeblk.u16X1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(110, ( drawbuf->dsttrapeblk.u16Y1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(50,  ( drawbuf->dsttrapeblk.u16DeltaTop ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(70,  ( drawbuf->dsttrapeblk.u16DeltaBottom ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_ymirror"))
	{
		//printf("ymirror: srcblk.y = %d, %d\n\n", drawbuf->srcblk.y,  drawbuf->srcblk.height - 1);
		CPPTEST_ASSERT_UINTEGER_EQUAL(132, ( drawbuf->srcblk.y ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(3,   ( drawbuf->srcblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->srcblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(129, ( drawbuf->srcblk.height ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(5,   ( drawbuf->dsttrapeblk.u16X0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(8,   ( drawbuf->dsttrapeblk.u16Y0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( drawbuf->dsttrapeblk.u16X1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(110, ( drawbuf->dsttrapeblk.u16Y1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(50,  ( drawbuf->dsttrapeblk.u16DeltaTop ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(70,  ( drawbuf->dsttrapeblk.u16DeltaBottom ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_xymirror"))
	{
	    //printf("xmirror: srcblk.x = %d, %d\n", drawbuf->srcblk.x,  drawbuf->srcblk.width - 1);
	    //printf("ymirror: srcblk.y = %d, %d\n\n", drawbuf->srcblk.y,  drawbuf->srcblk.height - 1);
		CPPTEST_ASSERT_UINTEGER_EQUAL(130, ( drawbuf->srcblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(132, ( drawbuf->srcblk.y ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->srcblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(129, ( drawbuf->srcblk.height ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(5,   ( drawbuf->dsttrapeblk.u16X0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(8,   ( drawbuf->dsttrapeblk.u16Y0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( drawbuf->dsttrapeblk.u16X1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(110, ( drawbuf->dsttrapeblk.u16Y1 ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(50,  ( drawbuf->dsttrapeblk.u16DeltaTop ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(70,  ( drawbuf->dsttrapeblk.u16DeltaBottom ));
		return GFX_SUCCESS;
	}

	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_return_true"))
	{
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_return_false"))
	{
		return GFX_FAIL;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_xmirror"))
	{
	    //printf("xmirror: srcblk.x = %d, %d\n\n", drawbuf->srcblk.x,  drawbuf->srcblk.width - 1);
	    CPPTEST_ASSERT_UINTEGER_EQUAL(132, ( drawbuf->srcblk.x ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_ymirror"))
	{
	    //printf("ymirror: srcblk.y = %d, %d\n\n", drawbuf->srcblk.y,  drawbuf->srcblk.height - 1);
	    CPPTEST_ASSERT_UINTEGER_EQUAL(137, ( drawbuf->srcblk.y ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_xymirror"))
	{
	    //printf("xmirror: srcblk.x = %d, %d\n", drawbuf->srcblk.x,  drawbuf->srcblk.width - 1);
	    //printf("ymirror: srcblk.y = %d, %d\n\n", drawbuf->srcblk.y,  drawbuf->srcblk.height - 1);
	    CPPTEST_ASSERT_UINTEGER_EQUAL(132, ( drawbuf->srcblk.x ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL(137, ( drawbuf->srcblk.y ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_no_mirror"))
	{
	    //printf("no xmirror: srcblk.x = %d, %d\n", drawbuf->srcblk.x,  drawbuf->srcblk.width - 1);
	    //printf("no ymirror: srcblk.y = %d, %d\n\n", drawbuf->srcblk.y,  drawbuf->srcblk.height - 1);
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 5, ( drawbuf->srcblk.x ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL(10, ( drawbuf->srcblk.y ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarBlit_rectInfo"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL(88, ( drawbuf->srcblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(2,  ( drawbuf->srcblk.y ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(88, ( drawbuf->srcblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(99, ( drawbuf->srcblk.height ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(4, ( drawbuf->dstblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(5, ( drawbuf->dstblk.y ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(88, ( drawbuf->dstblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(99, ( drawbuf->dstblk.height ));

		return GFX_SUCCESS;
	}

    return GFX_SUCCESS;
}

/** User stub definition for function: GFX_Result MApi_GFX_DrawLine(GFX_DrawLineInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_DrawLine (GFX_DrawLineInfo * pline) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_DrawLine (GFX_DrawLineInfo * pline) 
{
	bRunInMock_MApi_GFX_DrawLine = true;
	//printf("CppTest_Stub_MApi_GFX_DrawLine 0502 2000!\n");

    if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_ge_format_is_GFX_FMT_YUV422"))
	{
        //printf("STUBS:MApi_GFX_DrawLine, is_GFX_FMT_YUV422, %d, %d, %d, %d\n", pline->colorRange.color_s.a, pline->colorRange.color_s.r, pline->colorRange.color_s.g, pline->colorRange.color_s.b);

		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pline->colorRange.color_s.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 88, ( pline->colorRange.color_s.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(112, ( pline->colorRange.color_s.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(170, ( pline->colorRange.color_s.b ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_ge_format_not_GFX_FMT_YUV422"))
	{
		//printf("STUBS:MApi_GFX_DrawLine, not_GFX_FMT_YUV422,  %d, %d, %d, %d\n", pline->colorRange.color_s.a, pline->colorRange.color_s.r, pline->colorRange.color_s.g, pline->colorRange.color_s.b);

		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pline->colorRange.color_s.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pline->colorRange.color_s.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pline->colorRange.color_s.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pline->colorRange.color_s.b ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_NONE"))
	{
		//printf("STUBS:MApi_GFX_DrawLine,DSDRAW_COLOR_GRADIENT_is_NONE, pline->flag: %d \n", pline->flag);
        //printf("test11\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(GFXLINE_FLAG_COLOR_CONSTANT, ( pline->flag ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));

		CPPTEST_ASSERT_UINTEGER_EQUAL( 0 , (pline->x1));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 0 , (pline->y1));

		CPPTEST_ASSERT_UINTEGER_EQUAL( 128, (pline->x2));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 128, (pline->y2));

		CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_FMT_ARGB8888, (pline->fmt));


	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X"))
	{
		//printf("STUBS:MApi_GFX_DrawLine,DSDRAW_COLOR_GRADIENT_is_X, pline->flag: %d \n", pline->flag);

		CPPTEST_ASSERT_UINTEGER_EQUAL(GFXLINE_FLAG_COLOR_GRADIENT, ( pline->flag ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y"))
	{
		//printf("STUBS:MApi_GFX_DrawLine,DSDRAW_COLOR_GRADIENT_is_Y, pline->flag: %d \n", pline->flag);

		CPPTEST_ASSERT_UINTEGER_EQUAL(GFXLINE_FLAG_COLOR_GRADIENT, ( pline->flag ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_XY"))
	{
		//printf("STUBS:MApi_GFX_DrawLine,DSDRAW_COLOR_GRADIENT_is_XY, pline->flag: %d \n", pline->flag);

		CPPTEST_ASSERT_UINTEGER_EQUAL(GFXLINE_FLAG_COLOR_GRADIENT, ( pline->flag ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_is_GFX_FMT_YUV422"))
	{
        //printf("STUBS:MApi_GFX_DrawLine,GRADIENT_is_X ge_format is_GFX_FMT_YUV422, %d, %d, %d, %d\n", pline->colorRange.color_e.a, pline->colorRange.color_e.r, pline->colorRange.color_e.g, pline->colorRange.color_e.b);

		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pline->colorRange.color_e.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 88, ( pline->colorRange.color_e.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(112, ( pline->colorRange.color_e.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(170, ( pline->colorRange.color_e.b ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_not_GFX_FMT_YUV422"))
	{
		//printf("STUBS:MApi_GFX_DrawLine,GRADIENT_is_X ge_format not_GFX_FMT_YUV422,  %d, %d, %d, %d\n", pline->colorRange.color_e.a, pline->colorRange.color_e.r, pline->colorRange.color_e.g, pline->colorRange.color_e.b);

		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pline->colorRange.color_e.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pline->colorRange.color_e.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pline->colorRange.color_e.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pline->colorRange.color_e.b ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_is_GFX_FMT_YUV422"))
	{
        //printf("STUBS:MApi_GFX_DrawLine,GRADIENT_is_Y ge_format is_GFX_FMT_YUV422, %d, %d, %d, %d\n", pline->colorRange.color_e.a, pline->colorRange.color_e.r, pline->colorRange.color_e.g, pline->colorRange.color_e.b);

		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pline->colorRange.color_e.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 88, ( pline->colorRange.color_e.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(112, ( pline->colorRange.color_e.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(170, ( pline->colorRange.color_e.b ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_not_GFX_FMT_YUV422"))
	{
		//printf("STUBS:MApi_GFX_DrawLine,GRADIENT_is_Y ge_format not_GFX_FMT_YUV422,  %d, %d, %d, %d\n", pline->colorRange.color_e.a, pline->colorRange.color_e.r, pline->colorRange.color_e.g, pline->colorRange.color_e.b);

		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pline->colorRange.color_e.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pline->colorRange.color_e.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pline->colorRange.color_e.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pline->colorRange.color_e.b ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawRectangle_rectInfo"))
	{
		//printf("STUBS:MApi_GFX_DrawLine,GRADIENT_is_Y ge_format not_GFX_FMT_YUV422,  %d, %d, %d, %d\n", pline->colorRange.color_e.a, pline->colorRange.color_e.r, pline->colorRange.color_e.g, pline->colorRange.color_e.b);
		static int num = 1;

		//printf("TEST %d\n", num);
		if(num == 1)
		{
			num++;

			CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_FMT_YUV422, (pline->fmt));
			CPPTEST_ASSERT_UINTEGER_EQUAL(GFXLINE_FLAG_COLOR_CONSTANT, (pline->flag));
			CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pline->colorRange.color_s.a ));
			CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pline->colorRange.color_s.r ));
			CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pline->colorRange.color_s.g ));
			CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pline->colorRange.color_s.b ));

			CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pline->colorRange.color_e.a ));
			CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pline->colorRange.color_e.r ));
			CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pline->colorRange.color_e.g ));
			CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pline->colorRange.color_e.b ));
			CPPTEST_ASSERT_UINTEGER_EQUAL(  1, ( pline->width));

			CPPTEST_ASSERT_UINTEGER_EQUAL( 1 , (pline->x1));
			CPPTEST_ASSERT_UINTEGER_EQUAL( 2 , (pline->y1));

			CPPTEST_ASSERT_UINTEGER_EQUAL( 88, (pline->x2));
			CPPTEST_ASSERT_UINTEGER_EQUAL( 2 , (pline->y2));
		}
		else if(num == 2)
		{
			num++;
			CPPTEST_ASSERT_UINTEGER_EQUAL( 1 , (pline->x2));
			CPPTEST_ASSERT_UINTEGER_EQUAL(100, (pline->y2));
		}
		else if(num == 3)
		{
			num++;
			CPPTEST_ASSERT_UINTEGER_EQUAL(100, (pline->y1));
			CPPTEST_ASSERT_UINTEGER_EQUAL( 88, (pline->x2));
		}
		else if(num == 4)
		{
			num++;
			CPPTEST_ASSERT_UINTEGER_EQUAL( 88, (pline->x1));
			CPPTEST_ASSERT_UINTEGER_EQUAL(  2, (pline->y1));
		}

	}

    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_DrawOval(GFX_OvalFillInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_DrawOval (GFX_OvalFillInfo * pOval) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_DrawOval (GFX_OvalFillInfo * pOval) 
{
	bRunInMock_MApi_GFX_DrawOval = true;
	//printf("CppTest_Stub_MApi_GFX_DrawOval 0502 2000!\n");

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_true"))
	{
	    //printf("[LT]pOval->u32LineWidth = %d \n", pOval->u32LineWidth);
	    CPPTEST_ASSERT_UINTEGER_EQUAL(0, ( pOval->u32LineWidth));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(227, ( pOval->color.a));
    	CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pOval->color.r));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pOval->color.g));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pOval->color.b));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_false"))
	{
		static int cnt = 0;

	    if(cnt == 0)
	    {
	    	CPPTEST_ASSERT_UINTEGER_EQUAL(  0, ( pOval->u32LineWidth));
	    	CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pOval->color.a));
	    	CPPTEST_ASSERT_UINTEGER_EQUAL( 68, ( pOval->color.r));
	    	CPPTEST_ASSERT_UINTEGER_EQUAL( 50, ( pOval->color.g));
	    	CPPTEST_ASSERT_UINTEGER_EQUAL( 96, ( pOval->color.b));
	    }
	    else
	    {
	    	bRunInMock_MApi_GFX_DrawOval_2 = true;
	    	CPPTEST_ASSERT_UINTEGER_EQUAL(2, ( pOval->u32LineWidth));
	    	CPPTEST_ASSERT_UINTEGER_EQUAL(227, ( pOval->color.a));
	    	CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pOval->color.r));
	    	CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pOval->color.g));
	    	CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pOval->color.b));
	    }

	    cnt++;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_equal_zero"))
	{
	    //printf("[EQ]pOval->u32LineWidth = %d \n", pOval->u32LineWidth);
	    CPPTEST_ASSERT_UINTEGER_EQUAL(0, ( pOval->u32LineWidth));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(227, ( pOval->color.a));
    	CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pOval->color.r));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pOval->color.g));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pOval->color.b));

    	CPPTEST_ASSERT_UINTEGER_EQUAL( 2 , ( pOval->dstBlock.x));
    	CPPTEST_ASSERT_UINTEGER_EQUAL( 3 , ( pOval->dstBlock.y));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(30 , ( pOval->dstBlock.width));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(25 , ( pOval->dstBlock.height));

    	CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_FMT_ARGB8888 , ( pOval->fmt));
    	CPPTEST_ASSERT_UINTEGER_EQUAL(  0, ( pOval->u32LineWidth));
	}

    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_RectFill(GFX_RectFillInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_RectFill (GFX_RectFillInfo * pfillblock) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_RectFill (GFX_RectFillInfo * pfillblock) 
{
	bRunInMock_MApi_GFX_RectFill = true;

	/* defind in SN's apiGFX.h
	#define GFXRECT_FLAG_COLOR_GRADIENT_X   0x1
	#define GFXRECT_FLAG_COLOR_GRADIENT_Y   0x2
	*/
	//printf("CppTest_Stub_MApi_GFX_RectFill 0502 2000!\n");

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_ge_format_is_GFX_FMT_YUV422"))
	{
        //printf("STUBS:MApi_GFX_RectFill, %d, %d, %d, %d\n", pfillblock->colorRange.color_s.a, pfillblock->colorRange.color_s.r, pfillblock->colorRange.color_s.g, pfillblock->colorRange.color_s.b);

		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pfillblock->colorRange.color_s.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 88, ( pfillblock->colorRange.color_s.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(112, ( pfillblock->colorRange.color_s.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(170, ( pfillblock->colorRange.color_s.b ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_ge_format_not_GFX_FMT_YUV422"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pfillblock->colorRange.color_s.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pfillblock->colorRange.color_s.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pfillblock->colorRange.color_s.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pfillblock->colorRange.color_s.b ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_NONE_case"))
	{
	    //printf("GFXRECT_FLAG_COLOR_GRADIENT_NONE_case, the result flag should be:%d\n", pfillblock->flag);
	    CPPTEST_ASSERT_UINTEGER_EQUAL(GFXRECT_FLAG_COLOR_CONSTANT, ( pfillblock->flag ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_case"))
	{
		//printf("GFXRECT_FLAG_COLOR_GRADIENT_X_case, the result flag should be:%d\n", pfillblock->flag);
		CPPTEST_ASSERT_UINTEGER_EQUAL(GFXRECT_FLAG_COLOR_GRADIENT_X, ( pfillblock->flag ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_case"))
	{
		//printf("GFXRECT_FLAG_COLOR_GRADIENT_Y_case, the result flag should be:%d\n", pfillblock->flag);
		CPPTEST_ASSERT_UINTEGER_EQUAL(GFXRECT_FLAG_COLOR_GRADIENT_Y, ( pfillblock->flag ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_XY_case"))
	{
		//printf("GFXRECT_FLAG_COLOR_GRADIENT_XY_case, the result flag should be:%d\n", pfillblock->flag);
		CPPTEST_ASSERT_UINTEGER_EQUAL(GFXRECT_FLAG_COLOR_GRADIENT_X | GFXRECT_FLAG_COLOR_GRADIENT_Y, ( pfillblock->flag ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_is_GFX_FMT_YUV422"))
	{
		//printf("STUBS:MApi_GFX_RectFill for GRADIENT_X_ge_format_is_GFX_FMT_YUV422, %d, %d, %d, %d\n", pfillblock->colorRange.color_e.a, pfillblock->colorRange.color_e.r, pfillblock->colorRange.color_e.g, pfillblock->colorRange.color_e.b);
		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pfillblock->colorRange.color_e.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 88, ( pfillblock->colorRange.color_e.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(112, ( pfillblock->colorRange.color_e.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(170, ( pfillblock->colorRange.color_e.b ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_not_GFX_FMT_YUV422"))
	{
		//printf("STUBS:MApi_GFX_RectFill for GRADIENT_X_ge_format_not_GFX_FMT_YUV422, %d, %d, %d, %d\n", pfillblock->colorRange.color_e.a, pfillblock->colorRange.color_e.r, pfillblock->colorRange.color_e.g, pfillblock->colorRange.color_e.b);
		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pfillblock->colorRange.color_e.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pfillblock->colorRange.color_e.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pfillblock->colorRange.color_e.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pfillblock->colorRange.color_e.b ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_is_GFX_FMT_YUV422"))
	{
		//printf("STUBS:MApi_GFX_RectFill for GRADIENT_Y_ge_format_is_GFX_FMT_YUV422, %d, %d, %d, %d\n", pfillblock->colorRange.color_e.a, pfillblock->colorRange.color_e.r, pfillblock->colorRange.color_e.g, pfillblock->colorRange.color_e.b);
		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pfillblock->colorRange.color_e.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 88, ( pfillblock->colorRange.color_e.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(112, ( pfillblock->colorRange.color_e.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(170, ( pfillblock->colorRange.color_e.b ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_not_GFX_FMT_YUV422"))
	{
		//printf("STUBS:MApi_GFX_RectFill for GRADIENT_Y_ge_format_not_GFX_FMT_YUV422, %d, %d, %d, %d\n", pfillblock->colorRange.color_e.a, pfillblock->colorRange.color_e.r, pfillblock->colorRange.color_e.g, pfillblock->colorRange.color_e.b);
		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pfillblock->colorRange.color_e.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pfillblock->colorRange.color_e.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pfillblock->colorRange.color_e.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pfillblock->colorRange.color_e.b ));
	}

    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_TrapezoidFill(GFX_RectFillInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_TrapezoidFill (GFX_RectFillInfo * pGfxFillInfo) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_TrapezoidFill (GFX_RectFillInfo * pGfxFillInfo) 
{
	bRunInMock_MApi_GFX_TrapezoidFill = true;

	//printf("CppTest_Stub_MApi_GFX_TrapezoidFill 0502 2000!\n");
	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillTrapezoid_horiz_direct_is_false"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( GFXDRAW_FLAG_TRAPEZOID_Y, pGfxFillInfo->flag);
		CPPTEST_ASSERT_UINTEGER_EQUAL(5,   ( pGfxFillInfo->dstTrapezoidBlk.u16X0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(8,   ( pGfxFillInfo->dstTrapezoidBlk.u16Y0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( pGfxFillInfo->dstTrapezoidBlk.u16X1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(110, ( pGfxFillInfo->dstTrapezoidBlk.u16Y1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(50,  ( pGfxFillInfo->dstTrapezoidBlk.u16DeltaTop ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(70,  ( pGfxFillInfo->dstTrapezoidBlk.u16DeltaBottom ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_FMT_ARGB8888, ( pGfxFillInfo->fmt ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pGfxFillInfo->colorRange.color_s.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pGfxFillInfo->colorRange.color_s.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pGfxFillInfo->colorRange.color_s.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pGfxFillInfo->colorRange.color_s.b ));
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarFillTrapezoid_horiz_direct_is_true"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( GFXDRAW_FLAG_TRAPEZOID_X, pGfxFillInfo->flag);
		CPPTEST_ASSERT_UINTEGER_EQUAL(5,   ( pGfxFillInfo->dstTrapezoidBlk.u16X0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(8,   ( pGfxFillInfo->dstTrapezoidBlk.u16Y0 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( pGfxFillInfo->dstTrapezoidBlk.u16X1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(110, ( pGfxFillInfo->dstTrapezoidBlk.u16Y1 ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(50,  ( pGfxFillInfo->dstTrapezoidBlk.u16DeltaTop ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(70,  ( pGfxFillInfo->dstTrapezoidBlk.u16DeltaBottom ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_FMT_ARGB8888, ( pGfxFillInfo->fmt ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(255, ( pGfxFillInfo->colorRange.color_s.a ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 48, ( pGfxFillInfo->colorRange.color_s.r ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( pGfxFillInfo->colorRange.color_s.g ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(196, ( pGfxFillInfo->colorRange.color_s.b ));
	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_EnableDFBBlending(MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_EnableDFBBlending (MS_BOOL enable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_EnableDFBBlending (MS_BOOL enable) 
{
	bRunInMock_MApi_GFX_EnableDFBBlending = true;
	bEnableDFBBlending = enable;

    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_EnableAlphaBlending(MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_EnableAlphaBlending (MS_BOOL enable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_EnableAlphaBlending (MS_BOOL enable) 
{
	bRunInMock_MApi_GFX_EnableAlphaBlending = true;

	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable") ||
		CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND") ||
		CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND") ||
		CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR") )
	{
	    //printf("in CppTest_Auto_Stub_MApi_GFX_EnableAlphaBlending.. TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_ENABLE!!!!!\n");
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( enable ));
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_disable"))
	{
		//printf("MApi_GFX_EnableAlphaBlending for TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_disable\n");
		CPPTEST_ASSERT_BOOL_EQUAL(FALSE, ( enable ));
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Enabled"))
	{
		CPPTEST_ASSERT_BOOL_EQUAL(FALSE, ( enable ));
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Disabled"))
	{
		CPPTEST_ASSERT_BOOL_EQUAL(FALSE, ( enable ));
	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetDFBBldOP(GFX_DFBBldOP, GFX_DFBBldOP) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDFBBldOP (GFX_DFBBldOP gfxSrcBldOP, GFX_DFBBldOP gfxDstBldOP) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetDFBBldOP (GFX_DFBBldOP gfxSrcBldOP, GFX_DFBBldOP gfxDstBldOP) 
{
	bRunInMock_MApi_GFX_SetDFBBldOP = true;

    if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR"))
	{
	    //printf("CppTest_Auto_Stub_MApi_GFX_SetDFBBldOP for starSetEngineBlitState_AlphaBlend_enable...\n");
        CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_DFB_BLD_OP_SRCCOLOR,  gfxSrcBldOP);
        CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_DFB_BLD_OP_DESTCOLOR,  gfxDstBldOP);

	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetDFBBldFlags(MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDFBBldFlags (MS_U16 u16DFBBldFlags) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetDFBBldFlags (MS_U16 u16DFBBldFlags) 
{
	bRunInMock_MApi_GFX_SetDFBBldFlags = true;

    if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR"))
	{
        //printf("CppTest_Auto_Stub_MApi_GFX_SetDFBBldFlags for starSetEngineBlitState_AlphaBlend_enable...\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(true,  u16DFBBldFlags);

	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetDFBBldConstColor(GFX_RgbColor) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDFBBldConstColor (GFX_RgbColor gfxRgbColor) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetDFBBldConstColor (GFX_RgbColor gfxRgbColor) 
{
	bRunInMock_MApi_GFX_SetDFBBldConstColor = true;

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND") ||
       CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR"))
	{
        //printf("CppTest_Auto_Stub_MApi_GFX_SetDFBBldConstColor for  TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable...\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(255,  gfxRgbColor.a); // ge_src_colorkey_enabled
		CPPTEST_ASSERT_UINTEGER_EQUAL(127,  gfxRgbColor.r);
		CPPTEST_ASSERT_UINTEGER_EQUAL(227,  gfxRgbColor.g);
		CPPTEST_ASSERT_UINTEGER_EQUAL( 27,  gfxRgbColor.b);
	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetDstColorKey(MS_BOOL, GFX_ColorKeyMode, GFX_Buffer_Format, void *, void *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDstColorKey (MS_BOOL enable, GFX_ColorKeyMode opMode, GFX_Buffer_Format fmt, void * ps_color, void * pe_color) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetDstColorKey (MS_BOOL enable, GFX_ColorKeyMode opMode, GFX_Buffer_Format fmt, void * ps_color, void * pe_color) 
{
	bRunInMock_MApi_GFX_SetDstColorKey  = true;

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_DST_COLORKEY"))
	{
		//printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_DST_COLORKEY\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL( 1, enable); // ge_blit_dst_colorkey_enabled
		CPPTEST_ASSERT_UINTEGER_EQUAL( CK_OP_NOT_EQUAL, opMode);
		CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ARGB8888, fmt);
	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetSrcColorKey(MS_BOOL, GFX_ColorKeyMode, GFX_Buffer_Format, void *, void *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetSrcColorKey (MS_BOOL enable, GFX_ColorKeyMode opMode, GFX_Buffer_Format fmt, void * ps_color, void * pe_color) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetSrcColorKey (MS_BOOL enable, GFX_ColorKeyMode opMode, GFX_Buffer_Format fmt, void * ps_color, void * pe_color) 
{
	bRunInMock_MApi_GFX_SetSrcColorKey = true;

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SRC_COLORKEY"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SRC_COLORKEY\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(1, enable); // ge_src_colorkey_enabled
		CPPTEST_ASSERT_UINTEGER_EQUAL(CK_OP_EQUAL, opMode);
		CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_FMT_ARGB8888, fmt );
	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetRotate(GFX_RotateAngle) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetRotate (GFX_RotateAngle angle) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetRotate (GFX_RotateAngle angle) 
{
	bRunInMock_MApi_GFX_SetRotate = true;

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE90"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE90\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(GEROTATE_270,  angle); // ge_src_colorkey_enabled

	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE180"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE180\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(GEROTATE_180,  angle); // ge_src_colorkey_enabled

	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE270"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE270\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(GEROTATE_90,  angle); // ge_src_colorkey_enabled

	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE0"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE0\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(GEROTATE_0,  angle); // ge_src_colorkey_enabled

	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetNearestMode(MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetNearestMode (MS_BOOL enable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetNearestMode (MS_BOOL enable) 
{
	bRunInMock_MApi_GFX_SetNearestMode = true;

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_NEARESTMODE"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_NEARESTMODE\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(1,  enable); // ge_src_colorkey_enabled
	}

    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetMirror(MS_BOOL, MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetMirror (MS_BOOL isMirrorX, MS_BOOL isMirrorY) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetMirror (MS_BOOL isMirrorX, MS_BOOL isMirrorY) 
{
	bRunInMock_MApi_GFX_SetMirror = true;

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_XMIRROR"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_XMIRROR\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(1, isMirrorX); // ge_src_colorkey_enabled
		CPPTEST_ASSERT_UINTEGER_EQUAL(0, isMirrorY);
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_YMIRROR"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_YMIRROR\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(0, isMirrorX); // ge_src_colorkey_enabled
		CPPTEST_ASSERT_UINTEGER_EQUAL(1, isMirrorY);
	}

    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetSrcBufferInfo(GFX_BufferInfo *, MS_U32) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetSrcBufferInfo (GFX_BufferInfo * bufInfo, MS_U32 offsetofByte) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetSrcBufferInfo (GFX_BufferInfo * bufInfo, MS_U32 offsetofByte) 
{
	bRunInMock_MApi_GFX_SetSrcBufferInfo = true;

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SOURCE"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SOURCE\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(0x680000,  bufInfo->u32Addr); // ge_src_colorkey_enabled
		CPPTEST_ASSERT_UINTEGER_EQUAL(GFX_FMT_ARGB8888,  bufInfo->u32ColorFmt);
		CPPTEST_ASSERT_UINTEGER_EQUAL(256,  bufInfo->u32Width);
		CPPTEST_ASSERT_UINTEGER_EQUAL(512,  bufInfo->u32Height);
	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetAlphaBlending(GFX_BlendCoef, MS_U8) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetAlphaBlending (GFX_BlendCoef blendcoef, MS_U8 blendfactor) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetAlphaBlending (GFX_BlendCoef blendcoef, MS_U8 blendfactor) 
{
	bRunInMock_MApi_GFX_SetAlphaBlending = true;
	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_alpha_cmp_enabled"))
	{
        //printf("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_alpha_cmp_enabled\n");
		CPPTEST_ASSERT_UINTEGER_EQUAL(2,  blendcoef);
		CPPTEST_ASSERT_UINTEGER_EQUAL(139,  blendfactor);
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Enabled"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL(2,  blendcoef);
		CPPTEST_ASSERT_UINTEGER_EQUAL(255,  blendfactor);
	}
    return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_BitBltEx(GFX_DrawRect *, MS_U32, GFX_ScaleInfo *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_BitBltEx (GFX_DrawRect * drawbuf, MS_U32 drawflag, GFX_ScaleInfo * ScaleInfo) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_BitBltEx (GFX_DrawRect * drawbuf, MS_U32 drawflag, GFX_ScaleInfo * ScaleInfo) 
{
	bRunInMock_MApi_GFX_BitBltEx = true;

	if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_return_true"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL(20, ( ScaleInfo->u32DeltaX ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(20, ( ScaleInfo->u32DeltaY ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(10, ( ScaleInfo->u32InitDelatX ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(10, ( ScaleInfo->u32InitDelatY ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( 0, ( drawflag ));

		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( drawbuf->dstblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(100, ( drawbuf->dstblk.y ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->dstblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->dstblk.height ));

		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_return_false"))
	{
		return GFX_FAIL;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_xmirror"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL(132, ( drawbuf->srcblk.x ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_ymirror"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL(137, ( drawbuf->srcblk.y ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_xymirror"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL(132, ( drawbuf->srcblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(137, ( drawbuf->srcblk.y ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_no_mirror"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( 5, ( drawbuf->srcblk.x ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(10, ( drawbuf->srcblk.y ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->srcblk.width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(128, ( drawbuf->srcblk.height ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_even"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( 128, ( drawbuf->dstblk.width ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_odd"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( 128, ( drawbuf->dstblk.width ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_even"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( 128, ( drawbuf->srcblk.width ));
		return GFX_SUCCESS;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_odd"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( 126, ( drawbuf->srcblk.width ));
		return GFX_SUCCESS;
	}

    return GFX_FAIL;
}

/** User stub definition for function: MS_BOOL MApi_XC_GetDstInfo(MS_XC_DST_DispInfo *, MS_U32, EN_GOP_XCDST_TYPE) */
EXTERN_C_LINKAGE MS_BOOL MApi_XC_GetDstInfo (MS_XC_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo, EN_GOP_XCDST_TYPE XCDstType) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MApi_XC_GetDstInfo (MS_XC_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo, EN_GOP_XCDST_TYPE XCDstType) 
{
    if(XCDstType == E_GOP_XCDST_IP1_MAIN)
    {
        if(CppTest_IsCurrentTestCase("TestSuite_mstar_screen_c_899e0a52_test_mstarGetIP0ScreenSize_WH_within_correct_range"))
        {
        	pDstInfo->DEHEND = 1279;
        	pDstInfo->DEHST = 0;
        	pDstInfo->DEVEND = 719;
        	pDstInfo->DEVST = 0;
        }
        else if(CppTest_IsCurrentTestCase("TestSuite_mstar_screen_c_899e0a52_test_mstarGetIP0ScreenSize_unsupported_MIN_WH"))
        {
        	  pDstInfo->DEHEND = 31;
            pDstInfo->DEHST = 0;
            pDstInfo->DEVEND = 719;
            pDstInfo->DEVST = 0;
        }
        else if(CppTest_IsCurrentTestCase("TestSuite_mstar_screen_c_899e0a52_test_mstarGetIP0ScreenSize_unsupported_MAX_WH"))
        {
        	  pDstInfo->DEHEND = 2099;
            pDstInfo->DEHST = 0;
            pDstInfo->DEVEND = 719;
            pDstInfo->DEVST = 0;
        }
        else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_sc_get_ip0_h_cap_start_default"))
        {
           	//pDstInfo->DEHEND = 31;
            pDstInfo->DEHST = 200;
            //pDstInfo->DEVEND = 719;
            //pDstInfo->DEVST = 0;
        }
        else if(CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer"))
        {
        	pDstInfo->DEHEND = 200;
        	pDstInfo->DEHST  = 100;
        	pDstInfo->DEVEND = 200;
        	pDstInfo->DEVST  = 100;

            return (unsigned char)1;

        }
    }

    return (unsigned char)0;
}

/** User stub definition for function: MS_BOOL MApi_PNL_GetDstInfo(MS_PNL_DST_DispInfo *, MS_U32) */
EXTERN_C_LINKAGE MS_BOOL MApi_PNL_GetDstInfo (MS_PNL_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MApi_PNL_GetDstInfo (MS_PNL_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) 
{
	if(CppTest_IsCurrentTestCase("TestSuite_mstar_screen_c_899e0a52_test_mstarGetOPScreenSize_W1280_H720"))
	{
		pDstInfo->DEHEND = 1279;
		pDstInfo->DEHST = 0;
		pDstInfo->DEVEND = 719;
		pDstInfo->DEVST = 0;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_sc_get_h_cap_start_default"))
	{
		//pDstInfo->DEHEND = 1279;
		pDstInfo->DEHST = 100;
		//pDstInfo->DEVEND = 719;
		//pDstInfo->DEVST = 0;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_OP0_Layer"))
	{
		//pDstInfo->DEHEND = 1279;
		//pDstInfo->DEHST = 100;
		//pDstInfo->DEVEND = 719;
		//pDstInfo->DEVST = 0;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP"))
	{
		//pDstInfo->DEHEND = 1279;
		//pDstInfo->DEHST = 100;
		//pDstInfo->DEVEND = 719;
		//pDstInfo->DEVST = 0;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcUpdateDWinProperty_default"))
	{
		pDstInfo->DEHEND = 500;
		pDstInfo->DEHST = 0;
		pDstInfo->DEVEND = 500;
		pDstInfo->DEVST = 0;
	}

	return (unsigned char)0;
}

/** User stub definition for function: MS_BOOL MApi_VE_GetDstInfo(MS_VE_DST_DispInfo *, MS_U32) */
EXTERN_C_LINKAGE MS_BOOL MApi_VE_GetDstInfo (MS_VE_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MApi_VE_GetDstInfo (MS_VE_DST_DispInfo * pDstInfo, MS_U32 u32SizeofDstInfo) 
{
	if(CppTest_IsCurrentTestCase("TestSuite_mstar_screen_c_899e0a52_test_mstarGetVEScreenSize_W1280_H720"))
    {
		pDstInfo->DEHEND = 1279;
		pDstInfo->DEHST = 0;
		pDstInfo->DEVEND = 719;
		pDstInfo->DEVST = 0;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_MIXER2VE"))
	{
		//pDstInfo->DEHEND = 1279;
		//pDstInfo->DEHST = 0;
		//pDstInfo->DEVEND = 719;
		//pDstInfo->DEVST = 0;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_MIXER2VE_Layer"))
	{
		//pDstInfo->DEHEND = 1279;
		//pDstInfo->DEHST = 0;
		//pDstInfo->DEVEND = 719;
		//pDstInfo->DEVST = 0;
	}

    return (unsigned char)0;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetAlphaSrcFrom(GFX_AlphaSrcFrom) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetAlphaSrcFrom (GFX_AlphaSrcFrom eMode) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetAlphaSrcFrom (GFX_AlphaSrcFrom eMode) 
{
    return GFX_FAIL;
}

/** User stub definition for function: void MApi_JPEG_UpdateReadInfo(MS_U32, MS_BOOL) */
EXTERN_C_LINKAGE void MApi_JPEG_UpdateReadInfo (MS_U32 u32DataRead, MS_BOOL bEOFflag) ;
EXTERN_C_LINKAGE void CppTest_Stub_MApi_JPEG_UpdateReadInfo (MS_U32 u32DataRead, MS_BOOL bEOFflag) 
{
	bRunInMock_MApi_JPEG_UpdateReadInfo = true;
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_83a75d57_test_MApi_JPEG_ReadData_bIsEOF_false"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( 4, ( u32DataRead ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( false, ( bEOFflag ));
	}
}

/** User stub definition for function: MS_U32 MsOS_MPool_PA2KSEG1(MS_U32) */
EXTERN_C_LINKAGE MS_U32 MsOS_MPool_PA2KSEG1 (MS_U32 pAddrPhys) ;
EXTERN_C_LINKAGE MS_U32 CppTest_Stub_MsOS_MPool_PA2KSEG1 (MS_U32 pAddrPhys) 
{
	bRunInMock_MsOS_MPool_PA2KSEG1 = true;
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_83a75d57_test_MApi_JPEG_ReadData_bIsEOF_false"))
	{
		return 0x1000;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_return_ok"))
	{
		return 0x1000;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_fail"))
	{
		return 0UL;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_ok"))
	{
		return 0UL;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_addr_0")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_length_0")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_length_0")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_addr_0")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_addr_0")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_length_0")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_jpeg_hwdecode_false"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( 1000, ( 0 ));
	}
    return 0UL;
}

/** User stub definition for function: DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
EXTERN_C_LINKAGE DFBResult _IDirectFBImageprovider_JPEG_MappingPool (IDirectFBImageProvider * thiz) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub__IDirectFBImageprovider_JPEG_MappingPool (IDirectFBImageProvider * thiz) 
{
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default"))
	{
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 1000, ( dfb_config->mst_jpeg_readbuff_addr ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 32, ( dfb_config->mst_jpeg_readbuff_length ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 1032, ( dfb_config->mst_jpeg_interbuff_addr ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 64, ( dfb_config->mst_jpeg_interbuff_length ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 1096, ( dfb_config->mst_jpeg_outbuff_addr ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 256, ( dfb_config->mst_jpeg_outbuff_length ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( dfb_config->mst_jpeg_hwdecode  ));
	    return DFB_OK;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default"))
	{
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x1234, ( dfb_config->mst_jpeg_readbuff_addr ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 100, ( dfb_config->mst_jpeg_readbuff_length ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x2345, ( dfb_config->mst_jpeg_interbuff_addr ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 200, ( dfb_config->mst_jpeg_interbuff_length ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x3456, ( dfb_config->mst_jpeg_outbuff_addr ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 300, ( dfb_config->mst_jpeg_outbuff_length ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( dfb_config->mst_jpeg_hwdecode  ));
	    return DFB_OK;
	}

    return DFB_OK;
}

/** User stub definition for function: MS_BOOL MsOS_MPool_Mapping(MS_U8, MS_U32, MS_U32, MS_BOOL) */
EXTERN_C_LINKAGE MS_BOOL MsOS_MPool_Mapping (MS_U8 u8MiuSel, MS_U32 u32Offset, MS_U32 u32MapSize, MS_BOOL bNonCache) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MsOS_MPool_Mapping (MS_U8 u8MiuSel, MS_U32 u32Offset, MS_U32 u32MapSize, MS_BOOL bNonCache) 
{
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_fail"))
	{
		return (unsigned char)0;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_ok"))
	{
		return (unsigned char)1;
	}
    return (unsigned char)0;
}

/** User stub definition for function: struct jpeg_error_mgr * jpeg_std_error(struct jpeg_error_mgr *) */
EXTERN_C_LINKAGE struct jpeg_error_mgr * jpeg_std_error (struct jpeg_error_mgr * err) ;
EXTERN_C_LINKAGE struct jpeg_error_mgr * CppTest_Stub_jpeg_std_error (struct jpeg_error_mgr * err) 
{
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_Construct_MPool_initial"))
	{
		return err;
	}
    return err;
}

/** User stub definition for function: void MApi_JPEG_Rst(void) */
EXTERN_C_LINKAGE void MApi_JPEG_Rst () ;
EXTERN_C_LINKAGE void CppTest_Stub_MApi_JPEG_Rst (void) 
{
	bRunInMock_MApi_JPEG_Rst = true;
}

/** User stub definition for function: void MApi_JPEG_Exit(void) */
EXTERN_C_LINKAGE void MApi_JPEG_Exit () ;
EXTERN_C_LINKAGE void CppTest_Stub_MApi_JPEG_Exit (void) 
{
	bRunInMock_MApi_JPEG_Exit = true;
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegStop_default")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_FAILED"))
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( bRunInMock_MApi_JPEG_Rst  ));
	}
}

/** User stub definition for function: DFBSurfacePixelFormat dfb_primary_layer_pixelformat(void) */
EXTERN_C_LINKAGE DFBSurfacePixelFormat dfb_primary_layer_pixelformat () ;
EXTERN_C_LINKAGE DFBSurfacePixelFormat CppTest_Stub_dfb_primary_layer_pixelformat (void) 
{
	bRunInMock_dfb_primary_layer_pixelformat = true;
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_default"))
	{
		return DSPF_ARGB;
	}
    return DSPF_UNKNOWN;
}


/** User stub definition for function: JPEG_Result MApi_JPEG_HdlVidxChk(void) */
EXTERN_C_LINKAGE JPEG_Result MApi_JPEG_HdlVidxChk () ;
EXTERN_C_LINKAGE JPEG_Result CppTest_Stub_MApi_JPEG_HdlVidxChk (void) 
{
	bRunInMock_MApi_JPEG_HdlVidxChk = true;
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_FAILED"))
	{
		 return E_JPEG_FAILED;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_DONE")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_OKAY")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_FAILED")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_RETRY"))
	{
		return E_JPEG_OKAY;
	}
    return E_JPEG_OKAY;
}

/** User stub definition for function: JPEG_Event MApi_JPEG_GetJPDEventFlag(void) */
EXTERN_C_LINKAGE JPEG_Event MApi_JPEG_GetJPDEventFlag () ;
EXTERN_C_LINKAGE JPEG_Event CppTest_Stub_MApi_JPEG_GetJPDEventFlag (void) 
{
	bRunInMock_MApi_JPEG_GetJPDEventFlag = true;
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_DONE"))
	{
		 return E_JPEG_EVENT_DEC_DONE;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_OKAY")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_FAILED")
			|| CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_RETRY"))
	{
		 return E_JPEG_EVENT_DEC_MRB_DONE;
	}

    return E_JPEG_EVENT_DEC_DONE;
}

/** User stub definition for function: JPEG_Result MApi_JPEG_GetBuffLoadType(JPEG_BuffLoadType *) */
EXTERN_C_LINKAGE JPEG_Result MApi_JPEG_GetBuffLoadType (JPEG_BuffLoadType * pBuffLoadType) ;
EXTERN_C_LINKAGE JPEG_Result CppTest_Stub_MApi_JPEG_GetBuffLoadType (JPEG_BuffLoadType * pBuffLoadType) 
{
	bRunInMock_MApi_JPEG_GetBuffLoadType = true;
	if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_OKAY"))
	{
		 return E_JPEG_OKAY;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_FAILED"))
	{
		 return E_JPEG_FAILED;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_RETRY"))
	{
		 return E_JPEG_RETRY;
	}

    return E_JPEG_FAILED;
}

/** User stub definition for function: void MApi_JPEG_ReadData(IDirectFBDataBuffer *, JPEG_InitParam *, JPEG_BuffLoadType) */
EXTERN_C_LINKAGE void MApi_JPEG_ReadData (IDirectFBDataBuffer * buffer, JPEG_InitParam * pJpegInitParam, JPEG_BuffLoadType eType) ;
EXTERN_C_LINKAGE void CppTest_Stub_MApi_JPEG_ReadData (IDirectFBDataBuffer * buffer, JPEG_InitParam * pJpegInitParam, JPEG_BuffLoadType eType) 
{
	bRunInMock_MApi_JPEG_ReadData = true;
}

/** User stub definition for function: MS_BOOL MDrv_VE_EnaVECapture(PMS_VE_VECAPTURESTATE) */
EXTERN_C_LINKAGE MS_BOOL MDrv_VE_EnaVECapture (PMS_VE_VECAPTURESTATE pstVECapState) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MDrv_VE_EnaVECapture (PMS_VE_VECAPTURESTATE pstVECapState) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_EnaVECapture_Enable_Input_not_E_XC_IP_SUB_CapState_is_true") )
	{
		bRunInMock_MDrv_VE_EnaVECapture = TRUE;

	    return TRUE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_EnaVECapture_Enable_Input_not_E_XC_IP_SUB_CapState_is_false") )
	{
		bRunInMock_MDrv_VE_EnaVECapture = TRUE;

	    return FALSE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_EnaVECapture_Disable_Input") )
	{
		bRunInMock_MDrv_VE_EnaVECapture = TRUE;

	    return TRUE;
	}

    return (unsigned char)1;
}

/** User stub definition for function: void MDrv_VE_InitVECapture(PMS_VE_Output_CAPTURE) */
EXTERN_C_LINKAGE void MDrv_VE_InitVECapture (PMS_VE_Output_CAPTURE pVECapture) ;
EXTERN_C_LINKAGE void CppTest_Stub_MDrv_VE_InitVECapture (PMS_VE_Output_CAPTURE pVECapture) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_EnaVECapture_Disable_Input") )
	{
		bRunInMock_MDrv_VE_InitVECapture = true;
	}
}

#if 0
/** User stub definition for function: _Bool EnaVECapture(IDirectFBVideoProvider_VEC_data *) */
EXTERN_C_LINKAGE _Bool EnaVECapture (IDirectFBVideoProvider_VEC_data * data) ;
EXTERN_C_LINKAGE _Bool CppTest_Stub_EnaVECapture (IDirectFBVideoProvider_VEC_data * data) 
{
	bRunInMock_EnaVECapture = true;

    return false;
}

#endif

/** User stub definition for function: MS_BOOL MDrv_VE_VECaptureWaitOnFrame(PMS_VE_VECAPTURESTATE) */
EXTERN_C_LINKAGE MS_BOOL MDrv_VE_VECaptureWaitOnFrame (PMS_VE_VECAPTURESTATE pstVECapState) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MDrv_VE_VECaptureWaitOnFrame (PMS_VE_VECAPTURESTATE pstVECapState) 
{
	/* define in SN's apiGOP.h
	typedef struct
	{
	    MS_BOOL bEnable; //InOut
	    MS_U8   u8FrameCount; //Out, value range: 0~3
	    MS_U8   u8Result; //Out
	}MS_GOP_VECAPTURESTATE, *PMS_GOP_VECAPTURESTATE;
	*/

	bRunInMock_MDrv_VE_VECaptureWaitOnFrame = TRUE;

	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_vecOneFrameDone_Check_stVECapState") )
	{
	    CPPTEST_ASSERT_UINTEGER_EQUAL( VE_VECAPTURESTATE_VERSION, ( pstVECapState->u16Version ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( sizeof(MS_VE_VECAPTURESTATE), ( pstVECapState->u16Length ));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 1, ( pstVECapState->u8FrameCount ));
	    pstVECapState->u8Result = TRUE;
	    return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_vecOneFrameDone_return_TRUE") )
	{
		pstVECapState->u8Result = TRUE;
	    return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_vecOneFrameDone_return_FALSE_when_MDrv_VE_VECaptureWaitOnFrame_return_false"))
	{
		pstVECapState->u8Result = TRUE;
		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_vecOneFrameDone_return_FALSE_when_stVECapState2eu8Result_is_FALSE"))
	{
		pstVECapState->u8Result = FALSE;
	    return (unsigned char)1;
	}
    return (unsigned char)0;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_EnableIntr(MS_U16, MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_EnableIntr (MS_U16 u8mask, MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_EnableIntr (MS_U16 u8mask, MS_BOOL bEnable) 
{
	bRunInMock_MApi_GOP_DWIN_EnableIntr = TRUE;

	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOpen_EnableIntr_fail") )
	{
		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOpen_Enable_fail") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOpen_success") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcClose_default") )
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( bRunInMock_MApi_GOP_GWIN_SetForceWrite  ));
		return GOP_API_FAIL;
	}

    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetForceWrite(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetForceWrite (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetForceWrite (MS_BOOL bEnable) 
{
	bRunInMock_MApi_GOP_GWIN_SetForceWrite = TRUE;

	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcClose_default") )
	{
		static int counter  = 0;
		if (counter == 1)
		{
			CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( bRunInMock_MApi_GOP_DWIN_Enable  ));
			CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( bRunInMock_MApi_GOP_DWIN_EnableIntr  ));
			CPPTEST_ASSERT_UINTEGER_EQUAL( false, ( bEnable  ));
			counter  = 0;
		}
		else if (counter == 0)
		{
			CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( bEnable  ));
		}
		counter ++;
		return GOP_API_FAIL;
	}

    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_Enable(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_Enable (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_Enable (MS_BOOL bEnable) 
{
	bRunInMock_MApi_GOP_DWIN_Enable = TRUE;
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOpen_EnableIntr_fail") )
	{
		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOpen_Enable_fail") )
	{
		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOpen_success") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcClose_default") )
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( bRunInMock_MApi_GOP_DWIN_EnableIntr  ));
		CPPTEST_ASSERT_UINTEGER_EQUAL( true, ( bRunInMock_MApi_GOP_GWIN_SetForceWrite  ));
		return GOP_API_FAIL;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_GetDWinIntInfoTimeout(GOP_DWinIntInfo *, MS_U32) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_GetDWinIntInfoTimeout (GOP_DWinIntInfo * pDWinIntInfo, MS_U32 u32Timeout) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_GetDWinIntInfoTimeout (GOP_DWinIntInfo * pDWinIntInfo, MS_U32 u32Timeout) 
{
	bRunInMock_MApi_GOP_DWIN_GetDWinIntInfoTimeout = TRUE;

	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOneFrameDone_timeout_fail") )
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( 50, ( u32Timeout ));
		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOneFrameDone_dwin_fail") )
	{
		pDWinIntInfo->sDwinIntInfo.bDWinIntPROG = false;
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcOneFrameDone_success") )
	{
		pDWinIntInfo->sDwinIntInfo.bDWinIntPROG = true;
		return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}



/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_SetOutputCapture(MS_BOOL, E_XC_SOURCE_TO_VE) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_SetOutputCapture (MS_BOOL bEnable, E_XC_SOURCE_TO_VE eSourceToVE) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_SetOutputCapture (MS_BOOL bEnable, E_XC_SOURCE_TO_VE eSourceToVE) 
{
	return E_APIXC_RET_FAIL;
}

/** User stub definition for function: MS_U16 MApi_XC_GetOutputVFreqX100(void) */
EXTERN_C_LINKAGE MS_U16 MApi_XC_GetOutputVFreqX100 () ;
EXTERN_C_LINKAGE MS_U16 CppTest_Stub_MApi_XC_GetOutputVFreqX100 (void) 
{
	//printf("STUB: MApi_XC_GetOutputVFreqX100\n");
    return (unsigned short)0;
}

/** User stub definition for function: void MDrv_VE_SwitchInputSource(PMS_Switch_VE_Src_Info) */
EXTERN_C_LINKAGE void MDrv_VE_SwitchInputSource (PMS_Switch_VE_Src_Info pSwitchInfo) ;
EXTERN_C_LINKAGE void CppTest_Stub_MDrv_VE_SwitchInputSource (PMS_Switch_VE_Src_Info pSwitchInfo) 
{
}

/** User stub definition for function: void MDrv_VE_SetMode(MS_VE_Set_Mode_Type *) */
EXTERN_C_LINKAGE void MDrv_VE_SetMode (MS_VE_Set_Mode_Type * pVESetMode) ;
EXTERN_C_LINKAGE void CppTest_Stub_MDrv_VE_SetMode (MS_VE_Set_Mode_Type * pVESetMode) 
{
}

/** User stub definition for function: void MDrv_VE_SetOutputCtrl(PMS_VE_Output_Ctrl) */
EXTERN_C_LINKAGE void MDrv_VE_SetOutputCtrl (PMS_VE_Output_Ctrl pOutputCtrl) ;
EXTERN_C_LINKAGE void CppTest_Stub_MDrv_VE_SetOutputCtrl (PMS_VE_Output_Ctrl pOutputCtrl) 
{
}

/** User stub definition for function: _Bool dfb_rectangle_intersect(DFBRectangle *, const DFBRectangle *) */
EXTERN_C_LINKAGE _Bool dfb_rectangle_intersect (DFBRectangle * rectangle, const DFBRectangle * clip) ;
EXTERN_C_LINKAGE _Bool CppTest_Stub_dfb_rectangle_intersect (DFBRectangle * rectangle, const DFBRectangle * clip) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test__IDirectFBImageProvider_VEC_RenderTo_dst_rect_size_is_normal") )
	{
		//printf("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test__IDirectFBImageProvider_VEC_RenderTo_dst_rect_size_is_normal\n");
		return false;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test__IDirectFBImageProvider_VEC_RenderTo_dst_rect_is_NULL") )
	{
		//printf("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test__IDirectFBImageProvider_VEC_RenderTo_dst_rect_is_NULL\n");
		return false;
	}

	return true;
}

/** User stub definition for function: void dfb_state_set_clip(CardState *, const DFBRegion *) */
EXTERN_C_LINKAGE void dfb_state_set_clip (CardState * state, const DFBRegion * clip) ;
EXTERN_C_LINKAGE void CppTest_Stub_dfb_state_set_clip (CardState * state, const DFBRegion * clip) 
{
}

/** User stub definition for function: DFBResult dfb_state_set_destination(CardState *, CoreSurface *) */
EXTERN_C_LINKAGE DFBResult dfb_state_set_destination (CardState * state, CoreSurface * destination) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_dfb_state_set_destination (CardState * state, CoreSurface * destination) 
{
    return DFB_OK;
}

/** User stub definition for function: GFX_Result MApi_GFX_BeginDraw(void) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_BeginDraw () ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_BeginDraw (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_BeginDraw_default") )
	{
		bRunInMock_MApi_GFX_BeginDrawInfo = true;  //set

		return GFX_FAIL;
	}

    //return GFX_FAIL;
}

/** User stub definition for function: void mstarAllSurfInfo(MSTARDriverData *) */
EXTERN_C_LINKAGE void mstarAllSurfInfo (MSTARDriverData * sdrv) ;
EXTERN_C_LINKAGE void CppTest_Stub_mstarAllSurfInfo (MSTARDriverData * sdrv) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_close_driver_default") )
	{
		bRunInMock_mstarAllSurfInfo = TRUE;

		//printf("Jason !!!\n");

		CPPTEST_ASSERT_UINTEGER_EQUAL( 123, ( sdrv->num_inputs ));
	}
}


/** User stub definition for function: void _mstarCheckStateInternal(CardState *, DFBAccelerationMask, DFBAccelerationMask *, DFBSurfaceBlittingFlags) */
EXTERN_C_LINKAGE void _mstarCheckStateInternal (CardState * state, DFBAccelerationMask accel, DFBAccelerationMask * pAccelRdy, DFBSurfaceBlittingFlags supported_blittingflags) ;
EXTERN_C_LINKAGE void CppTest_Stub__mstarCheckStateInternal (CardState * state, DFBAccelerationMask accel, DFBAccelerationMask * pAccelRdy, DFBSurfaceBlittingFlags supported_blittingflags) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarCheckState_default") )
	{

        //#define PATCH_MSTAR_GE_BLEND_OPT 1

	    bRunInMock_mstarCheckStateInternalInfo = true;  //set

	    //state->magic = 100;  //set, don't necessary to test this

	    //printf("Jason !!!\n");
	    //CardState abc;  //del later
	    //printf("3: (0x%x) (0x%x) (0x%x)\n", &(state->dst_blend), &(state->mstar_patchBlendParam), &(state->cmp_mode));
	    //printf("3: (0x%x) (0x%x) (0x%x) (0x%x)\n", &(state->blit_nearestmode_enabled), &(state->blit_xmirror_enabled), &(state->blit_ymirror_enabled), &(state->src_colorkey) );
	    //printf("3: stacksize(%d) state(%p)->src_colorkey:%d, (0x%x)\n", sizeof(abc), state, state->src_colorkey, &(state->src_colorkey));
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 1, state->fusion_id );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000002, state->flags );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000080, state->modified );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000100, state->mod_hw );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000040, state->drawingflags );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000020, state->blittingflags );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( true, state->blit_nearestmode_enabled );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( true, state->blit_xmirror_enabled );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( true, state->blit_ymirror_enabled );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 2, state->src_colorkey );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 3, state->dst_colorkey );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 456, state->num_translation );

	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0x00000002, accel );
	}
}

/** User stub definition for function: DirectResult fusion_skirmish_destroy(FusionSkirmish *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_destroy (FusionSkirmish * skirmish) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_fusion_skirmish_destroy (FusionSkirmish * skirmish) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_close_device_default") )
	{
	    bRunInMock_fusion_skirmish_destroyInfo = true;  //set

	    //printf("Jason !!!\n");

		CPPTEST_ASSERT_UINTEGER_EQUAL( 111, skirmish->single.count );
	}

    return DR_OK;
}

/** User stub definition for function: MS_U16 MApi_GFX_GetNextTAGID(MS_BOOL) */
EXTERN_C_LINKAGE MS_U16 MApi_GFX_GetNextTAGID (MS_BOOL bStepTagBefore) ;
EXTERN_C_LINKAGE MS_U16 CppTest_Stub_MApi_GFX_GetNextTAGID (MS_BOOL bStepTagBefore) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarGetSerial_default") )
	{
	    bRunInMock_MApi_GFX_GetNextTAGIDInfo = true;  //set

	    //printf("Jason !!!\n");
	    CPPTEST_ASSERT_BOOL_EQUAL( false, bStepTagBefore );
	}

    return (unsigned short)222;
}

/** User stub definition for function: GFX_Result MApi_GFX_WaitForTAGID(MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_WaitForTAGID (MS_U16 tagID) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_WaitForTAGID (MS_U16 tagID) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarWaitSerial_default") )
	{
	    bRunInMock_MApi_GFX_WaitForTAGIDInfo = true;  //set

	    //printf("Jason !!!\n");

	    CPPTEST_ASSERT_UINTEGER_EQUAL( 100, tagID );
	}

    return GFX_FAIL;
}

/** User stub definition for function: MS_BOOL MApi_XC_GetStatus(XC_ApiStatus *, SCALER_WIN) */
EXTERN_C_LINKAGE MS_BOOL MApi_XC_GetStatus (XC_ApiStatus * pDrvStatus, SCALER_WIN eWindow) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MApi_XC_GetStatus (XC_ApiStatus * pDrvStatus, SCALER_WIN eWindow) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_mstar_sc_is_interlace_OK") )
    {
		//printf("Jason 1!!!\n");

		bRunInMock_MApi_XC_GetStatus_OK_Info = true;  //set

		pDrvStatus->bInterlace = 2;

		return true;
	}
	//else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_mstar_sc_is_interlace_NG") )
	//{
	//	bRunInMock_MApi_XC_GetStatus_NG_Info = true;  //set
    //
	//    printf("Jason 2!!!\n");
    //
	//    return false;
	//}
}

/** User stub definition for function: const char * DirectFBErrorString(DFBResult) */
EXTERN_C_LINKAGE const char * DirectFBErrorString (DFBResult result) ;
EXTERN_C_LINKAGE const char * CppTest_Stub_DirectFBErrorString (DFBResult result) 
{
    return (const char *)0;
}

/** User stub definition for function: void DirectUnregisterInterface(DirectInterfaceFuncs *) */
EXTERN_C_LINKAGE void DirectUnregisterInterface (DirectInterfaceFuncs * funcs) ;
EXTERN_C_LINKAGE void CppTest_Stub_DirectUnregisterInterface (DirectInterfaceFuncs * funcs) 
{
}

/** User stub definition for function: void direct_assertion(const char *, const char *, const char *, int) */
EXTERN_C_LINKAGE void direct_assertion (const char * exp, const char * func, const char * file, int line) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_assertion (const char * exp, const char * func, const char * file, int line) 
{
}

/** User stub definition for function: void direct_messages_error(const char *, ...) */
EXTERN_C_LINKAGE void direct_messages_error (const char * format, ...) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_messages_error (const char * format, ...) 
{
}

/** User stub definition for function: void * direct_malloc(const char *, int, const char *, size_t) */
EXTERN_C_LINKAGE void * direct_malloc (const char * file, int line, const char * func, size_t bytes) ;
EXTERN_C_LINKAGE void * CppTest_Stub_direct_malloc (const char * file, int line, const char * func, size_t bytes) 
{
    return (void *)0;
}

/** User stub definition for function: void direct_messages_warn(const char *, const char *, int, const char *, ...) */
EXTERN_C_LINKAGE void direct_messages_warn (const char * func, const char * file, int line, const char * format, ...) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_messages_warn (const char * func, const char * file, int line, const char * format, ...) 
{
}

/** User stub definition for function: void direct_free(const char *, int, const char *, const char *, void *) */
EXTERN_C_LINKAGE void direct_free (const char * file, int line, const char * func, const char * what, void * mem) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_free (const char * file, int line, const char * func, const char * what, void * mem) 
{
}

/** User stub definition for function: void direct_dbg_interface_remove(const char *, const char *, int, const char *, const void *) */
EXTERN_C_LINKAGE void direct_dbg_interface_remove (const char * func, const char * file, int line, const char * what, const void * interface) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_dbg_interface_remove (const char * func, const char * file, int line, const char * what, const void * interface) 
{
}

/** User stub definition for function: void direct_assumption(const char *, const char *, const char *, int) */
EXTERN_C_LINKAGE void direct_assumption (const char * exp, const char * func, const char * file, int line) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_assumption (const char * exp, const char * func, const char * file, int line) 
{
}

/** User stub definition for function: void * direct_calloc(const char *, int, const char *, size_t, size_t) */
EXTERN_C_LINKAGE void * direct_calloc (const char * file, int line, const char * func, size_t count, size_t bytes) ;
EXTERN_C_LINKAGE void * CppTest_Stub_direct_calloc (const char * file, int line, const char * func, size_t count, size_t bytes) 
{
    return (void *)0;
}

/** User stub definition for function: void direct_dbg_interface_add(const char *, const char *, int, const char *, const void *, const char *) */
EXTERN_C_LINKAGE void direct_dbg_interface_add (const char * func, const char * file, int line, const char * what, const void * interface, const char * name) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_dbg_interface_add (const char * func, const char * file, int line, const char * what, const void * interface, const char * name) 
{
}

/** User stub definition for function: void DirectRegisterInterface(DirectInterfaceFuncs *) */
EXTERN_C_LINKAGE void DirectRegisterInterface (DirectInterfaceFuncs * funcs) ;
EXTERN_C_LINKAGE void CppTest_Stub_DirectRegisterInterface (DirectInterfaceFuncs * funcs) 
{
}

/** User stub definition for function: DirectResult errno2result(int) */
EXTERN_C_LINKAGE DirectResult errno2result (int erno) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_errno2result (int erno) 
{
    return DR_OK;
}

/** User stub definition for function: void direct_messages_perror(int, const char *, ...) */
EXTERN_C_LINKAGE void direct_messages_perror (int erno, const char * format, ...) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_messages_perror (int erno, const char * format, ...) 
{
}

/** User stub definition for function: void direct_trim(char **) */
EXTERN_C_LINKAGE void direct_trim (char ** s) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_trim (char ** s) 
{
}

/** User stub definition for function: void direct_debug(const char *, ...) */
EXTERN_C_LINKAGE void direct_debug (const char * format, ...) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_debug (const char * format, ...) 
{
}

/** User stub definition for function: void direct_debug_at(DirectDebugDomain *, const char *, ...) */
EXTERN_C_LINKAGE void direct_debug_at (DirectDebugDomain * domain, const char * format, ...) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_debug_at (DirectDebugDomain * domain, const char * format, ...) 
{
}

/** User stub definition for function: void direct_messages_info(const char *, ...) */
EXTERN_C_LINKAGE void direct_messages_info (const char * format, ...) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_messages_info (const char * format, ...) 
{
}

/** User stub definition for function: int direct_util_recursive_pthread_mutex_init(pthread_mutex_t *) */
EXTERN_C_LINKAGE int direct_util_recursive_pthread_mutex_init (pthread_mutex_t * mutex) ;
EXTERN_C_LINKAGE int CppTest_Stub_direct_util_recursive_pthread_mutex_init (pthread_mutex_t * mutex) 
{
    return 0;
}

/** User stub definition for function: void direct_thread_cancel(DirectThread *) */
EXTERN_C_LINKAGE void direct_thread_cancel (DirectThread * thread) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_thread_cancel (DirectThread * thread) 
{
}

/** User stub definition for function: void direct_thread_join(DirectThread *) */
EXTERN_C_LINKAGE void direct_thread_join (DirectThread * thread) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_thread_join (DirectThread * thread) 
{
}

/** User stub definition for function: void direct_thread_destroy(DirectThread *) */
EXTERN_C_LINKAGE void direct_thread_destroy (DirectThread * thread) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_thread_destroy (DirectThread * thread) 
{
}

/** User stub definition for function: DirectThread * direct_thread_create(DirectThreadType, DirectThreadMainFunc, void *, const char *) */
EXTERN_C_LINKAGE DirectThread * direct_thread_create (DirectThreadType thread_type, DirectThreadMainFunc thread_main, void * arg, const char * name) ;
EXTERN_C_LINKAGE DirectThread * CppTest_Stub_direct_thread_create (DirectThreadType thread_type, DirectThreadMainFunc thread_main, void * arg, const char * name) 
{
    return (DirectThread *)0;
}

/** User stub definition for function: _Bool direct_thread_is_canceled(DirectThread *) */
EXTERN_C_LINKAGE _Bool direct_thread_is_canceled (DirectThread * thread) ;
EXTERN_C_LINKAGE _Bool CppTest_Stub_direct_thread_is_canceled (DirectThread * thread) 
{
    return false;
}

/** User stub definition for function: char * direct_strdup(const char *, int, const char *, const char *) */
EXTERN_C_LINKAGE char * direct_strdup (const char * file, int line, const char * func, const char * string) ;
EXTERN_C_LINKAGE char * CppTest_Stub_direct_strdup (const char * file, int line, const char * func, const char * string) 
{
    return (char *)0;
}

/** User stub definition for function: void direct_messages_bug(const char *, const char *, int, const char *, ...) */
EXTERN_C_LINKAGE void direct_messages_bug (const char * func, const char * file, int line, const char * format, ...) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_messages_bug (const char * func, const char * file, int line, const char * format, ...) 
{
}

/** User stub definition for function: void direct_modules_register(DirectModuleDir *, unsigned int, const char *, const void *) */
EXTERN_C_LINKAGE void direct_modules_register (DirectModuleDir * directory, unsigned abi_version, const char * name, const void * funcs) ;
EXTERN_C_LINKAGE void CppTest_Stub_direct_modules_register (DirectModuleDir * directory, unsigned abi_version, const char * name, const void * funcs) 
{
}

/** User stub definition for function: MS_U8 MApi_GOP_GWIN_GetMaxGOPNum(void) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_GetMaxGOPNum () ;
EXTERN_C_LINKAGE MS_U8 CppTest_Stub_MApi_GOP_GWIN_GetMaxGOPNum (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_GWIN_GetMaxGOPNumInfo = true;  //set

	    //printf("Jason !!!\n");

	    return /*127*/ 255;  //return-value should be bigger enough to avoid assert(0)
	}
}



/** User stub definition for function: _Bool mstarCheckBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlittingFlags) */
EXTERN_C_LINKAGE _Bool mstarCheckBlitOption (DFBSurfaceBlittingFlags blittingflags, DFBSurfaceBlittingFlags supported_blittingflags) ;
EXTERN_C_LINKAGE _Bool CppTest_Stub_mstarCheckBlitOption (DFBSurfaceBlittingFlags blittingflags, DFBSurfaceBlittingFlags supported_blittingflags) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_AccelRdy_Change") )
	{
		bRunInMock_mstarCheckBlitOptionInfo = true;  //set

	    //printf("Jason !!!\n");

	    return true;
	}

}

/** User stub definition for function: MS_BOOL MsOS_Init(void) */
EXTERN_C_LINKAGE MS_BOOL MsOS_Init () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MsOS_Init (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MsOS_InitInfo = true;  //set

	    //printf("Jason !!!\n");

	    return true;
	}
}

/** User stub definition for function: MS_BOOL MDrv_SEM_Init(void) */
EXTERN_C_LINKAGE MS_BOOL MDrv_SEM_Init () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MDrv_SEM_Init (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MDrv_SEM_InitInfo = true;  //set

	    //printf("Jason !!!\n");

	    return true;
	}
}

/** User stub definition for function: MS_BOOL MApi_PNL_IOMapBaseInit(void) */
EXTERN_C_LINKAGE MS_BOOL MApi_PNL_IOMapBaseInit () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MApi_PNL_IOMapBaseInit (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_PNL_IOMapBaseInitInfo = true;  //set

	    //printf("Jason !!!\n");

	    return true;
	}
}

/** User stub definition for function: MS_BOOL MDrv_VE_SetIOMapBase(void) */
EXTERN_C_LINKAGE MS_BOOL MDrv_VE_SetIOMapBase () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MDrv_VE_SetIOMapBase (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MDrv_VE_SetIOMapBaseInfo = true;  //set

	    //printf("Jason !!!\n");

	    return true;
	}
}

/** User stub definition for function: MS_BOOL MApi_XC_Init(XC_INITDATA *, MS_U32) */
EXTERN_C_LINKAGE MS_BOOL MApi_XC_Init (XC_INITDATA * pXC_InitData, MS_U32 u32InitDataLen) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MApi_XC_Init (XC_INITDATA * pXC_InitData, MS_U32 u32InitDataLen) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_XC_InitInfo = true;  //set

	    //printf("Jason !!!\n");

		CPPTEST_ASSERT_UINTEGER_EQUAL( 0, u32InitDataLen );

	    return true;
	}
}

/** User stub definition for function: MS_U16 mstar_sc_get_h_cap_start(void) */
EXTERN_C_LINKAGE MS_U16 mstar_sc_get_h_cap_start (void) ;
EXTERN_C_LINKAGE MS_U16 CppTest_Stub_mstar_sc_get_h_cap_start (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_mstar_sc_get_h_cap_startInfo = true;  //set

	    //printf("Jason !!!\n");

	    return 2;
	}
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_RegisterFBFmtCB(MS_U32 (*)(MS_U16, MS_U32, MS_U16)) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_RegisterFBFmtCB (MS_U32 (* fpGOP_CB)(MS_U16, MS_U32, MS_U16)) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_RegisterFBFmtCB (MS_U32 (* fpGOP_CB)(MS_U16, MS_U32, MS_U16)) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_RegisterFBFmtCBInfo = true;  //set

	    //printf("Jason !!!\n");

	    return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_RegisterXCIsInterlaceCB(MS_BOOL (*)(void)) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_RegisterXCIsInterlaceCB (MS_BOOL (* fpGOP_CB)(void)) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_RegisterXCIsInterlaceCB (MS_BOOL (* fpGOP_CB)(void)) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_RegisterXCIsInterlaceCBInfo = true;  //set

	    //printf("Jason !!!\n");

	    return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_RegisterXCGetCapHStartCB(MS_U16 (*)(void)) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_RegisterXCGetCapHStartCB (MS_U16 (* fpGOP_CB)(void)) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_RegisterXCGetCapHStartCB (MS_U16 (* fpGOP_CB)(void)) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_RegisterXCGetCapHStartCBInfo = true;  //set

	    //printf("Jason !!!\n");

	    return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_RegisterXCReduceBWForOSDCB(void (*)(MS_U8, MS_BOOL)) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_RegisterXCReduceBWForOSDCB (void (* fpGOP_CB)(MS_U8, MS_BOOL)) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_RegisterXCReduceBWForOSDCB (void (* fpGOP_CB)(MS_U8, MS_BOOL)) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_RegisterXCReduceBWForOSDCBInfo = true;  //set

	    //printf("Jason !!!\n");

	    return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_InitByGOP(GOP_InitInfo *, MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_InitByGOP (GOP_InitInfo * pGopInit, MS_U8 u8GOP) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_InitByGOP (GOP_InitInfo * pGopInit, MS_U8 u8GOP) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_InitByGOPInfo = true;  //set

	    //printf("Jason !!!\n");

		return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetHMirror(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetHMirror (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetHMirror (MS_BOOL bEnable)
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo = true;  //set

	    //printf("Jason !!!\n");

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo = true;  //set

	    //printf("Jason !!!\n");

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Enable") )
	{
		bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo = true;  //set

		//printf("Jason !!!\n");

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Disable") )
	{
		bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo = true;  //set

		//printf("Jason !!!\n");

		return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetVMirror(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetVMirror (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetVMirror (MS_BOOL bEnable) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo = true;  //set

	    //printf("Jason !!!\n");

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo = true;  //set

	    //printf("Jason !!!\n");

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Enable") )
	{
		bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo = true;  //set

		//printf("Jason !!!\n");

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVMirrorEnable_Disable") )
	{
		bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo = true;  //set

		//printf("Jason !!!\n");

		return GOP_API_FAIL;
	}


    //return GOP_API_FAIL;
}

/** User stub definition for function: void MApi_GFX_Init(GFX_Config *) */
EXTERN_C_LINKAGE void MApi_GFX_Init (GFX_Config * geConfig) ;
EXTERN_C_LINKAGE void CppTest_Stub_MApi_GFX_Init (GFX_Config * geConfig) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GFX_InitInfo = true;  //set

	    //printf("Jason !!!\n");
	}
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetMux(GOP_MuxConfig *, MS_U32) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetMux (GOP_MuxConfig * pGopMuxConfig, MS_U32 u32SizeOfMuxInfo) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetMux (GOP_MuxConfig * pGopMuxConfig, MS_U32 u32SizeOfMuxInfo) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GOP_GWIN_SetMuxInfo = true;  //set

	    //printf("Jason !!!\n");

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GOP_GWIN_SetMuxInfo = true;  //set

	    //printf("Jason !!!\n");

		return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_QueryDFBBldCaps(MS_U16 *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_QueryDFBBldCaps (MS_U16 * pU16SupportedBldFlags) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_QueryDFBBldCaps (MS_U16 * pU16SupportedBldFlags) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default") )
	{
		bRunInMock_MApi_GFX_QueryDFBBldCapsInfo = true;  //set

	    //printf("Jason !!!\n");

		return GFX_FAIL;
	}

    //return GFX_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SwitchGOP(MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SwitchGOP (MS_U8 u8GOP) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SwitchGOP (MS_U8 u8GOP) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_MIXER2VE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_MIXER2VE_Layer") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_OP0_Layer") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_E_GOP_DST_VE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_IP0") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
		else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo = true;  //set

		return GOP_API_FAIL;
	}
	
  //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetGOPDst(MS_U8, EN_GOP_DST_TYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetGOPDst (MS_U8 u8GOP, EN_GOP_DST_TYPE dsttype) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetGOPDst (MS_U8 u8GOP, EN_GOP_DST_TYPE dsttype) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GOP_GWIN_SetGOPDstInfo = true;  //set

	    //printf("Jason !!!\n");

		return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_HStretchMode(EN_GOP_STRETCH_HMODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_HStretchMode (EN_GOP_STRETCH_HMODE HStrchMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_Set_HStretchMode (EN_GOP_STRETCH_HMODE HStrchMode) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo = true;  //set

		return GOP_API_FAIL;
	}
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo = true;  //set

		return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_EnableTransClr(EN_GOP_TRANSCLR_FMT, MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_EnableTransClr (EN_GOP_TRANSCLR_FMT fmt, MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_EnableTransClr (EN_GOP_TRANSCLR_FMT fmt, MS_BOOL bEnable) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo = true;  //set

		return GOP_API_FAIL;
	}
		
  //return GOP_API_FAIL;
}

/** User stub definition for function: void MApi_XC_SetOSD2VEMode(EN_VOP_SEL_OSD_XC2VE_MUX) */
EXTERN_C_LINKAGE void MApi_XC_SetOSD2VEMode (EN_VOP_SEL_OSD_XC2VE_MUX eVOPSelOSD_MUX) ;
EXTERN_C_LINKAGE void CppTest_Stub_MApi_XC_SetOSD2VEMode (EN_VOP_SEL_OSD_XC2VE_MUX eVOPSelOSD_MUX) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_XC_SetOSD2VEModeInfo = true;  //set

	    //printf("Jason !!!\n");
	}
}

/** User stub definition for function: GFX_Result MApi_GFX_EnableVCmdQueue(MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_EnableVCmdQueue (MS_U16 blEnable) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_EnableVCmdQueue (MS_U16 blEnable) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GFX_EnableVCmdQueueInfo = true;  //set

	    //printf("Jason !!!\n");

		return GFX_FAIL;
	}

    //return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetStrBltSckType(GFX_StretchCKType, GFX_RgbColor *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetStrBltSckType (GFX_StretchCKType type, GFX_RgbColor * color) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetStrBltSckType (GFX_StretchCKType type, GFX_RgbColor * color) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default") )
	{
		bRunInMock_MApi_GFX_SetStrBltSckTypeInfo = true;  //set

	    //printf("Jason !!!\n");

		return GFX_FAIL;
	}

    //return GFX_FAIL;
}

/** User stub definition for function: void MsOS_FlushMemory(void) */
EXTERN_C_LINKAGE void MsOS_FlushMemory () ;
EXTERN_C_LINKAGE void CppTest_Stub_MsOS_FlushMemory (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_FlushTextureCache_default") )
	{
		bRunInMock_MsOS_FlushMemoryInfo = true;  //set
	}
}

/** User stub definition for function: GFX_Result MApi_GFX_FlushQueue(void) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_FlushQueue () ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_FlushQueue (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_EngineSync_default") )
	{
		bRunInMock_MApi_GFX_FlushQueueInfo = true;  //set

		return GFX_FAIL;
	}
    //return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_EndDraw(void) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_EndDraw () ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_EndDraw (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_EndDraw_default") )
	{
		bRunInMock_MApi_GFX_EndDrawInfo = true;  //set

		return GFX_FAIL;
	}

    //return GFX_FAIL;
}

/** User stub definition for function: MS_BOOL MDrv_MMIO_Init(void) */
EXTERN_C_LINKAGE MS_BOOL MDrv_MMIO_Init () ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MDrv_MMIO_Init (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default") )
	{
		bRunInMock_MDrv_MMIO_InitInfo = true;  //set

		return true;
	}

	//return (unsigned char)0;
}

/** User stub definition for function: _Bool dfb_core_is_master(CoreDFB *) */
EXTERN_C_LINKAGE _Bool dfb_core_is_master (CoreDFB * core) ;
EXTERN_C_LINKAGE _Bool CppTest_Stub_dfb_core_is_master (CoreDFB * core) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default") )
	{
		bRunInMock_dfb_core_is_masterInfo = true;  //set

		return /*true*/ false;
	}
}

/** User stub definition for function: void * dfb_gfxcard_memory_virtual(CoreGraphicsDevice *, unsigned int) */
EXTERN_C_LINKAGE void * dfb_gfxcard_memory_virtual (CoreGraphicsDevice * device, unsigned offset) ;
EXTERN_C_LINKAGE void * CppTest_Stub_dfb_gfxcard_memory_virtual (CoreGraphicsDevice * device, unsigned offset) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_virtualInfo = true;  //set

		return (void *)0;
	}
	
    //return (void *)0;
}

/** User stub definition for function: CoreScreen * dfb_screens_register(CoreGraphicsDevice *, void *, ScreenFuncs *) */
EXTERN_C_LINKAGE CoreScreen * dfb_screens_register (CoreGraphicsDevice * device, void * driver_data, ScreenFuncs * funcs) ;
EXTERN_C_LINKAGE CoreScreen * CppTest_Stub_dfb_screens_register (CoreGraphicsDevice * device, void * driver_data, ScreenFuncs * funcs) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default") )
	{
		bRunInMock_dfb_screens_registerInfo = true;  //set

		return (CoreScreen *)100;
		//return (CoreScreen *)(&aCoreScreen);
	}

    //return (CoreScreen *)0;
}

/** User stub definition for function: CoreLayer * dfb_layers_register(CoreScreen *, void *, const DisplayLayerFuncs *) */
EXTERN_C_LINKAGE CoreLayer * dfb_layers_register (CoreScreen * screen, void * driver_data, const DisplayLayerFuncs * funcs) ;
EXTERN_C_LINKAGE CoreLayer * CppTest_Stub_dfb_layers_register (CoreScreen * screen, void * driver_data, const DisplayLayerFuncs * funcs) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default") )
	{
		bRunInMock_dfb_layers_registerInfo = true;  //set

		return (CoreLayer *)2;
	}

    //return (CoreLayer *)0;
}

/** User stub definition for function: DFBResult mstar_init_driver(CoreGraphicsDevice *, void *, void *) */
EXTERN_C_LINKAGE DFBResult mstar_init_driver (CoreGraphicsDevice * device, void * driver_data, void * device_data) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_mstar_init_driver (CoreGraphicsDevice * device, void * driver_data, void * device_data) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default") )
	{
		bRunInMock_mstar_init_driverInfo = true;  //set

		return DFB_OK;
	}

    //return DFB_OK;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetPaletteOpt(GFX_PaletteEntry *, MS_U16, MS_U16) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetPaletteOpt (GFX_PaletteEntry * pPalArray, MS_U16 u32PalStart, MS_U16 u32PalEnd) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetPaletteOpt (GFX_PaletteEntry * pPalArray, MS_U16 u32PalStart, MS_U16 u32PalEnd) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_device_default") )
	{
		bRunInMock_MApi_GFX_SetPaletteOptInfo = true;  //set

		return GFX_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION") )
	{
		bRunInMock_MApi_GFX_SetPaletteOptInfo = true;  //set

		return GFX_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_CLIP") )
	{
		bRunInMock_MApi_GFX_SetPaletteOptInfo = true;  //set

		return GFX_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_ALPHA_CMP") )
	{
		bRunInMock_MApi_GFX_SetPaletteOptInfo = true;  //set

		return GFX_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION_SOURCE") )
	{
		bRunInMock_MApi_GFX_SetPaletteOptInfo = true;  //set

		return GFX_FAIL;
	}

	//return GFX_FAIL;
}

/** User stub definition for function: DFBResult mstar_init_device(CoreGraphicsDevice *, void *, void *) */
EXTERN_C_LINKAGE DFBResult mstar_init_device (CoreGraphicsDevice * device, void * driver_data, void * device_data) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_mstar_init_device (CoreGraphicsDevice * device, void * driver_data, void * device_data) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_device_default") )
	{
		bRunInMock_mstar_init_deviceInfo = true;  //set

		return DFB_OK;
	}

    //return DFB_OK;
}

/** User stub definition for function: DirectResult fusion_skirmish_init(FusionSkirmish *, const char *, const FusionWorld *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_init (FusionSkirmish * skirmish, const char * name, const FusionWorld * world) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_fusion_skirmish_init (FusionSkirmish * skirmish, const char * name, const FusionWorld * world) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_device_default") )
	{
		bRunInMock_fusion_skirmish_initInfo = true;  //set

		return DR_OK;
	}

    //return DR_OK;
}

/** User stub definition for function: FusionWorld * dfb_core_world(CoreDFB *) */
EXTERN_C_LINKAGE FusionWorld * dfb_core_world (CoreDFB * core) ;
EXTERN_C_LINKAGE FusionWorld * CppTest_Stub_dfb_core_world (CoreDFB * core) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_driver_init_device_default") )
	{
		bRunInMock_dfb_core_worldInfo = true;  //set

		return (FusionWorld *)0;
	}

    //return (FusionWorld *)0;
}

/** User stub definition for function: MS_U8 MApi_GOP_GWIN_DestroyFB(MS_U8) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_DestroyFB (MS_U8 fbId) ;
EXTERN_C_LINKAGE MS_U8 CppTest_Stub_MApi_GOP_GWIN_DestroyFB (MS_U8 fbId) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarFreeRelatedSurfInfo_default") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyFBInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAllSurfInfo_default") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyFBInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyFBInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyFBInfo = true;  //set

		return (unsigned char)0;
	}
//	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
//	{
//		bRunInMock_MApi_GOP_GWIN_DestroyFBInfo = true;  //set
//
//		return (unsigned char)0;
//	}
//	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
//	{
//		bRunInMock_MApi_GOP_GWIN_DestroyFBInfo = true;  //set
//
//		return (unsigned char)0;
//	}
		else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_FRAMEPACKING_NORMAL") )
		{
			bRunInMock_MApi_GOP_GWIN_DestroyFBInfo = true;  //set

			return (unsigned char)0;
		}
//		else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default") )
//		{
//			bRunInMock_MApi_GOP_GWIN_DestroyFBInfo = true;  //set
//
//			return (unsigned char)0;
//		}
	
	
    //return (unsigned char)0;
}

/** User stub definition for function: void _mstarSetSurfInfoSlotFree(MSTARDriverData *, int) */
EXTERN_C_LINKAGE void _mstarSetSurfInfoSlotFree (MSTARDriverData * sdrv, int slotID) ;
EXTERN_C_LINKAGE void CppTest_Stub__mstarSetSurfInfoSlotFree (MSTARDriverData * sdrv, int slotID) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarFreeRelatedSurfInfo_default") )
	{
		bRunInMock_mstarSetSurfInfoSlotFreeInfo = true;  //set

		if ( slotID == 10 )
		{
			D_ASSERT(sdrv && slotID>=0 && slotID<MSTARGFX_MAX_LAYER_BUFFER);
			sdrv->mstarLayerBuffer[slotID].u16SlotUsed  = 0;
			sdrv->mstarLayerBuffer[slotID].u8GWinID = 0xee;

		}
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAllSurfInfo_default") )
	{
		bRunInMock_mstarSetSurfInfoSlotFreeInfo = true;  //set

		if ( slotID == 10 )
		{
			D_ASSERT(sdrv && slotID>=0 && slotID<MSTARGFX_MAX_LAYER_BUFFER);
			sdrv->mstarLayerBuffer[slotID].u16SlotUsed  = 0;
			sdrv->mstarLayerBuffer[slotID].u8GWinID = 0xee;
		}
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetNoFreeOne") )
	{
		bRunInMock_mstarSetSurfInfoSlotFreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_mstarSetSurfInfoSlotFreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_mstarSetSurfInfoSlotFreeInfo = true;  //set
	}
//	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
//	{
//		bRunInMock_mstarSetSurfInfoSlotFreeInfo = true;  //set
//	}
//	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
//	{
//		bRunInMock_mstarSetSurfInfoSlotFreeInfo = true;  //set
//	}
//	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default") )
//	{
//		bRunInMock_mstarSetSurfInfoSlotFreeInfo = true;  //set
//
//		printf("FIXJASON 0 sdrv=%x \n", sdrv);
//
//		sdrv = NULL;  //set
//
//		printf("FIXJASON 1 sdrv=%x \n", sdrv);
//	}

}

/** User stub definition for function: int _mstarGetFreeSurfInfoSlot(MSTARDriverData *) */
EXTERN_C_LINKAGE int _mstarGetFreeSurfInfoSlot (MSTARDriverData * sdrv) ;
EXTERN_C_LINKAGE int CppTest_Stub__mstarGetFreeSurfInfoSlot (MSTARDriverData * sdrv) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetNoFreeOne") )
	{
		bRunInMock_mstarGetFreeSurfInfoSlotInfo = true;  //set

		return 6;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_SetANewOne") )
	{
		bRunInMock_mstarGetFreeSurfInfoSlotInfo = true;  //set

		return 7;
	}

	//return 0;
}

/** User stub definition for function: MS_U8 MApi_GOP_GWIN_CreateFBFrom3rdSurf(MS_U16, MS_U16, MS_U16, MS_U32, MS_U16, MS_U8 *) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_CreateFBFrom3rdSurf (MS_U16 width, MS_U16 height, MS_U16 fbFmt, MS_U32 u32FbAddr, MS_U16 pitch, MS_U8 * ret_FBId) ;
EXTERN_C_LINKAGE MS_U8 CppTest_Stub_MApi_GOP_GWIN_CreateFBFrom3rdSurf (MS_U16 width, MS_U16 height, MS_U16 fbFmt, MS_U32 u32FbAddr, MS_U16 pitch, MS_U8 * ret_FBId) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_GetNoFreeOne") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateFBFrom3rdSurfInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_SetANewOne") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateFBFrom3rdSurfInfo = true;  //set

		return (unsigned char)GWIN_OK;
	}

	//return (unsigned char)0;
}

/** User stub definition for function: void _mstarSetSurfInfoSlot(MSTARDriverData *, int, u16, CoreSurface *, CoreSurfaceBuffer *, unsigned long, unsigned long) */
EXTERN_C_LINKAGE void _mstarSetSurfInfoSlot (MSTARDriverData * sdrv, int slotID, u16 u16FBID, CoreSurface * surf, CoreSurfaceBuffer * buffer, unsigned long physAddr, unsigned long pitch) ;
EXTERN_C_LINKAGE void CppTest_Stub__mstarSetSurfInfoSlot (MSTARDriverData * sdrv, int slotID, u16 u16FBID, CoreSurface * surf, CoreSurfaceBuffer * buffer, unsigned long physAddr, unsigned long pitch) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarGetSurfInfoSlot_SetANewOne") )
	{
		bRunInMock_mstarSetSurfInfoSlotInfo = true;  //set
	}
}

/** User stub definition for function: FusionReactor * fusion_reactor_new(int, const char *, const FusionWorld *) */
EXTERN_C_LINKAGE FusionReactor * fusion_reactor_new (int msg_size, const char * name, const FusionWorld * world) ;
EXTERN_C_LINKAGE FusionReactor * CppTest_Stub_fusion_reactor_new (int msg_size, const char * name, const FusionWorld * world) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP") )
	{
		bRunInMock_fusion_reactor_newInfo = true;  //set

		return (FusionReactor *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_MIXER2VE") )
	{
		bRunInMock_fusion_reactor_newInfo = true;  //set

		return (FusionReactor *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_IP0") )
	{
		bRunInMock_fusion_reactor_newInfo = true;  //set

		return (FusionReactor *)0;
	}

	//return (FusionReactor *)0;
}

/** User stub definition for function: DirectResult fusion_call_init(FusionCall *, FusionCallHandler, void *, const FusionWorld *) */
EXTERN_C_LINKAGE DirectResult fusion_call_init (FusionCall * call, FusionCallHandler handler, void * ctx, const FusionWorld * world) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_fusion_call_init (FusionCall * call, FusionCallHandler handler, void * ctx, const FusionWorld * world) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP") )
	{
		bRunInMock_fusion_call_initInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_MIXER2VE") )
	{
		bRunInMock_fusion_call_initInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_IP0") )
	{
		bRunInMock_fusion_call_initInfo = true;  //set

		return DR_OK;
	}

    //return DR_OK;
}

/** User stub definition for function: MS_U8 MApi_GOP_GWIN_GetCurrentGOP(void) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_GetCurrentGOP () ;
EXTERN_C_LINKAGE MS_U8 CppTest_Stub_MApi_GOP_GWIN_GetCurrentGOP (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_MIXER2VE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_IP0") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)2;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_MIXER2VE_Layer") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)2;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_OP0_Layer") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)2;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_E_GOP_DST_VE") )
	{
			bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

			return (unsigned char)2;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_GetCurrentGOPInfo = true;  //set

		return (unsigned char)1;
	}
	
	//return (unsigned char)0;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_OutputColor(EN_GOP_OUTPUT_COLOR) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_OutputColor (EN_GOP_OUTPUT_COLOR type) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_OutputColor (EN_GOP_OUTPUT_COLOR type) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarTestRegion_E_GOP_DST_IP0_Layer") )
	{
		bRunInMock_MApi_GOP_GWIN_OutputColorInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarInitLayer_DST_OP0_MIXER2OP") )
	{
		bRunInMock_MApi_GOP_GWIN_OutputColorInfo = true;  //set

		return GOP_API_FAIL;
	}

	//return GOP_API_FAIL;
}

/** User stub definition for function: FusionSHMPoolShared * dfb_core_shmpool_data(CoreDFB *) */
EXTERN_C_LINKAGE FusionSHMPoolShared * dfb_core_shmpool_data (CoreDFB * core) ;
EXTERN_C_LINKAGE FusionSHMPoolShared * CppTest_Stub_dfb_core_shmpool_data (CoreDFB * core) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_NoSharedMemory") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_fusion_call_execute") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_OK") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_NoSharedMemory") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_DFB_FUSION") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_OK") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_NoSharedMem") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)100;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_1") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)100;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_2") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)100;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_default") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)100;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_NoSharedMemory") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)100;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_DFB_FUSION") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)100;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_default") )
	{
		bRunInMock_dfb_core_shmpool_dataInfo = true;  //set

		return (FusionSHMPoolShared *)100;
	}



	//return (FusionSHMPoolShared *)0;
}

/** User stub definition for function: void * fusion_dbg_shmalloc(FusionSHMPoolShared *, const char *, int, const char *, size_t) */
EXTERN_C_LINKAGE void * fusion_dbg_shmalloc (FusionSHMPoolShared * pool, const char * file, int line, const char * func, size_t __size) ;
EXTERN_C_LINKAGE void * CppTest_Stub_fusion_dbg_shmalloc (FusionSHMPoolShared * pool, const char * file, int line, const char * func, size_t __size) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_NoSharedMemory") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_fusion_call_execute") )
	{
		//char BUF[200];  //declare here

		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_OK") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_NoSharedMemory") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_DFB_FUSION") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_OK") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_NoSharedMem") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_1") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_2") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_default") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_NoSharedMemory") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(NULL);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_DFB_FUSION") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_default") )
	{
		bRunInMock_fusion_dbg_shmallocInfo = true;  //set

		return (void *)(BUF);
	}

    //return (void *)0;
}

/** User stub definition for function: DirectResult fusion_call_execute(FusionCall *, FusionCallExecFlags, int, void *, int *) */
EXTERN_C_LINKAGE DirectResult fusion_call_execute (FusionCall * call, FusionCallExecFlags flags, int call_arg, void * call_ptr, int * ret_val) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_fusion_call_execute (FusionCall * call, FusionCallExecFlags flags, int call_arg, void * call_ptr, int * ret_val) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_fusion_call_execute") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		//return DR_OK;
		return 1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_OK") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		*ret_val = 9;

		//return DR_OK;
		return 0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_DFB_FUSION") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		//return DR_OK;
		return 1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_OK") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		*ret_val = 9;

		//return DR_OK;
		return 0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_1") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		//return DR_OK;
		return 1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_2") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		//return DR_OK;
		return 1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_default") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		*ret_val = 100;

		//return DR_OK;
		return 0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_DFB_FUSION") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		//*ret_val = 100;

		//return DR_OK;
		return 1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_default") )
	{
		bRunInMock_fusion_call_executeInfo = true;  //set

		*ret_val = 100;

		//return DR_OK;
		return 0;
	}

	//return DR_OK;
}

/** User stub definition for function: void fusion_dbg_shfree(FusionSHMPoolShared *, const char *, int, const char *, const char *, void *) */
EXTERN_C_LINKAGE void fusion_dbg_shfree (FusionSHMPoolShared * pool, const char * file, int line, const char * func, const char * what, void * __ptr) ;
EXTERN_C_LINKAGE void CppTest_Stub_fusion_dbg_shfree (FusionSHMPoolShared * pool, const char * file, int line, const char * func, const char * what, void * __ptr) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_fusion_call_execute") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarTestRegion_OK") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_DFB_FUSION") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarAddRegion_OK") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_1") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_2") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_default") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_DFB_FUSION") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarRemoveRegion_default") )
	{
		bRunInMock_fusion_dbg_shfreeInfo = true;  //set
	}
}

/** User stub definition for function: GFX_Result MApi_GFX_SetDstBufferInfo(GFX_BufferInfo *, MS_U32) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDstBufferInfo (GFX_BufferInfo * bufInfo, MS_U32 offsetofByte) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetDstBufferInfo (GFX_BufferInfo * bufInfo, MS_U32 offsetofByte) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION") )
	{
		bRunInMock_MApi_GFX_SetDstBufferInfoInfo = true;  //set

		return GFX_FAIL;
	}

	//return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetClip(GFX_Point *, GFX_Point *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetClip (GFX_Point * v0, GFX_Point * v1) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetClip (GFX_Point * v0, GFX_Point * v1) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION") )
	{
		bRunInMock_MApi_GFX_SetClipInfo = true;  //set

		return GFX_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_CLIP") )
	{
		bRunInMock_MApi_GFX_SetClipInfo = true;  //set

		return GFX_FAIL;
	}

	//return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetIntensity(MS_U32, GFX_Buffer_Format, MS_U32 *) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetIntensity (MS_U32 id, GFX_Buffer_Format fmt, MS_U32 * pColor) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetIntensity (MS_U32 id, GFX_Buffer_Format fmt, MS_U32 * pColor) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION") )
	{
		bRunInMock_MApi_GFX_SetIntensityInfo = true;  //set

		return GFX_FAIL;
	}
	//else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_CLIP") )
	//{
	//	bRunInMock_MApi_GFX_SetIntensityInfo = true;  //set
	//
	//	return GFX_FAIL;
	//}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_ALPHA_CMP") )
	{
		bRunInMock_MApi_GFX_SetIntensityInfo = true;  //set

		return GFX_FAIL;
	}
	//else if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION_SOURCE") )
	//{
	//	bRunInMock_MApi_GFX_SetIntensityInfo = true;  //set
	//
	//	return GFX_FAIL;
	//}

    //return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetAlphaCmp(MS_BOOL, GFX_ACmpOp) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetAlphaCmp (MS_BOOL enable, GFX_ACmpOp eMode) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetAlphaCmp (MS_BOOL enable, GFX_ACmpOp eMode) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_ALPHA_CMP") )
	{
		bRunInMock_MApi_GFX_SetAlphaCmpInfo = true;  //set

		return GFX_FAIL;
	}

	//return GFX_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetDC_CSC_FMT(GFX_YUV_Rgb2Yuv, GFX_YUV_OutRange, GFX_YUV_InRange, GFX_YUV_422, GFX_YUV_422) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDC_CSC_FMT (GFX_YUV_Rgb2Yuv mode, GFX_YUV_OutRange yuv_out_range, GFX_YUV_InRange uv_in_range, GFX_YUV_422 srcfmt, GFX_YUV_422 dstfmt) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetDC_CSC_FMT (GFX_YUV_Rgb2Yuv mode, GFX_YUV_OutRange yuv_out_range, GFX_YUV_InRange uv_in_range, GFX_YUV_422 srcfmt, GFX_YUV_422 dstfmt) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION_SOURCE") )
	{
		bRunInMock_MApi_GFX_SetDC_CSC_FMTInfo = true;  //set

		return GFX_FAIL;
	}

	//return GFX_FAIL;
}

//FIXJASON, for CppTest_Stub_EnaVECapture
typedef struct {
     int                            ref;      /* reference counter */

     IDirectFBSurface               *destination;
     DFBRectangle                   dest_rect;
     CoreSurface                    *source;
     CardState                      state;
     CoreDFB                        *core;

     DIRenderCallback               callback;
     void                           *callback_ctx;

     E_XC_SOURCE_TO_VE              eSourceToVE;
     MS_WINDOW_TYPE                 stCapWin;
     MS_U16                         u16OutputHSize;
     MS_U16                         u16OutputVSize;
     MS_GOP_VECAPTURESTATE          stVECapState;



     DFBSurfacePixelFormat          vec_capture_format;

     /*
     u16                           vec_capture_x;
     u16                           vec_capture_y;
     u16                           vec_capture_w;
     u16                           vec_capture_h;
     u8                            vec_capture_alphavalue;
     u8                            vec_csc_enable;
     */
     unsigned long                 vec_capture_addr;
     unsigned int                  vec_capture_pitch;

} IDirectFBImageProvider_VEC_data;

/** User stub definition for function: _Bool EnaVECapture(IDirectFBImageProvider_VEC_data *) */
EXTERN_C_LINKAGE _Bool EnaVECapture (IDirectFBImageProvider_VEC_data * data) ;
EXTERN_C_LINKAGE _Bool CppTest_Stub_EnaVECapture (IDirectFBImageProvider_VEC_data * data) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_vecOpen_success") )
	{
		bRunInMock_EnaVECaptureInfo = true;  //set

		return true;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_vec_c_a4bcfc3d_test_vecOpen_fail") )
	{
		bRunInMock_EnaVECaptureInfo = true;  //set

		return false;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_vec_c_test_vecOpen_OK") )
	{
		return true;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_vec_c_test_vecOpen_NG") )
	{
		return false;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_vec_c_test_vecClose_OK") )
	{
		return true;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_vec_c_test_vecClose_NG") )
	{
		return false;
	}

	
	//return false;
}

/** User stub definition for function: DirectResult fusion_skirmish_prevail(FusionSkirmish *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_prevail (FusionSkirmish * skirmish) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_fusion_skirmish_prevail (FusionSkirmish * skirmish) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_2") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4") )
	{
		bRunInMock_fusion_skirmish_prevailInfo = true;  //set

		return DR_OK;
	}
	
	//return DR_OK;
}

/** User stub definition for function: CoreLayerRegionConfigFlags mstarBuildUpdate(MSTARRegionData *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags) */
EXTERN_C_LINKAGE CoreLayerRegionConfigFlags mstarBuildUpdate (MSTARRegionData * sreg, CoreLayerRegionConfig * config, CoreLayerRegionConfigFlags updated) ;
EXTERN_C_LINKAGE CoreLayerRegionConfigFlags CppTest_Stub_mstarBuildUpdate (MSTARRegionData * sreg, CoreLayerRegionConfig * config, CoreLayerRegionConfigFlags updated) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
  else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_mstarBuildUpdateInfo = true;  //set

		return CLRCF_NONE;
	}
	
	//return CLRCF_NONE;
}

/** User stub definition for function: u32 mstarGFXAddr(u32, u32, u32) */
EXTERN_C_LINKAGE u32 mstarGFXAddr (u32 cpuPhysicalAddr, u32 mst_miu1_cpu_offset, u32 mst_miu1_hal_offset) ;
EXTERN_C_LINKAGE u32 CppTest_Stub_mstarGFXAddr (u32 cpuPhysicalAddr, u32 mst_miu1_cpu_offset, u32 mst_miu1_hal_offset) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRecordLayerCurPhyAddr_default") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_DFB_FAILURE") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4") )
	{
		bRunInMock_mstarGFXAddrInfo = true;  //set

		return 0U;
	}
	
    //return 0U;
}

/** User stub definition for function: MS_BOOL mstar_sc_is_interlace(void) */
EXTERN_C_LINKAGE MS_BOOL mstar_sc_is_interlace (void) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_mstar_sc_is_interlace (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_mstar_sc_is_interlaceInfo = true;  //set

		return (unsigned char)1;
	}
	
    //return (unsigned char)0;
}

/** User stub definition for function: unsigned long dfb_gfxcard_memory_physical(CoreGraphicsDevice *, unsigned int) */
EXTERN_C_LINKAGE unsigned long dfb_gfxcard_memory_physical (CoreGraphicsDevice * device, unsigned offset) ;
EXTERN_C_LINKAGE unsigned long CppTest_Stub_dfb_gfxcard_memory_physical (CoreGraphicsDevice * device, unsigned offset) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_dfb_gfxcard_memory_physicalInfo = true;  //set

		return 0UL;
	}
	
    //return 0UL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_DestroyWin(MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_DestroyWin (MS_U8 gId) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_DestroyWin (MS_U8 gId) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default") )
	{
		bRunInMock_MApi_GOP_GWIN_DestroyWinInfo = true;  //set

		return GOP_API_FAIL;
	}
	
    //return GOP_API_FAIL;
}

u8 FBId = 250;  //init
/** User stub definition for function: u8 _mstarFindFBIdbyGWinID(MSTARDriverData *, u8, u16 *, CoreSurface **) */
EXTERN_C_LINKAGE u8 _mstarFindFBIdbyGWinID (MSTARDriverData * sdrv, u8 u8GWindID, u16 * u16SlotID, CoreSurface ** pSurface) ;
EXTERN_C_LINKAGE u8 CppTest_Stub__mstarFindFBIdbyGWinID (MSTARDriverData * sdrv, u8 u8GWindID, u16 * u16SlotID, CoreSurface ** pSurface) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)FBId++;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)FBId++;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_FRAMEPACKING_NORMAL"))
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_ConfigDisplayMode_NORMAL_LEFTRIGHT"))
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	else if(CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default"))
	{
		bRunInMock__mstarFindFBIdbyGWinIDInfo = true;  //set

		return (unsigned char)0xff;
	}
	
    //return (unsigned char)0;
}

/** User stub definition for function: int _mstarGetSurfInfoSlot(MSTARDriverData *, MSTARLayerData *, CoreSurface *, CoreSurfaceBuffer *, unsigned long, unsigned long, u16 *, _Bool *) */
EXTERN_C_LINKAGE int _mstarGetSurfInfoSlot (MSTARDriverData * sdrv, MSTARLayerData * slay, CoreSurface * surf, CoreSurfaceBuffer * buffer, unsigned long phys, unsigned long pitch, u16 * pFBId, _Bool * bNew) ;
EXTERN_C_LINKAGE int CppTest_Stub__mstarGetSurfInfoSlot (MSTARDriverData * sdrv, MSTARLayerData * slay, CoreSurface * surf, CoreSurfaceBuffer * buffer, unsigned long phys, unsigned long pitch, u16 * pFBId, _Bool * bNew) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UNKNOWN_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB24_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB32_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A8_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YUY2_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YVYU_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB332_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_UYVY_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_I420_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_YV12_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ALUT44_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AiRGB_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A1_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV12_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV16_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB2554_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_NV21_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_AYUV_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_A4_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1666_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB6666_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB18_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT2_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT1_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT4_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB444_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB555_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_BGR555_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA4444_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGBA5551_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}
	else if ( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock__mstarGetSurfInfoSlotInfo = true;  //set

		return 0;
	}

	//return 0;
}






/** User stub definition for function: MS_U8 MApi_GOP_GWIN_CreateWin_Assign_FB(MS_U8, MS_U8, MS_U16, MS_U16) */
EXTERN_C_LINKAGE MS_U8 MApi_GOP_GWIN_CreateWin_Assign_FB (MS_U8 u8GOP, MS_U8 FBId, MS_U16 dispX, MS_U16 dispY) ;
EXTERN_C_LINKAGE MS_U8 CppTest_Stub_MApi_GOP_GWIN_CreateWin_Assign_FB (MS_U8 u8GOP, MS_U8 FBId, MS_U16 dispX, MS_U16 dispY) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)0;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_CreateWin_Assign_FBInfo = true;  //set

		return (unsigned char)INVALID_WIN_ID;  ///////  INVALID_WIN_ID(255), GWIN_FAIL(254)
	}
	
	//return (unsigned char)0;
}

/** User stub definition for function: void _mstarSetSlotGWinID(MSTARDriverData *, int, u8) */
EXTERN_C_LINKAGE void _mstarSetSlotGWinID (MSTARDriverData * sdrv, int slotID, u8 u8GWinID) ;
EXTERN_C_LINKAGE void CppTest_Stub__mstarSetSlotGWinID (MSTARDriverData * sdrv, int slotID, u8 u8GWinID) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock__mstarSetSlotGWinIDInfo = true;  //set

		return (unsigned char)0;
	}
	
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetFieldInver(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetFieldInver (MS_BOOL enable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetFieldInver (MS_BOOL enable) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_SetFieldInverInfo = true;  //set

		return GOP_API_FAIL;
	}
	
	//return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_STRETCHWIN(MS_U8, EN_GOP_DST_TYPE, MS_U16, MS_U16, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_STRETCHWIN (MS_U8 u8GOP_num, EN_GOP_DST_TYPE eDstType, MS_U16 x, MS_U16 y, MS_U16 width, MS_U16 height) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_Set_STRETCHWIN (MS_U8 u8GOP_num, EN_GOP_DST_TYPE eDstType, MS_U16 x, MS_U16 y, MS_U16 width, MS_U16 height) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_STRETCHWINInfo = true;  //set

		return GOP_API_FAIL;
	}
	
	//return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_HSCALE(MS_BOOL, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_HSCALE (MS_BOOL bEnable, MS_U16 src, MS_U16 dst) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_Set_HSCALE (MS_BOOL bEnable, MS_U16 src, MS_U16 dst) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_HSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	
    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_VSCALE(MS_BOOL, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_VSCALE (MS_BOOL bEnable, MS_U16 src, MS_U16 dst) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_Set_VSCALE (MS_BOOL bEnable, MS_U16 src, MS_U16 dst) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VSCALEInfo = true;  //set

		return GOP_API_FAIL;
	}
	
  //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetWinPosition(MS_U8, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetWinPosition (MS_U8 winId, MS_U16 dispX, MS_U16 dispY) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetWinPosition (MS_U8 winId, MS_U16 dispX, MS_U16 dispY) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SetWinPositionInfo = true;  //set

		return GOP_API_FAIL;
	}
	
    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_SetPINPON(MS_U8, MS_BOOL, GOP_PINPON_MODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetPINPON (MS_U8 winId, MS_BOOL bEn, GOP_PINPON_MODE PINPON_Mode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_SetPINPON (MS_U8 winId, MS_BOOL bEn, GOP_PINPON_MODE PINPON_Mode) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set
		//printf("FIXJASON LALALA winId(%d)\n",winId);
		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default") )
	{
		bRunInMock_MApi_GOP_SetPINPONInfo = true;  //set
		//printf("FIXJASON LALALA winId(%d)\n",winId);
		return GOP_API_FAIL;
	}
	
    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetTransClr_8888(MS_U32, MS_U32) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetTransClr_8888 (MS_U32 clr, MS_U32 mask) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetTransClr_8888 (MS_U32 clr, MS_U32 mask) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_SetTransClr_8888Info = true;  //set

		return GOP_API_FAIL;
	}
    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GetChipCaps(EN_GOP_CAPS, MS_U32 *, MS_U32) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GetChipCaps (EN_GOP_CAPS eCapType, MS_U32 * pRet, MS_U32 ret_size) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GetChipCaps (EN_GOP_CAPS eCapType, MS_U32 * pRet, MS_U32 ret_size) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		//*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GetChipCapsInfo = true;  //set

		//*pRet = E_GOP_VALID_6BITS;  //////////////////////////////////
		*pRet = E_GOP_VALID_8BITS;  /////////////////////////////////

		return GOP_API_SUCCESS;
	}
	
    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_SetConfig(EN_GOP_CONFIG_TYPE, MS_U32 *) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetConfig (EN_GOP_CONFIG_TYPE type, MS_U32 * plist) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_SetConfig (EN_GOP_CONFIG_TYPE type, MS_U32 * plist) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_SetConfigInfo = true;  //set

		return GOP_API_FAIL;
	}
	
    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetBlending(MS_U8, MS_BOOL, MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetBlending (MS_U8 u8win, MS_BOOL bEnable, MS_U8 u8coef) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetBlending (MS_U8 u8win, MS_BOOL bEnable, MS_U8 u8coef) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_SetBlendingInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_MApi_GOP_GWIN_SetBlendingInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_SetBlendingInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_SetBlendingInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_SetBlendingInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_SetBlendingInfo = true;  //set

		return GOP_API_FAIL;
	}
	
    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Enable(MS_U8, MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Enable (MS_U8 winId, MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_Enable (MS_U8 winId, MS_BOOL bEnable) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableInfo = true;  //set

		return GOP_API_FAIL;
	}
	
    //return GOP_API_FAIL;
}

/** User stub definition for function: DFBResult mstarReorderGWIN(MSTARDriverData *) */
EXTERN_C_LINKAGE DFBResult mstarReorderGWIN (MSTARDriverData * sdrv) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_mstarReorderGWIN (MSTARDriverData * sdrv) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_mstarReorderGWINInfo = true;  //set

		return DFB_OK;
	}
	
    //return DFB_OK;
}

/** User stub definition for function: DirectResult fusion_skirmish_dismiss(FusionSkirmish *) */
EXTERN_C_LINKAGE DirectResult fusion_skirmish_dismiss (FusionSkirmish * skirmish) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_fusion_skirmish_dismiss (FusionSkirmish * skirmish) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB1555") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_RGB16") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_dirtyFlag_is_CLRCF_OPTIONS") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_OPACITY") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_options_is_DLOP_ALPHACHANNEL") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_HSTRETCH") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_WIDTH") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarRemoveRegion_default") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_2") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4") )
	{
		bRunInMock_fusion_skirmish_dismissInfo = true;  //set

		return DR_OK;
	}
	
    //return DR_OK;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_VStretchMode(EN_GOP_STRETCH_VMODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_VStretchMode (EN_GOP_STRETCH_VMODE VStrchMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_Set_VStretchMode (EN_GOP_STRETCH_VMODE VStrchMode) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_VSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_VStretchModeInfo = true;  //set

		return GOP_API_FAIL;
	}
    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_Set_TranspColorStretchMode(EN_GOP_STRCH_TRANSPCOLORMODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_Set_TranspColorStretchMode (EN_GOP_STRCH_TRANSPCOLORMODE TColorStrchMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_Set_TranspColorStretchMode (EN_GOP_STRCH_TRANSPCOLORMODE TColorStrchMode) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TSTRETCH") )
	{
		bRunInMock_MApi_GOP_GWIN_Set_TranspColorStretchModeInfo = true;  //set

		return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_EnableTileMode(MS_U8, MS_BOOL, EN_GOP_TILE_DATA_TYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_EnableTileMode (MS_U8 winId, MS_BOOL bEnable, EN_GOP_TILE_DATA_TYPE tiletype) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_EnableTileMode (MS_U8 winId, MS_BOOL bEnable, EN_GOP_TILE_DATA_TYPE tiletype) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB4444_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo = true;  //set

		return GOP_API_FAIL;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_ARGB_config_dirtyFlag_is_CLRCF_TILEMODE") )
	{
		bRunInMock_MApi_GOP_GWIN_EnableTileModeInfo = true;  //set

		return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetPaletteOpt(GOP_PaletteEntry *, MS_U16, MS_U16, EN_GOP_PALETTE_TYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetPaletteOpt (GOP_PaletteEntry * pPalArray, MS_U16 u32PalStart, MS_U16 u32PalEnd, EN_GOP_PALETTE_TYPE ePalType) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetPaletteOpt (GOP_PaletteEntry * pPalArray, MS_U16 u32PalStart, MS_U16 u32PalEnd, EN_GOP_PALETTE_TYPE ePalType) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstarSetRegion_DSPF_LUT8_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_GWIN_SetPaletteOptInfo = true;  //set

		return GOP_API_FAIL;
	}

    //return GOP_API_FAIL;
}

/** User stub definition for function: void _mstarRecordLayerCurPhyAddr(MSTARDriverData *, MSTARDeviceData *, CoreSurfaceBufferLock *, u8) */
EXTERN_C_LINKAGE void _mstarRecordLayerCurPhyAddr (MSTARDriverData * sdrv, MSTARDeviceData * sdev, CoreSurfaceBufferLock * lock, u8 layer_index) ;
EXTERN_C_LINKAGE void CppTest_Stub__mstarRecordLayerCurPhyAddr (MSTARDriverData * sdrv, MSTARDeviceData * sdev, CoreSurfaceBufferLock * lock, u8 layer_index) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_NoSharedMem") )
	{
		bRunInMock__mstarRecordLayerCurPhyAddrInfo = true;  //set

		return;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_1") )
	{
		bRunInMock__mstarRecordLayerCurPhyAddrInfo = true;  //set

		return;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_DFB_FUSION_2") )
	{
		bRunInMock__mstarRecordLayerCurPhyAddrInfo = true;  //set

		return;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarSetRegion_default") )
	{
		bRunInMock__mstarRecordLayerCurPhyAddrInfo = true;  //set

		return;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_2") )
	{
		bRunInMock__mstarRecordLayerCurPhyAddrInfo = true;  //set

		return;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_DFB_FAILURE") )
	{
		bRunInMock__mstarRecordLayerCurPhyAddrInfo = true;  //set

		return;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3") )
	{
		bRunInMock__mstarRecordLayerCurPhyAddrInfo = true;  //set

		return;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4") )
	{
		bRunInMock__mstarRecordLayerCurPhyAddrInfo = true;  //set

		return;
	}

}

/** User stub definition for function: DFBResult dfb_surface_flip(CoreSurface *, _Bool) */
EXTERN_C_LINKAGE DFBResult dfb_surface_flip (CoreSurface * surface, _Bool swap) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_dfb_surface_flip (CoreSurface * surface, _Bool swap) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_2") )
	{
		bRunInMock_dfb_surface_flipInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3") )
	{
		bRunInMock_dfb_surface_flipInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4") )
	{
		bRunInMock_dfb_surface_flipInfo = true;  //set

		return DFB_OK;
	}

}

/** User stub definition for function: MS_BOOL MApi_GOP_Switch_GWIN_2_FB_BY_ADDR(MS_U8, MS_U32, MS_U16, MS_U16 *) */
EXTERN_C_LINKAGE MS_BOOL MApi_GOP_Switch_GWIN_2_FB_BY_ADDR (MS_U8 gWinId, MS_U32 u32FlipAddr, MS_U16 u16WaitTagID, MS_U16 * pU16QueueCnt) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MApi_GOP_Switch_GWIN_2_FB_BY_ADDR (MS_U8 gWinId, MS_U32 u32FlipAddr, MS_U16 u16WaitTagID, MS_U16 * pU16QueueCnt) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_DFB_FAILURE") )
	{
		bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo = true;  //set

		*pU16QueueCnt = *pU16QueueCnt - 1;

		return (unsigned char)0;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_3") )
	{
		bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo = true;  //set

		return (unsigned char)1;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstarFlipRegion_default_4") )
	{
		bRunInMock_MApi_GOP_Switch_GWIN_2_FB_BY_ADDRInfo = true;  //set

		return (unsigned char)0;
	}

}

/** User stub definition for function: MS_ColorFormat _mstarDFBFmt2MSFmt(DFBSurfacePixelFormat) */
EXTERN_C_LINKAGE MS_ColorFormat _mstarDFBFmt2MSFmt (DFBSurfacePixelFormat format) ;
EXTERN_C_LINKAGE MS_ColorFormat CppTest_Stub__mstarDFBFmt2MSFmt (DFBSurfacePixelFormat format) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_NG_1") )
	{
		bRunInMock__mstarDFBFmt2MSFmtInfo = true;  //set

		//return E_MS_FMT_I1;
		return E_MS_FMT_GENERIC;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_dfb_surface_create_NG_2") )
	{
		bRunInMock__mstarDFBFmt2MSFmtInfo = true;  //set

		//return E_MS_FMT_I1;
		return DSPF_ARGB1555;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_3Buf") )
	{
		bRunInMock__mstarDFBFmt2MSFmtInfo = true;  //set

		//return E_MS_FMT_I1;
		return DSPF_ARGB1555;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_2Buf") )
	{
		bRunInMock__mstarDFBFmt2MSFmtInfo = true;  //set

		//return E_MS_FMT_I1;
		return DSPF_ARGB1555;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_1Buf") )
	{
		bRunInMock__mstarDFBFmt2MSFmtInfo = true;  //set

		//return E_MS_FMT_I1;
		return DSPF_ARGB1555;
	}

}

/** User stub definition for function: DFBResult dfb_surface_create(CoreDFB *, const CoreSurfaceConfig *, CoreSurfaceTypeFlags, unsigned long, CorePalette *, CoreSurface **) */
EXTERN_C_LINKAGE DFBResult dfb_surface_create (CoreDFB * core, const CoreSurfaceConfig * config, CoreSurfaceTypeFlags type, unsigned long resource_id, CorePalette * palette, CoreSurface ** ret_surface) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_dfb_surface_create (CoreDFB * core, const CoreSurfaceConfig * config, CoreSurfaceTypeFlags type, unsigned long resource_id, CorePalette * palette, CoreSurface ** ret_surface) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_dfb_surface_create_NG_2") )
	{
		bRunInMock_dfb_surface_createInfo = true;  //set

		return 5;
		//return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_3Buf") )
	{
		bRunInMock_dfb_surface_createInfo = true;  //set

		return 0;
		//return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_2Buf") )
	{
		bRunInMock_dfb_surface_createInfo = true;  //set

		return 0;
		//return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryAllocateSurface_1Buf") )
	{
		bRunInMock_dfb_surface_createInfo = true;  //set

		return 0;
		//return DFB_OK;
	}


}

/** User stub definition for function: DFBResult dfb_surface_reconfig(CoreSurface *, const CoreSurfaceConfig *) */
EXTERN_C_LINKAGE DFBResult dfb_surface_reconfig (CoreSurface * surface, const CoreSurfaceConfig * config) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_dfb_surface_reconfig (CoreSurface * surface, const CoreSurfaceConfig * config) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_surface_reconfig_NG") )
	{
		bRunInMock_dfb_surface_reconfigInfo = true;  //set

		return DR_FAILURE;
		//return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_palette_create_NG") )
	{
		bRunInMock_dfb_surface_reconfigInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_3Buf") )
	{
		bRunInMock_dfb_surface_reconfigInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_2Buf") )
	{
		bRunInMock_dfb_surface_reconfigInfo = true;  //set

		return DFB_OK;
	}


}

/** User stub definition for function: DFBResult dfb_palette_create(CoreDFB *, unsigned int, CorePalette **) */
EXTERN_C_LINKAGE DFBResult dfb_palette_create (CoreDFB * core, unsigned size, CorePalette ** ret_palette) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_dfb_palette_create (CoreDFB * core, unsigned size, CorePalette ** ret_palette) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_dfb_palette_create_NG") )
	{
		bRunInMock_dfb_palette_createInfo = true;  //set

		return DR_FAILURE;
		//return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_3Buf") )
	{
		bRunInMock_dfb_palette_createInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_2Buf") )
	{
		bRunInMock_dfb_palette_createInfo = true;  //set

		return DFB_OK;
	}

    //return DFB_OK;
}

/** User stub definition for function: void dfb_palette_generate_rgb332_map(CorePalette *) */
EXTERN_C_LINKAGE void dfb_palette_generate_rgb332_map (CorePalette * palette) ;
EXTERN_C_LINKAGE void CppTest_Stub_dfb_palette_generate_rgb332_map (CorePalette * palette) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_3Buf") )
	{
		bRunInMock_dfb_palette_generate_rgb332_mapInfo = true;  //set
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_2Buf") )
	{
		bRunInMock_dfb_palette_generate_rgb332_mapInfo = true;  //set
	}

}

/** User stub definition for function: DFBResult dfb_surface_set_palette(CoreSurface *, CorePalette *) */
EXTERN_C_LINKAGE DFBResult dfb_surface_set_palette (CoreSurface * surface, CorePalette * palette) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub_dfb_surface_set_palette (CoreSurface * surface, CorePalette * palette) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_3Buf") )
	{
		bRunInMock_dfb_surface_set_paletteInfo = true;  //set

		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_2Buf") )
	{
		bRunInMock_dfb_surface_set_paletteInfo = true;  //set

		return DFB_OK;
	}

	//return DFB_OK;
}

/** User stub definition for function: DirectResult dfb_palette_unref(CorePalette *) */
EXTERN_C_LINKAGE DirectResult dfb_palette_unref (CorePalette * object) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_dfb_palette_unref (CorePalette * object) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_3Buf") )
	{
		bRunInMock_dfb_palette_unrefInfo = true;  //set

		return DR_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test_mstar_primaryReallocateSurface_default_2Buf") )
	{
		bRunInMock_dfb_palette_unrefInfo = true;  //set

		return DR_OK;
	}

    //return DR_OK;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SetWinProperty(GOP_DwinProperty *) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SetWinProperty (GOP_DwinProperty * pproperty) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_SetWinProperty (GOP_DwinProperty * pproperty) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcUpdateDWinProperty_default") )
	{
			bRunInMock_MApi_GOP_DWIN_SetWinProperty = true;  //set

			return GOP_API_SUCCESS;
	}
    //return GOP_API_FAIL;
}

/** User stub definition for function: int GetDataBlock(IDirectFBDataBuffer *, u8 *) */
EXTERN_C_LINKAGE int GetDataBlock (IDirectFBDataBuffer * buffer, u8 * buf) ;
EXTERN_C_LINKAGE int CppTest_Stub_GetDataBlock (IDirectFBDataBuffer * buffer, u8 * buf) 
{
    return 0;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_VE_SetOutputTiming(GOP_VE_TIMINGTYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_VE_SetOutputTiming (GOP_VE_TIMINGTYPE mode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_VE_SetOutputTiming (GOP_VE_TIMINGTYPE mode) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_c_d5a8378e_test_mstar_init_device_E_GOP_DST_VE") )
	{
			bRunInMock_MApi_GOP_VE_SetOutputTiming = true;  //set

			return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_EnableLBCouple(MS_U8, MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_EnableLBCouple (MS_U8 u8GOP, MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_EnableLBCouple (MS_U8 u8GOP, MS_BOOL bEnable) 
{

	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetLBCoupleEnable_Enable") )
	{
		    bRunInMock_MApi_GOP_EnableLBCouple = true;
			return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetLBCoupleEnable_Disable") )
	{
		    bRunInMock_MApi_GOP_EnableLBCouple = true;
			return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetStretchWinPosition(MS_U8, MS_U16, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetStretchWinPosition (MS_U8 u8GOPNum, MS_U16 u16DispX, MS_U16 u16DispY) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetStretchWinPosition (MS_U8 u8GOPNum, MS_U16 u16DispX, MS_U16 u16DispY) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: _Bool vecConvertToVEInputSrc(IDirectFBImageProvider_VEC_data *, const char *) */
EXTERN_C_LINKAGE _Bool vecConvertToVEInputSrc (IDirectFBImageProvider_VEC_data * data, const char * value) ;
EXTERN_C_LINKAGE _Bool CppTest_Stub_vecConvertToVEInputSrc (IDirectFBImageProvider_VEC_data * data, const char * value) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_vec_c_test_vecConfig_vec_capture_inputsrc") )
	{
		return true;
	}
}


/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_Init(void) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_Init () ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_Init (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_gopc_c_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_SetClkForCapture(void) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetClkForCapture () ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_SetClkForCapture (void) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_gopc_c_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SelectSourceScanType(EN_GOP_DWIN_SCAN_MODE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SelectSourceScanType (EN_GOP_DWIN_SCAN_MODE enScanMode) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_SelectSourceScanType (EN_GOP_DWIN_SCAN_MODE enScanMode) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_gopc_c_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SetDataFmt(EN_GOP_DWIN_DATA_FMT) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SetDataFmt (EN_GOP_DWIN_DATA_FMT fmt) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_SetDataFmt (EN_GOP_DWIN_DATA_FMT fmt) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_gopc_c_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_OP2VOPDESel(E_OP2VOP_DE_SEL) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_OP2VOPDESel (E_OP2VOP_DE_SEL eVopDESel) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_OP2VOPDESel (E_OP2VOP_DE_SEL eVopDESel) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcInit_Frame_WithOSD") )
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( E_OP2VOPDE_WHOLEFRAME_WITHOSD, eVopDESel );
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_gopc_c_test_gopcInit_Frame_WithOSD") )
	{
		CPPTEST_ASSERT_UINTEGER_EQUAL( E_OP2VOPDE_WHOLEFRAME_WITHOSD, eVopDESel );
	}
    return E_APIXC_RET_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SetSourceSel(EN_GOP_DWIN_SRC_SEL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SetSourceSel (EN_GOP_DWIN_SRC_SEL enSrcSel) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_SetSourceSel (EN_GOP_DWIN_SRC_SEL enSrcSel) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_gopc_c_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_SetAlphaValue(MS_U8) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_SetAlphaValue (MS_U8 u8AlphaVal) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_SetAlphaValue (MS_U8 u8AlphaVal) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_gopc_c_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_EnableR2YCSC(MS_BOOL) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_EnableR2YCSC (MS_BOOL bEnable) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_EnableR2YCSC (MS_BOOL bEnable) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbimageprovider_gopc_c_2ef2c73b_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_gopc_c_test_gopcInit_Frame_WithOSD") )
	{
		return GOP_API_SUCCESS;
	}
    return GOP_API_FAIL;
}

/** User stub definition for function: VE_Result MDrv_VE_Set_Customer_Scaling(MS_VE_CusScalingInfo *) */
EXTERN_C_LINKAGE VE_Result MDrv_VE_Set_Customer_Scaling (MS_VE_CusScalingInfo * pstVECusScalingInfo) ;
EXTERN_C_LINKAGE VE_Result CppTest_Stub_MDrv_VE_Set_Customer_Scaling (MS_VE_CusScalingInfo * pstVECusScalingInfo) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_vec_c_test_vecClose_OK") )
    {
		return E_VE_NOT_SUPPORT;
    }
	else if( CppTest_IsCurrentTestCase("TestSuite_idirectfbvideoprovider_vec_c_test_vecClose_NG") )
    {
		return E_VE_NOT_SUPPORT;
    }

	//return E_VE_NOT_SUPPORT;
}

/** User stub definition for function: DFBResult _mstar_SetGOPDstByPassEnable(CoreLayer *, void *, void *, _Bool) */
EXTERN_C_LINKAGE DFBResult _mstar_SetGOPDstByPassEnable (CoreLayer * layer, void * driver_data, void * layer_data, _Bool ByPassEnable) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub__mstar_SetGOPDstByPassEnable (CoreLayer * layer, void * driver_data, void * layer_data, _Bool ByPassEnable) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDstByPassEnable_Enable") )
	{
		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDstByPassEnable_Disable") )
	{
		return DFB_OK;
	}

    return DFB_FAILURE;
}

/** User stub definition for function: DFBResult _mstar_SetHVScale(CoreLayer *, void *, void *, void *, int, int) */
EXTERN_C_LINKAGE DFBResult _mstar_SetHVScale (CoreLayer * layer, void * driver_data, void * layer_data, void * region_data, int HScale, int VScale) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub__mstar_SetHVScale (CoreLayer * layer, void * driver_data, void * layer_data, void * region_data, int HScale, int VScale) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetHVScale") )
	{
		return DFB_OK;
	}
    return DFB_FAILURE;
}

/** User stub definition for function: DFBResult _mstar_SetGOPDst(CoreLayer *, void *, void *, DFBDisplayLayerGOPDST) */
EXTERN_C_LINKAGE DFBResult _mstar_SetGOPDst (CoreLayer * layer, void * driver_data, void * layer_data, DFBDisplayLayerGOPDST GopDst) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub__mstar_SetGOPDst (CoreLayer * layer, void * driver_data, void * layer_data, DFBDisplayLayerGOPDST GopDst) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_OP") )
	{
		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_IP") )
	{
		return DFB_OK;
	}
	else if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetGOPDst_ByPass") )
	{
		return DFB_OK;
	}

    return DFB_FAILURE;
}

/** User stub definition for function: const char * dfb_pixelformat_name(DFBSurfacePixelFormat) */
EXTERN_C_LINKAGE const char * dfb_pixelformat_name (DFBSurfacePixelFormat format) ;
EXTERN_C_LINKAGE const char * CppTest_Stub_dfb_pixelformat_name (DFBSurfacePixelFormat format) 
{
    return (const char *)0;
}

/** User stub definition for function: DFBDisplayLayerID dfb_layer_id(const CoreLayer *) */
EXTERN_C_LINKAGE DFBDisplayLayerID dfb_layer_id (const CoreLayer * layer) ;
EXTERN_C_LINKAGE DFBDisplayLayerID CppTest_Stub_dfb_layer_id (const CoreLayer * layer) 
{
    return 0U;
}

/** User stub definition for function: DirectResult fusion_reactor_dispatch(FusionReactor *, const void *, _Bool, const ReactionFunc *) */
EXTERN_C_LINKAGE DirectResult fusion_reactor_dispatch (FusionReactor * reactor, const void * msg_data, _Bool self, const ReactionFunc * globals) ;
EXTERN_C_LINKAGE DirectResult CppTest_Stub_fusion_reactor_dispatch (FusionReactor * reactor, const void * msg_data, _Bool self, const ReactionFunc * globals) 
{
    return DR_OK;
}


/** User stub definition for function: E_GOP_API_Result MApi_GOP_MIUSel(MS_U8, EN_GOP_SEL_TYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_MIUSel (MS_U8 u8GOP, EN_GOP_SEL_TYPE MiuSel) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_MIUSel (MS_U8 u8GOP, EN_GOP_SEL_TYPE MiuSel) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: DFBResult _mstar_SetBootLogoPatch(CoreLayer *, void *, void *, int) */
EXTERN_C_LINKAGE DFBResult _mstar_SetBootLogoPatch (CoreLayer * layer, void * driver_data, void * layer_data, int miusel) ;
EXTERN_C_LINKAGE DFBResult CppTest_Stub__mstar_SetBootLogoPatch (CoreLayer * layer, void * driver_data, void * layer_data, int miusel) 
{
	if( CppTest_IsCurrentTestCase("TestSuite_mstar_layer_c_eb559248_test__mstar_SetBootLogoPatch_Default") )
	{
		return DFB_OK;
	}
    return DFB_FAILURE;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_DWIN_CaptureOneFrame(void) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_DWIN_CaptureOneFrame () ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_DWIN_CaptureOneFrame (void) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_SetGOPHStart(MS_U8, MS_U16) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetGOPHStart (MS_U8 u8GOP, MS_U16 u16PanelHStr) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_SetGOPHStart (MS_U8 u8GOP, MS_U16 u16PanelHStr) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_UpdateRegOnce(MS_BOOL bWriteRegOnce) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_UpdateRegOnce(MS_BOOL bWriteRegOnce) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_UpdateRegOnce(MS_BOOL bWriteRegOnce) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_UpdateRegOnceEx(MS_BOOL bWriteRegOnce, MS_BOOL bSync) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_UpdateRegOnceEx(MS_BOOL bWriteRegOnce, MS_BOOL bSync) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_UpdateRegOnceEx(MS_BOOL bWriteRegOnce, MS_BOOL bSync) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_GetWinInfo(MS_U8, GOP_GwinInfo *) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_GetWinInfo (MS_U8 u8win, GOP_GwinInfo * pinfo) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_GetWinInfo (MS_U8 u8win, GOP_GwinInfo * pinfo) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: int MApi_GOP_Switch_Multi_GWIN_2_FB_BY_ADDR(void) */
EXTERN_C_LINKAGE MS_BOOL MApi_GOP_Switch_Multi_GWIN_2_FB_BY_ADDR (GOP_MultiFlipInfo GopMultiFlipInfo) ;
EXTERN_C_LINKAGE MS_BOOL CppTest_Stub_MApi_GOP_Switch_Multi_GWIN_2_FB_BY_ADDR (GOP_MultiFlipInfo GopMultiFlipInfo) 
{
    return (unsigned char)0;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_SetWinInfo(MS_U8, GOP_GwinInfo *) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetWinInfo (MS_U8 u8win, GOP_GwinInfo * pinfo) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetWinInfo (MS_U8 u8win, GOP_GwinInfo * pinfo) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: GFX_Result MApi_GFX_SetDstMirror(MS_BOOL, MS_BOOL) */
EXTERN_C_LINKAGE GFX_Result MApi_GFX_SetDstMirror (MS_BOOL isMirrorX, MS_BOOL isMirrorY) ;
EXTERN_C_LINKAGE GFX_Result CppTest_Stub_MApi_GFX_SetDstMirror (MS_BOOL isMirrorX, MS_BOOL isMirrorY)
{
    return GFX_FAIL;
}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_MIXER_SetOutputTiming(GOP_VE_TIMINGTYPE) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_MIXER_SetOutputTiming (GOP_MIXER_TIMINGTYPE mode, GOP_MixerTiming *pMT) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_MIXER_SetOutputTiming (GOP_MIXER_TIMINGTYPE mode, GOP_MixerTiming *pMT) 
{
    return GOP_API_FAIL;
}

/** User stub definition for function: MS_VE_VIDEOSYS MDrv_VE_Get_Output_Video_Std(void) */
EXTERN_C_LINKAGE MS_VE_VIDEOSYS MDrv_VE_Get_Output_Video_Std() ;
EXTERN_C_LINKAGE MS_VE_VIDEOSYS CppTest_Stub_MDrv_VE_Get_Output_Video_Std(void) 
{
    return MS_VE_NTSC;
}

/** User stub definition for function: void MApi_XC_MLoad_Init(MS_PHYADDR, MS_U32) */
EXTERN_C_LINKAGE void MApi_XC_MLoad_Init(MS_PHYADDR PhyAddr, MS_U32 u32BufByteLen) ;
EXTERN_C_LINKAGE void CppTest_Stub_MApi_XC_MLoad_Init(MS_PHYADDR PhyAddr, MS_U32 u32BufByteLen)
{

}

/** User stub definition for function: void MApi_XC_MLoad_Enable(MS_BOOL) */
EXTERN_C_LINKAGE void MApi_XC_MLoad_Enable(MS_BOOL bEnable) ;
EXTERN_C_LINKAGE void CppTest_Stub_MApi_XC_MLoad_Enable(MS_BOOL bEnable)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_InitByDIP(SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_InitByDIP(SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_InitByDIP(SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_SetSourceScanType(EN_XC_DIP_SCAN_MODE, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_SetSourceScanType(EN_XC_DIP_SCAN_MODE enScanMode, SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_SetSourceScanType(EN_XC_DIP_SCAN_MODE enScanMode, SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_SetOutputDataFmt(EN_XC_DIP_DATA_FMT, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_SetOutputDataFmt(EN_XC_DIP_DATA_FMT fmt, SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_SetOutputDataFmt(EN_XC_DIP_DATA_FMT fmt, SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_SwapUV(MS_BOOL, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_SwapUV(MS_BOOL bEnable, SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_SwapUV(MS_BOOL bEnable, SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_SetAlpha(MS_U8, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_SetAlpha(MS_U8 u8AlphaVal, SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_SetAlpha(MS_U8 u8AlphaVal, SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_SetOutputCapture(MS_BOOL, EN_XC_DIP_OP_CAPTURE, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_SetOutputCapture(MS_BOOL bEnable,EN_XC_DIP_OP_CAPTURE eOpCapture,SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_SetOutputCapture(MS_BOOL bEnable,EN_XC_DIP_OP_CAPTURE eOpCapture,SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_EnableR2Y(MS_BOOL, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_EnableR2Y(MS_BOOL benable, SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_EnableR2Y(MS_BOOL benable, SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_SetWindow(XC_SETWIN_INFO, MS_U32, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_SetWindow(XC_SETWIN_INFO *pstXC_SetWin_Info, MS_U32 u32InitDataLen, SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_SetWindow(XC_SETWIN_INFO *pstXC_SetWin_Info, MS_U32 u32InitDataLen, SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_SetDIPWinProperty(ST_XC_DIP_WINPROPERTY, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_SetDIPWinProperty(ST_XC_DIP_WINPROPERTY *pstDIPWinProperty, SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_SetDIPWinProperty(ST_XC_DIP_WINPROPERTY *pstDIPWinProperty, SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_Ena(MS_BOOL, SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_Ena(MS_BOOL bEnable, SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_Ena(MS_BOOL bEnable, SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_APIXC_ReturnValue MApi_XC_DIP_CapOneFrame(SCALER_DIP_WIN) */
EXTERN_C_LINKAGE E_APIXC_ReturnValue MApi_XC_DIP_CapOneFrame(SCALER_DIP_WIN eWindow) ;
EXTERN_C_LINKAGE E_APIXC_ReturnValue CppTest_Stub_MApi_XC_DIP_CapOneFrame(SCALER_DIP_WIN eWindow)
{

}

/** User stub definition for function: E_GOP_API_Result MApi_GOP_GWIN_EnableProgressive (MS_BOOL ) */
EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_EnableProgressive (MS_BOOL bEnable ) ;
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_EnableProgressive (MS_BOOL bEnable) 
{
    return GOP_API_FAIL;
}

EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetUVSwap(MS_U8 u8GOP, MS_BOOL bEn);
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_SetUVSwap(MS_U8 u8GOP, MS_BOOL bEn)
{
    return GOP_API_FAIL;
}

EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_SetYCSwap(MS_U8 u8GOP, MS_BOOL bEn);
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_SetYCSwap(MS_U8 u8GOP, MS_BOOL bEn)
{
    return GOP_API_FAIL;
}

EXTERN_C_LINKAGE E_GOP_API_Result MApi_GOP_GWIN_SetLayer(GOP_LayerConfig *pGopLayer, MS_U32 u32SizeOfLayerInfo);
EXTERN_C_LINKAGE E_GOP_API_Result CppTest_Stub_MApi_GOP_GWIN_SetLayer(GOP_LayerConfig *pGopLayer, MS_U32 u32SizeOfLayerInfo)
{
    return GOP_API_FAIL;
}