#include "cpptest.h"
#include "core/coretypes.h"
#include "lib/fusion/property.h"

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

CPPTEST_TEST_SUITE(TestSuite_mstar_c_d5a8378e);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_return_true);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_return_false);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_ge_format_is_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_ge_format_not_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_NONE_case);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_case);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_case);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_XY_case);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_is_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_not_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_is_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_not_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_xmirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_ymirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_xymirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_no_mirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_ge_format_is_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_ge_format_not_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_NONE);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_XY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_is_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_not_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_is_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_not_GFX_FMT_YUV422);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_equal_zero);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_true);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_false);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_horiz_direct_is_false);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_horiz_direct_is_true);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_xmirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_ymirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_xymirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillTrapezoid_horiz_direct_is_false);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarFillTrapezoid_horiz_direct_is_true);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_ALPHACHANNEL);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_COLORALPHA);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_COLORIZE);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTIPLY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_DST_PREMULTIPLY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_DEMULTIPLY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTCOLOR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_XOR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_ALPHA);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_COLOR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_no_blending);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_src_blend_fn_unknow);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_src_blend_fn_not_unknow);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_dst_blend_fn_unknow);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_dst_blend_fn_not_unknow);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_NOFX);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarCheckBlitOption_return_true);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarCheckBlitOption_return_false);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB1555);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ABGR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_YVYU);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_YUY2);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_UYVY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_LUT8);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB4444);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_RGB16);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_COLOR_dst_ge_format_I8);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_COLOR_dst_ge_format_not_I8);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_NEARESTMODE);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_XMIRROR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_YMIRROR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MAX);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MIN);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB1555);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ABGR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_YVYU);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_YUY2);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_UYVY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT8);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT4);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT2);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT1);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB4444);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_RGB16);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SRC_COLORKEY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_DST_COLORKEY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_disable);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_alpha_cmp_enabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SOURCE);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE90);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE180);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE270);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE0);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_NEARESTMODE);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_XMIRROR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_YMIRROR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_YUY2);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_YVYU);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_UYVY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB1555);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB16);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB555);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_BGR555);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB2554);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB4444);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB444);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB24);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB32);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ABGR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT8);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT4);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT2);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT1);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUTX_pixel_out_of_range);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_BLEND);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_SRC_PREMULTIPLY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_DST_PREMULTIPLY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_DEMULTIPLY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_XOR);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I8);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I4);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I2);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I1);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_ARGB1555);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_sdrv_is_null);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarBlit_rectInfo);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarDrawRectangle_rectInfo);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_no_mirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_xmirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_ymirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_xymirror);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_return_false);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_return_true);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_even);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_odd);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_odd);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_even);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_small_than_MIU1_OFFSET);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_large_than_MIU1_OFFSET);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_equal_MIU1_OFFSET);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_SMF_DRAWING_FLAGS);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_with_invalid_flags);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_invalid_flags);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY_SMF_DRAWING_FLAGS);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY_with_invalid_flags);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Enabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Enabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Disabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_AlphaBlend_Disabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Disabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_BLEND_AlphaBlend_Disabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_BLEND_AlphaBlend_Disabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_COLOR_AlphaBlend_Disabled);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_dfb_OSD_RESOURCE_SetFBFmt_default_case);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_driver_close_driver_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarCheckState_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_driver_close_device_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_dumpFormat_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarGetSerial_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarWaitSerial_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_sc_get_h_cap_start_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_mstar_sc_is_interlace_OK);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_sc_get_ip0_h_cap_start_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_TestSuite_mstar_c_d5a8378e_test_driver_probe_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_driver_get_info_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_DestSizeErr);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_Dest_Supported_byGE);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_Dest_Not_Supported_byGE);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_SourceSizeErr);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_AccelRdy_Change);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_FlushTextureCache_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_EngineSync_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_BeginDraw_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_EndDraw_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_driver_init_device_default);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_CLIP);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_ALPHA_CMP);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION_SOURCE);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_SwYUVPatch);
CPPTEST_TEST(TestSuite_mstar_c_d5a8378e_test_mstar_init_device_E_GOP_DST_VE);
CPPTEST_TEST_SUITE_END();
        

void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_return_true();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_return_false();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_ge_format_is_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_ge_format_not_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_NONE_case();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_case();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_case();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_XY_case();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_is_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_not_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_is_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_not_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_xmirror();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_ymirror();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_xymirror();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_no_mirror();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_ge_format_is_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_ge_format_not_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_NONE();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_XY();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_is_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_not_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_is_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_not_GFX_FMT_YUV422();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_equal_zero();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_true();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_false();
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_horiz_direct_is_false();
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_horiz_direct_is_true();
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_xmirror();
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_ymirror();
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_xymirror();
void TestSuite_mstar_c_d5a8378e_test_mstarFillTrapezoid_horiz_direct_is_false();
void TestSuite_mstar_c_d5a8378e_test_mstarFillTrapezoid_horiz_direct_is_true();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_ALPHACHANNEL();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_COLORALPHA();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_COLORIZE();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTIPLY();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_DST_PREMULTIPLY();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_DEMULTIPLY();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTCOLOR();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_XOR();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_ALPHA();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_COLOR();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_no_blending();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_src_blend_fn_unknow();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_src_blend_fn_not_unknow();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_dst_blend_fn_unknow();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_dst_blend_fn_not_unknow();
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_NOFX();
void TestSuite_mstar_c_d5a8378e_test_mstarCheckBlitOption_return_true();
void TestSuite_mstar_c_d5a8378e_test_mstarCheckBlitOption_return_false();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB1555();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ABGR();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_YVYU();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_YUY2();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_UYVY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_LUT8();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB4444();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_RGB16();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_COLOR_dst_ge_format_I8();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_COLOR_dst_ge_format_not_I8();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_NEARESTMODE();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_XMIRROR();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_YMIRROR();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MAX();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MIN();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_default();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB1555();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ABGR();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_YVYU();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_YUY2();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_UYVY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT8();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT4();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT2();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT1();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB4444();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_RGB16();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SRC_COLORKEY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_DST_COLORKEY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_disable();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_alpha_cmp_enabled();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SOURCE();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE90();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE180();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE270();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE0();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_NEARESTMODE();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_XMIRROR();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_YMIRROR();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_YUY2();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_YVYU();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_UYVY();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB1555();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB16();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB555();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_BGR555();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB2554();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB4444();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB444();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB24();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB32();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ABGR();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT8();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT4();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT2();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT1();
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUTX_pixel_out_of_range();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_BLEND();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_SRC_PREMULTIPLY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_DST_PREMULTIPLY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_DEMULTIPLY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_XOR();
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I8();
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I4();
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I2();
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I1();
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_ARGB1555();
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_sdrv_is_null();
void TestSuite_mstar_c_d5a8378e_test_mstarBlit_rectInfo();
void TestSuite_mstar_c_d5a8378e_test_mstarDrawRectangle_rectInfo();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_no_mirror();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_xmirror();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_ymirror();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_xymirror();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_return_false();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_return_true();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_even();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_odd();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_odd();
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_even();
void TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_small_than_MIU1_OFFSET();
void TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_large_than_MIU1_OFFSET();
void TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_equal_MIU1_OFFSET();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_SMF_DRAWING_FLAGS();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_with_invalid_flags();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_invalid_flags();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY_SMF_DRAWING_FLAGS();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY_with_invalid_flags();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Enabled();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Enabled();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Disabled();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_AlphaBlend_Disabled();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Disabled();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_BLEND_AlphaBlend_Disabled();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_BLEND_AlphaBlend_Disabled();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_COLOR_AlphaBlend_Disabled();
void TestSuite_mstar_c_d5a8378e_test_mstar_dfb_OSD_RESOURCE_SetFBFmt_default_case();
void TestSuite_mstar_c_d5a8378e_test_driver_close_driver_default();
void TestSuite_mstar_c_d5a8378e_test_mstarCheckState_default();
void TestSuite_mstar_c_d5a8378e_test_driver_close_device_default();
void TestSuite_mstar_c_d5a8378e_test_dumpFormat_default();
void TestSuite_mstar_c_d5a8378e_test_mstarGetSerial_default();
void TestSuite_mstar_c_d5a8378e_test_mstarWaitSerial_default();
void TestSuite_mstar_c_d5a8378e_test_mstar_sc_get_h_cap_start_default();
void TestSuite_mstar_c_d5a8378e_mstar_sc_is_interlace_OK();
void TestSuite_mstar_c_d5a8378e_test_mstar_sc_get_ip0_h_cap_start_default();
void TestSuite_mstar_c_d5a8378e_TestSuite_mstar_c_d5a8378e_test_driver_probe_default();
void TestSuite_mstar_c_d5a8378e_test_driver_get_info_default();
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_DestSizeErr();
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_Dest_Supported_byGE();
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_Dest_Not_Supported_byGE();
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_SourceSizeErr();
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_AccelRdy_Change();
void TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default();
void TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default();
void TestSuite_mstar_c_d5a8378e_test_mstar_FlushTextureCache_default();
void TestSuite_mstar_c_d5a8378e_test_mstar_EngineSync_default();
void TestSuite_mstar_c_d5a8378e_test_mstar_BeginDraw_default();
void TestSuite_mstar_c_d5a8378e_test_mstar_EndDraw_default();
void TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default();
void TestSuite_mstar_c_d5a8378e_test_driver_init_device_default();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_CLIP();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_ALPHA_CMP();
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION_SOURCE();
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_SwYUVPatch();
void TestSuite_mstar_c_d5a8378e_test_mstar_init_device_E_GOP_DST_VE();
CPPTEST_TEST_SUITE_REGISTRATION(TestSuite_mstar_c_d5a8378e);

extern bool bRunInMock_MApi_GFX_SetSrcColorKey;
extern bool bRunInMock_MApi_GFX_SetDstColorKey;
extern bool bRunInMock_MApi_GFX_SetDFBBldOP;
extern bool bRunInMock_MApi_GFX_SetDFBBldFlags;
extern bool bRunInMock_MApi_GFX_SetDFBBldConstColor;
extern bool bRunInMock_MApi_GFX_EnableDFBBlending;
extern bool bRunInMock_MApi_GFX_EnableAlphaBlending;
extern bool bRunInMock_MApi_GFX_SetAlphaBlending;
extern bool bRunInMock_MApi_GFX_SetSrcBufferInfo;
extern bool bRunInMock_MApi_GFX_SetRotate;
extern bool bRunInMock_MApi_GFX_SetNearestMode;
extern bool bRunInMock_MApi_GFX_SetMirror;
extern bool bRunInMock_MApi_GFX_RectFill;
extern bool bRunInMock_MApi_GFX_DrawLine;
extern bool bRunInMock_MApi_GFX_DrawOval;
extern bool bRunInMock_MApi_GFX_DrawOval_2;
extern bool bRunInMock_MApi_GFX_BitBlt;
extern bool bRunInMock_MApi_GFX_BitBltEx;
extern bool bRunInMock_MApi_GFX_TrapezoidFill;
extern bool bRunInMock_mstarAllSurfInfo;
extern bool bRunInMock_mstarCheckStateInternalInfo;
extern bool bRunInMock_fusion_skirmish_destroyInfo;
extern bool bRunInMock_MApi_GFX_GetNextTAGIDInfo;
extern bool bRunInMock_MApi_XC_GetStatus_OK_Info;
//extern bool bRunInMock_MApi_XC_GetStatus_NG_Info;
extern bool bRunInMock_MApi_GFX_WaitForTAGIDInfo;
extern bool bRunInMock_mstarCheckBlitOptionInfo;
extern bool bRunInMock_MsOS_InitInfo;
extern bool bRunInMock_MDrv_SEM_InitInfo;
extern bool bRunInMock_MApi_PNL_IOMapBaseInitInfo;
extern bool bRunInMock_MDrv_VE_SetIOMapBaseInfo;
extern bool bRunInMock_MApi_XC_InitInfo;
extern bool bRunInMock_mstar_sc_get_h_cap_startInfo;
extern bool bRunInMock_MApi_GOP_RegisterFBFmtCBInfo;
extern bool bRunInMock_MApi_GOP_RegisterXCIsInterlaceCBInfo;
extern bool bRunInMock_MApi_GOP_RegisterXCGetCapHStartCBInfo;
extern bool bRunInMock_MApi_GOP_RegisterXCReduceBWForOSDCBInfo;
extern bool bRunInMock_MApi_GOP_GWIN_GetMaxGOPNumInfo;
extern bool bRunInMock_MApi_GOP_InitByGOPInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo;
extern bool bRunInMock_MApi_GFX_InitInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetMuxInfo;
extern bool bRunInMock_MApi_GFX_QueryDFBBldCapsInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo;
extern bool bRunInMock_MApi_GOP_GWIN_SetGOPDstInfo;
extern bool bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo;
extern bool bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo;
extern bool bRunInMock_MApi_XC_SetOSD2VEModeInfo;
extern bool bRunInMock_MApi_GFX_EnableVCmdQueueInfo;
extern bool bRunInMock_MApi_GFX_SetStrBltSckTypeInfo;
extern bool bRunInMock_MsOS_FlushMemoryInfo;
extern bool bRunInMock_MApi_GFX_FlushQueueInfo;
extern bool bRunInMock_MApi_GFX_BeginDrawInfo;
extern bool bRunInMock_MApi_GFX_EndDrawInfo;
extern bool bRunInMock_MDrv_MMIO_InitInfo;
extern bool bRunInMock_dfb_core_is_masterInfo;
extern bool bRunInMock_dfb_gfxcard_memory_virtualInfo;
extern bool bRunInMock_dfb_screens_registerInfo;
extern bool bRunInMock_dfb_layers_registerInfo;
extern bool bRunInMock_mstar_init_driverInfo;
extern bool bRunInMock_MApi_GFX_SetPaletteOptInfo;
extern bool bRunInMock_mstar_init_deviceInfo;
extern bool bRunInMock_fusion_skirmish_initInfo;
extern bool bRunInMock_dfb_core_worldInfo;
extern bool bRunInMock_MApi_GFX_SetDstBufferInfoInfo;
extern bool bRunInMock_MApi_GFX_SetClipInfo;
extern bool bRunInMock_MApi_GFX_SetIntensityInfo;
extern bool bRunInMock_MApi_GFX_SetAlphaCmpInfo;
extern bool bRunInMock_MApi_GFX_SetDC_CSC_FMTInfo;
extern bool bRunInMock_MApi_GOP_VE_SetOutputTiming;




extern bool bEnableDFBBlending;

void TestSuite_mstar_c_d5a8378e_setUp()
{
}

void TestSuite_mstar_c_d5a8378e_tearDown()
{
}


/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlit_return_true */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlit(void *, void *, DFBRectangle *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_return_true()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 1;

	srect.x = 0;
	srect.y = 0;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (drect) */ 
    DFBRectangle * _drect  = &drect ;
    {
        /* Tested function call */
        _Bool _return  = mstarStretchBlit(_driver_data, _device_data, _srect, _drect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
    }

}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlit_return_true */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlit_return_false */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlit(void *, void *, DFBRectangle *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_return_false()
{

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 1;

	srect.x = 0;
	srect.y = 0;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (drect) */ 
    DFBRectangle * _drect  = &drect ;
    {
        /* Tested function call */
        _Bool _return  = mstarStretchBlit(_driver_data, _device_data, _srect, _drect);
        CPPTEST_ASSERT_BOOL_EQUAL(FALSE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
    }

}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlit_return_false */


/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_ge_format_is_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_ge_format_is_GFX_FMT_YUV422()
{

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_NOFX;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }

}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_ge_format_is_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_ge_format_not_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_ge_format_not_GFX_FMT_YUV422()
{

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_NOFX;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }

}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_ge_format_not_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_NONE_case */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_NONE_case()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_NOFX;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_NONE_case */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_case */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_case()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_X;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_case */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_case */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_case()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_Y;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_case */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_XY_case */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_XY_case()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_X | DSDRAW_COLOR_GRADIENT_Y;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_XY_case */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_is_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_is_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_X;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 48;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_is_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_not_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_not_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_X;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 48;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_X_ge_format_not_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_is_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_is_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_Y;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 48;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_is_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_not_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarFillRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_not_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_Y;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 48;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;

	rect.x = 0;
	rect.y = 0;
	rect.w = 128;
	rect.h = 128;

	bRunInMock_MApi_GFX_RectFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv ;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillRectangle(_drv, _dev, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_RectFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _drv ", ( _drv ));
        //CPPTEST_POST_CONDITION_PTR("void * _dev ", ( _dev ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillRectangle_GFXRECT_FLAG_COLOR_GRADIENT_Y_ge_format_not_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlit_xmirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlit(void *, void *, DFBRectangle *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_xmirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 0;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (drect) */ 
    DFBRectangle * _drect  = &drect ;
    {
        /* Tested function call */
        _Bool _return  = mstarStretchBlit(_driver_data, _device_data, _srect, _drect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlit_xmirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlit_ymirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlit(void *, void *, DFBRectangle *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_ymirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 1;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (drect) */ 
    DFBRectangle * _drect  = &drect ;
    {
        /* Tested function call */
        _Bool _return  = mstarStretchBlit(_driver_data, _device_data, _srect, _drect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlit_ymirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlit_xymirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlit(void *, void *, DFBRectangle *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_xymirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 1;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (drect) */ 
    DFBRectangle * _drect  = &drect ;
    {
        /* Tested function call */
        _Bool _return  = mstarStretchBlit(_driver_data, _device_data, _srect, _drect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlit_xymirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlit_no_mirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlit(void *, void *, DFBRectangle *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlit_no_mirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (drect) */ 
    DFBRectangle * _drect  = &drect ;
    {
        /* Tested function call */
        _Bool _return  = mstarStretchBlit(_driver_data, _device_data, _srect, _drect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlit_no_mirror */


/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_ge_format_is_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_ge_format_is_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_NOFX;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_ge_format_is_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_ge_format_not_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_ge_format_not_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_NOFX;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_ge_format_not_GFX_FMT_YUV422 */


/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_NONE */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_NONE()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_NOFX;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_NONE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_X;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_Y;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_XY */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_XY()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_X | DSDRAW_COLOR_GRADIENT_Y;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_XY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_is_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_is_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_X;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 48;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_is_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_not_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_not_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags =  DSDRAW_COLOR_GRADIENT_X;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 48;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_X_ge_format_not_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_is_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_is_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags = DSDRAW_COLOR_GRADIENT_Y;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 48;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_is_GFX_FMT_YUV422 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_not_GFX_FMT_YUV422 */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawLine(void *, void *, DFBRegion *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_not_GFX_FMT_YUV422()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRegion reg;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.dflags = DSDRAW_COLOR_GRADIENT_Y;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 48;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;

	reg.x1 = 0;
	reg.y1 = 0;
	reg.x2 = 128;
	reg.y2 = 128;

	bRunInMock_MApi_GFX_DrawLine = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (line) */ 
    DFBRegion * _line  = &reg ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawLine(_driver_data, _device_data, _line);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawLine ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRegion * _line ", ( _line ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawLine_DSDRAW_COLOR_GRADIENT_is_Y_ge_format_not_GFX_FMT_YUV422 */


/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawOval_line_width_equal_zero */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawOval(void *, void *, DFBOval *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_equal_zero()
{
	// Test case: (oval->line_width = 0)

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBOval oval;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.color.a = 227;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	oval.oval_rect.x = 2;
	oval.oval_rect.y = 3;
	oval.oval_rect.w = 30;
	oval.oval_rect.h = 25;

	oval.line_color.a = 255;
	oval.line_color.r =  18;
	oval.line_color.g =  28;
	oval.line_color.b = 236;
	oval.line_width  = 0; //

	bRunInMock_MApi_GFX_DrawOval = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (oval) */ 
    DFBOval * _oval  = &oval ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawOval(_driver_data, _device_data, _oval);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawOval ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBOval * _oval ", ( _oval ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawOval_line_width_equal_zero */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_true */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawOval(void *, void *, DFBOval *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_true()
{
	// Test case: (oval->line_width > 0) & !DFB_COLOR_EQUAL(sdrv->color, oval->line_color) is false
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBOval oval;

	sdrv.color.a = 227;
	sdrv.color.r =  48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	oval.line_color.a = 227;
	oval.line_color.r =  48;
	oval.line_color.g = 128;
	oval.line_color.b = 196;

	oval.oval_rect.x = 2;
	oval.oval_rect.y = 3;
	oval.oval_rect.w = 30;
	oval.oval_rect.h = 25;
	oval.line_width  = 1;

	bRunInMock_MApi_GFX_DrawOval = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (oval) */ 
    DFBOval * _oval  = &oval ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawOval(_driver_data, _device_data, _oval);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawOval ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBOval * _oval ", ( _oval ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_true */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_false */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawOval(void *, void *, DFBOval *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_false()
{
	// Test case: (oval->line_width > 0)  and  !DFB_COLOR_EQUAL(sdrv->color, oval->line_color) is true
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBOval oval;

	sdrv.color.a = 227;
	sdrv.color.r =  48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	oval.line_color.a = 255;
	oval.line_color.r =  68;
	oval.line_color.g =  50;
	oval.line_color.b =  96;

	oval.oval_rect.x = 2;
	oval.oval_rect.y = 3;
	oval.oval_rect.w = 30;
	oval.oval_rect.h = 25;
	oval.line_width  = 2;

    bRunInMock_MApi_GFX_DrawOval   = FALSE;
    bRunInMock_MApi_GFX_DrawOval_2 = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (oval) */ 
    DFBOval * _oval  = &oval ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawOval(_driver_data, _device_data, _oval);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawOval ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_DrawOval_2 ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBOval * _oval ", ( _oval ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawOval_line_width_large_than_zero_DFB_COLOR_EQUAL_is_false */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBlitTrapezoid_horiz_direct_is_false */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarBlitTrapezoid(void *, void *, DFBRectangle *, DFBTrapezoid *) */
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_horiz_direct_is_false()
{
	// Test (false == dtrapezoid->horiz_direct) is true case

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	DFBRectangle srect;
	DFBTrapezoid dtrapezoid;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;

	srect.x = 0;
	srect.y = 2;
	srect.w = 128;
	srect.h = 130;

	dtrapezoid.x0 = 5;
	dtrapezoid.y0 = 8;
	dtrapezoid.x1 = 100;
	dtrapezoid.y1 = 110;
	dtrapezoid.top_edge_width = 50;
	dtrapezoid.bottom_edge_width = 70;
	dtrapezoid.horiz_direct = false;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (dtrapezoid) */ 
    DFBTrapezoid * _dtrapezoid  = &dtrapezoid ;
    {
        /* Tested function call */
        _Bool _return  = mstarBlitTrapezoid(_driver_data, _device_data, _srect, _dtrapezoid);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBTrapezoid * _dtrapezoid ", ( _dtrapezoid ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBlitTrapezoid_horiz_direct_is_false */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBlitTrapezoid_horiz_direct_is_true */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarBlitTrapezoid(void *, void *, DFBRectangle *, DFBTrapezoid *) */
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_horiz_direct_is_true()
{
	// Test (false == dtrapezoid->horiz_direct) is false case

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	DFBRectangle srect;
	DFBTrapezoid dtrapezoid;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;

	srect.x = 0;
	srect.y = 2;
	srect.w = 128;
	srect.h = 130;

	dtrapezoid.x0 = 5;
	dtrapezoid.y0 = 8;
	dtrapezoid.x1 = 100;
	dtrapezoid.y1 = 110;
	dtrapezoid.top_edge_width = 50;
	dtrapezoid.bottom_edge_width = 70;
	dtrapezoid.horiz_direct = true;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (dtrapezoid) */ 
    DFBTrapezoid * _dtrapezoid  = &dtrapezoid ;
    {
        /* Tested function call */
        _Bool _return  = mstarBlitTrapezoid(_driver_data, _device_data, _srect, _dtrapezoid);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBTrapezoid * _dtrapezoid ", ( _dtrapezoid ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBlitTrapezoid_horiz_direct_is_true */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBlitTrapezoid_xmirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarBlitTrapezoid(void *, void *, DFBRectangle *, DFBTrapezoid *) */
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_xmirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	DFBRectangle srect;
	DFBTrapezoid dtrapezoid;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 0;

	srect.x = 3;
	srect.y = 4;
	srect.w = 128;
	srect.h = 129;

	dtrapezoid.x0 = 5;
	dtrapezoid.y0 = 8;
	dtrapezoid.x1 = 100;
	dtrapezoid.y1 = 110;
	dtrapezoid.top_edge_width = 50;
	dtrapezoid.bottom_edge_width = 70;
	dtrapezoid.horiz_direct = true;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (dtrapezoid) */ 
    DFBTrapezoid * _dtrapezoid  = &dtrapezoid ;
    {
        /* Tested function call */
        _Bool _return  = mstarBlitTrapezoid(_driver_data, _device_data, _srect, _dtrapezoid);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBTrapezoid * _dtrapezoid ", ( _dtrapezoid ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBlitTrapezoid_xmirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBlitTrapezoid_ymirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarBlitTrapezoid(void *, void *, DFBRectangle *, DFBTrapezoid *) */
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_ymirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	DFBRectangle srect;
	DFBTrapezoid dtrapezoid;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 1;

	srect.x = 3;
	srect.y = 4;
	srect.w = 128;
	srect.h = 129;

	dtrapezoid.x0 = 5;
	dtrapezoid.y0 = 8;
	dtrapezoid.x1 = 100;
	dtrapezoid.y1 = 110;
	dtrapezoid.top_edge_width = 50;
	dtrapezoid.bottom_edge_width = 70;
	dtrapezoid.horiz_direct = true;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (dtrapezoid) */ 
    DFBTrapezoid * _dtrapezoid  = &dtrapezoid ;
    {
        /* Tested function call */
        _Bool _return  = mstarBlitTrapezoid(_driver_data, _device_data, _srect, _dtrapezoid);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBTrapezoid * _dtrapezoid ", ( _dtrapezoid ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBlitTrapezoid_ymirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBlitTrapezoid_xymirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarBlitTrapezoid(void *, void *, DFBRectangle *, DFBTrapezoid *) */
void TestSuite_mstar_c_d5a8378e_test_mstarBlitTrapezoid_xymirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	DFBRectangle srect;
	DFBTrapezoid dtrapezoid;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 1;

	srect.x = 3;
	srect.y = 4;
	srect.w = 128;
	srect.h = 129;

	dtrapezoid.x0 = 5;
	dtrapezoid.y0 = 8;
	dtrapezoid.x1 = 100;
	dtrapezoid.y1 = 110;
	dtrapezoid.top_edge_width = 50;
	dtrapezoid.bottom_edge_width = 70;
	dtrapezoid.horiz_direct = true;

	bRunInMock_MApi_GFX_BitBlt = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (dtrapezoid) */ 
    DFBTrapezoid * _dtrapezoid  = &dtrapezoid ;
    {
        /* Tested function call */
        _Bool _return  = mstarBlitTrapezoid(_driver_data, _device_data, _srect, _dtrapezoid);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBlt ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBTrapezoid * _dtrapezoid ", ( _dtrapezoid ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarBlitTrapezoid_xymirror */


/* CPPTEST_TEST_CASE_BEGIN test_mstarFillTrapezoid_horiz_direct_is_false */
void TestSuite_mstar_c_d5a8378e_test_mstarFillTrapezoid_horiz_direct_is_false()
{
	// test:  if(false == dtrapezoid->horiz_direct)

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBTrapezoid dtrapezoid;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	dtrapezoid.x0 = 5;
	dtrapezoid.y0 = 8;
	dtrapezoid.x1 = 100;
	dtrapezoid.y1 = 110;
	dtrapezoid.top_edge_width = 50;
	dtrapezoid.bottom_edge_width = 70;

	dtrapezoid.horiz_direct = false;

	bRunInMock_MApi_GFX_TrapezoidFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (dtrapezoid) */
    DFBTrapezoid * _dtrapezoid  = &dtrapezoid ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillTrapezoid(_driver_data, _device_data, _dtrapezoid);
        //CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return )); // todo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_TrapezoidFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBTrapezoid * _dtrapezoid ", ( _dtrapezoid ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillTrapezoid_horiz_direct_is_false */

/* CPPTEST_TEST_CASE_BEGIN test_mstarFillTrapezoid_horiz_direct_is_true */
void TestSuite_mstar_c_d5a8378e_test_mstarFillTrapezoid_horiz_direct_is_true()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBTrapezoid dtrapezoid;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;

	sdrv.dst_ge_format = GFX_FMT_ARGB8888;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	dtrapezoid.x0 = 5;
	dtrapezoid.y0 = 8;
	dtrapezoid.x1 = 100;
	dtrapezoid.y1 = 110;
	dtrapezoid.top_edge_width = 50;
	dtrapezoid.bottom_edge_width = 70;

	dtrapezoid.horiz_direct = true;

	bRunInMock_MApi_GFX_TrapezoidFill = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (dtrapezoid) */
    DFBTrapezoid * _dtrapezoid  = &dtrapezoid ;
    {
        /* Tested function call */
        _Bool _return  = mstarFillTrapezoid(_driver_data, _device_data, _dtrapezoid);
        //CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return )); // todo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_TrapezoidFill ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBTrapezoid * _dtrapezoid ", ( _dtrapezoid ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarFillTrapezoid_horiz_direct_is_true */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_ALPHACHANNEL */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_ALPHACHANNEL()
{
#if 0
	// following define in supernova apiGFX.h

	/// Define DFB Blending Related:
	#define GFX_DFB_BLD_FLAG_COLORALPHA             0x0001
	#define GFX_DFB_BLD_FLAG_ALPHACHANNEL           0x0002
	#define GFX_DFB_BLD_FLAG_COLORIZE               0x0004
	#define GFX_DFB_BLD_FLAG_SRCPREMUL              0x0008
	#define GFX_DFB_BLD_FLAG_SRCPREMULCOL           0x0010
	#define GFX_DFB_BLD_FLAG_DSTPREMUL              0x0020
	#define GFX_DFB_BLD_FLAG_XOR                    0x0040
	#define GFX_DFB_BLD_FLAG_DEMULTIPLY             0x0080
	#define GFX_DFB_BLD_FLAG_SRCALPHAMASK           0x0100
	#define GFX_DFB_BLD_FLAG_SRCCOLORMASK           0x0200
	#define GFX_DFB_BLD_FLAG_ALL                    0x03FF

	typedef enum
	{
	    GFX_DFB_BLD_OP_ZERO                 = 0,
	    GFX_DFB_BLD_OP_ONE                  = 1,
	    GFX_DFB_BLD_OP_SRCCOLOR             = 2,
	    GFX_DFB_BLD_OP_INVSRCCOLOR          = 3,
	    GFX_DFB_BLD_OP_SRCALPHA             = 4,
	    GFX_DFB_BLD_OP_INVSRCALPHA          = 5,
	    GFX_DFB_BLD_OP_DESTALPHA            = 6,
	    GFX_DFB_BLD_OP_INVDESTALPHA         = 7,
	    GFX_DFB_BLD_OP_DESTCOLOR            = 8,
	    GFX_DFB_BLD_OP_INVDESTCOLOR         = 9,
	    GFX_DFB_BLD_OP_SRCALPHASAT          = 10,
	}GFX_DFBBldOP;
#endif
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_BLEND_ALPHACHANNEL;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_SRCCOLOR;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_DESTCOLOR;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_ALPHACHANNEL, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_SRCCOLOR, pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_DESTCOLOR, pgfx_dst_bld_op);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_ALPHACHANNEL */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_COLORALPHA */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_COLORALPHA()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_BLEND_COLORALPHA;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_INVSRCCOLOR;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_INVDESTCOLOR;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_COLORALPHA, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_INVSRCCOLOR,  pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_INVDESTCOLOR, pgfx_dst_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_BLEND_COLORALPHA */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_COLORIZE */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_COLORIZE()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_COLORIZE;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_COLORIZE, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE, pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ZERO, pgfx_dst_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_COLORIZE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTIPLY */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTIPLY()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_SRC_PREMULTIPLY;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_SRCPREMUL, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE, pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ZERO, pgfx_dst_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTIPLY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_DST_PREMULTIPLY */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_DST_PREMULTIPLY()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_DST_PREMULTIPLY;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_DSTPREMUL, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE, pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ZERO, pgfx_dst_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_DST_PREMULTIPLY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_DEMULTIPLY */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_DEMULTIPLY()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_DEMULTIPLY;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_DEMULTIPLY, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE, pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ZERO, pgfx_dst_bld_op);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_DEMULTIPLY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTCOLOR */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTCOLOR()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_SRC_PREMULTCOLOR;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_SRCPREMULCOL, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE,  pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ZERO, pgfx_dst_bld_op);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_PREMULTCOLOR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_XOR */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_XOR()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_XOR;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_XOR, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE,  pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ZERO, pgfx_dst_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_XOR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_ALPHA */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_ALPHA()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_SRC_MASK_ALPHA;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_SRCALPHAMASK, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE,  pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ZERO, pgfx_dst_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_ALPHA */


/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_COLOR */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_COLOR()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_SRC_MASK_COLOR;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_SRCCOLORMASK, pu16_bld_flags);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE,  pgfx_src_bld_op);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ZERO, pgfx_dst_bld_op);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_SRC_MASK_COLOR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_no_blending */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_no_blending()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_ROTATE90;  // <---
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(FALSE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL(0, pu16_bld_flags);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_no_blending */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_src_blend_fn_unknow */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_src_blend_fn_unknow()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_BLEND_ALPHACHANNEL;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN; // <----
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE, pgfx_src_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_src_blend_fn_unknow */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_src_blend_fn_not_unknow */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_src_blend_fn_not_unknow()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_BLEND_ALPHACHANNEL;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_SRCCOLOR; // <----  src_blend_fn_not_unknow
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_SRCCOLOR, pgfx_src_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_src_blend_fn_not_unknow */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_dst_blend_fn_unknow */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_dst_blend_fn_unknow()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_BLEND_ALPHACHANNEL;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN; // <----
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_ONE, pgfx_dst_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_dst_blend_fn_unknow */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_dst_blend_fn_not_unknow */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_dst_blend_fn_not_unknow()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_BLEND_ALPHACHANNEL;
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_SRCCOLOR; // <----  dst_blend_fn_not_unknow
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_OP_SRCCOLOR, pgfx_dst_bld_op);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_dst_blend_fn_not_unknow */

/* CPPTEST_TEST_CASE_BEGIN test_mstarMapGFXBlitOption_blitflag_DSBLIT_NOFX */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarMapGFXBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlendFunction, DFBSurfaceBlendFunction, GFX_DFBBldOP *, GFX_DFBBldOP *, u16 *) */
void TestSuite_mstar_c_d5a8378e_test_mstarMapGFXBlitOption_blitflag_DSBLIT_NOFX()
{
	u16  pu16_bld_flags = 0;
    GFX_DFBBldOP pgfx_src_bld_op;
    GFX_DFBBldOP pgfx_dst_bld_op;

    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_NOFX;  // <---
    /* Initializing argument 2 (src_blend) */ 
    DFBSurfaceBlendFunction _src_blend  = DSBF_UNKNOWN;
    /* Initializing argument 3 (dst_blend) */ 
    DFBSurfaceBlendFunction _dst_blend  = DSBF_UNKNOWN;
    /* Initializing argument 4 (pgfx_src_bld_op) */ 
    GFX_DFBBldOP * _pgfx_src_bld_op  = &pgfx_src_bld_op ;
    /* Initializing argument 5 (pgfx_dst_bld_op) */ 
    GFX_DFBBldOP * _pgfx_dst_bld_op  = &pgfx_dst_bld_op ;
    /* Initializing argument 6 (pu16_bld_flags) */ 
    u16 * _pu16_bld_flags  = &pu16_bld_flags ;
    {
        /* Tested function call */
        _Bool _return  = mstarMapGFXBlitOption(_blittingflags, _src_blend, _dst_blend, _pgfx_src_bld_op, _pgfx_dst_bld_op, _pu16_bld_flags);
        CPPTEST_ASSERT_BOOL_EQUAL(FALSE, ( _return ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_src_bld_op ", ( _pgfx_src_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("GFX_DFBBldOP * _pgfx_dst_bld_op ", ( _pgfx_dst_bld_op ));
        //CPPTEST_POST_CONDITION_PTR("u16 * _pu16_bld_flags ", ( _pu16_bld_flags ));
    }

}
/* CPPTEST_TEST_CASE_END test_mstarMapGFXBlitOption_blitflag_DSBLIT_NOFX */

/* CPPTEST_TEST_CASE_BEGIN test_mstarCheckBlitOption_return_true */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarCheckBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlittingFlags) */
void TestSuite_mstar_c_d5a8378e_test_mstarCheckBlitOption_return_true()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_BLEND_ALPHACHANNEL; // 0x00000001
    /* Initializing argument 2 (supported_blittingflags) */ 
    DFBSurfaceBlittingFlags _supported_blittingflags  = 0xff;
    {
        /* Tested function call */
        _Bool _return  = mstarCheckBlitOption(_blittingflags, _supported_blittingflags);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarCheckBlitOption_return_true */

/* CPPTEST_TEST_CASE_BEGIN test_mstarCheckBlitOption_return_false */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarCheckBlitOption(DFBSurfaceBlittingFlags, DFBSurfaceBlittingFlags) */
void TestSuite_mstar_c_d5a8378e_test_mstarCheckBlitOption_return_false()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (blittingflags) */ 
    DFBSurfaceBlittingFlags _blittingflags  = DSBLIT_SRC_PREMULTCOLOR; // 0x00000200
    /* Initializing argument 2 (supported_blittingflags) */ 
    DFBSurfaceBlittingFlags _supported_blittingflags  = 0xff;
    {
        /* Tested function call */
        _Bool _return  = mstarCheckBlitOption(_blittingflags, _supported_blittingflags);
        CPPTEST_ASSERT_BOOL_EQUAL(FALSE, ( _return ));
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarCheckBlitOption_return_false */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_ARGB1555 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB1555()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555; // <--------
	dst_buffer.format = DSPF_ARGB1555; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ARGB1555, sdrv.dst_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_ARGB1555 */



/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_ARGB */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_DRAWRECTANGLE;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ARGB8888, sdrv.dst_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_ARGB */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_ABGR */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ABGR()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ABGR; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ABGR8888, sdrv.dst_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_ABGR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_YVYU */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_YVYU()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_YVYU; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;
    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_YUV422, sdrv.dst_ge_format);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_YUV_YVYU,   sdrv.dst_ge_yuv_fmt);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_YVYU */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_YUY2 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_YUY2()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_YUY2; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;
    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_YUV422, sdrv.dst_ge_format);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_YUV_YUYV,   sdrv.dst_ge_yuv_fmt);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_YUY2 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_UYVY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_UYVY()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_UYVY; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_YUV422, sdrv.dst_ge_format);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_YUV_UYVY, sdrv.dst_ge_yuv_fmt);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_UYVY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_LUT8 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_LUT8()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	CorePalette pal;
	DFBColor  entries[256];

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	destination.palette = &pal;
	destination.palette->num_entries = 256;
	destination.palette->entries = &entries;

	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_LUT8; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;
    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_I8, sdrv.dst_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_LUT8 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_ARGB4444 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_ARGB4444()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB4444; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ARGB4444, sdrv.dst_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_ARGB4444 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_dst_format_DSPF_RGB16 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_dst_format_DSPF_RGB16()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_RGB16; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_RGB565, sdrv.dst_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_dst_format_DSPF_RGB16 */


/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_SMF_COLOR_dst_ge_format_I8 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_COLOR_dst_ge_format_I8()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_A8; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 58;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;


	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP | SMF_COLOR;  // <---
	state.destination = &destination;
	state.source      = &source;
	state.color.a = 155;
	state.color.r = 36;
	state.color.g = 86;
	state.color.b = 10;

	state.color2.a = 255;
	state.color2.r = 100;
	state.color2.g = 64;
	state.color2.b = 32;
	state.color_index = 8;//

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 36, sdrv.color.r);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 100, sdrv.color2.r);
        CPPTEST_ASSERT_UINTEGER_EQUAL( state.color_index, sdrv.color.b);

        //printf("sdrv color: %d, %d, %d, %d, color2: %d, %d, %d, %d\n", sdrv.color.a, sdrv.color.r, sdrv.color.g, sdrv.color.b, sdrv.color2.a, sdrv.color2.r, sdrv.color2.g, sdrv.color2.b);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_SMF_COLOR_dst_ge_format_I8 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_SMF_COLOR_dst_ge_format_not_I8 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_COLOR_dst_ge_format_not_I8()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB1555; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_BLIT;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.color2.a = 255;
	sdrv.color2.r = 58;
	sdrv.color2.g = 128;
	sdrv.color2.b = 196;


	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP | SMF_COLOR;  // <---
	state.destination = &destination;
	state.source      = &source;
	state.color.a = 155;
	state.color.r = 36;
	state.color.g = 86;
	state.color.b = 10;

	state.color2.a = 255;
	state.color2.r = 100;
	state.color2.g = 64;
	state.color2.b = 32;
	state.color_index = 8;//

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 36, sdrv.color.r);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 100, sdrv.color2.r);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 10, sdrv.color.b);

        //printf("sdrv color: %d, %d, %d, %d, color2: %d, %d, %d, %d\n", sdrv.color.a, sdrv.color.r, sdrv.color.g, sdrv.color.b, sdrv.color2.a, sdrv.color2.r, sdrv.color2.g, sdrv.color2.b);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_SMF_COLOR_dst_ge_format_not_I8 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_SMF_BLIT_NEARESTMODE */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_NEARESTMODE()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555; // <--------
	dst_buffer.format = DSPF_ARGB1555; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 1;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 0;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( state.blit_nearestmode_enabled, sdrv.ge_blit_nearestmode_enabled);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_SMF_BLIT_NEARESTMODE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_SMF_BLIT_XMIRROR */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_XMIRROR()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555; // <--------
	dst_buffer.format = DSPF_ARGB1555; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 1;
	state.blit_ymirror_enabled = 0;


    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( state.blit_xmirror_enabled, sdrv.ge_blit_xmirror);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_SMF_BLIT_XMIRROR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_SMF_BLIT_YMIRROR */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_BLIT_YMIRROR()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555; // <--------
	dst_buffer.format = DSPF_ARGB1555; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( state.blit_ymirror_enabled, sdrv.ge_blit_ymirror);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_SMF_BLIT_YMIRROR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MAX */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MAX()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555; // <--------
	dst_buffer.format = DSPF_ARGB1555; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_MAX;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( state.cmp_mode - 1 , sdrv.ge_render_alpha_cmp);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 1 , sdrv.ge_render_alpha_cmp_enabled);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MAX */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MIN */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MIN()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555; // <--------
	dst_buffer.format = DSPF_ARGB1555; // <--------

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_MIN;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( state.cmp_mode - 1 , sdrv.ge_render_alpha_cmp);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 1 , sdrv.ge_render_alpha_cmp_enabled);

    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_DSBF_ACMP_OP_MIN */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_default()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0 , sdrv.ge_render_alpha_cmp_enabled);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_SMF_ALPHA_CMP_cmp_mode_is_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_ARGB1555 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB1555()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ARGB1555, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_ARGB1555 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_ARGB */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ARGB8888, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_ARGB */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_ABGR */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ABGR()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ABGR;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ABGR8888, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_ABGR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_YVYU */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_YVYU()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_YVYU;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_YUV422, sdrv.src_ge_format);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_YUV_YVYU,   sdrv.src_ge_yuv_fmt);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_YVYU */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_YUY2 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_YUY2()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_YUY2;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_YUV422, sdrv.src_ge_format);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_YUV_YUYV, sdrv.src_ge_yuv_fmt);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_YUY2 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_UYVY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_UYVY()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_UYVY;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_YUV422, sdrv.src_ge_format);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_YUV_UYVY, sdrv.src_ge_yuv_fmt);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_UYVY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_LUT8 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT8()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	CorePalette pal;
	DFBColor  entries[256];

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;
	source.palette = &pal;
	source.palette->num_entries = 256;
	source.palette->entries = &entries;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_LUT8;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;
	sdrv.ge_palette_intensity_enabled = 0;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_I8, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_LUT8 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_LUT4 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT4()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;
	CorePalette pal;
	DFBColor  entries[256];

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;
	source.palette = &pal;
	source.palette->num_entries = 256;
	source.palette->entries = &entries;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_LUT4;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;
	sdrv.ge_palette_intensity_enabled = 0;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;


    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_I4, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_LUT4 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_LUT2 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT2()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	CorePalette pal;
	DFBColor  entries[256];

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;
	source.palette = &pal;
	source.palette->num_entries = 256;
	source.palette->entries = &entries;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_LUT2;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;
	sdrv.ge_palette_intensity_enabled = 0;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_I2, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_LUT2 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_LUT1 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_LUT1()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	CorePalette pal;
	DFBColor  entries[256];

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;
	source.palette = &pal;
	source.palette->num_entries = 256;
	source.palette->entries = &entries;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_LUT1;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;
	sdrv.ge_palette_intensity_enabled = 0;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_I1, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_LUT1 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_ARGB4444 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_ARGB4444()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB4444;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_ARGB4444, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_ARGB4444 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_src_format_DSPF_RGB16 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_src_format_DSPF_RGB16()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_RGB16;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_FMT_RGB565, sdrv.src_ge_format);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_src_format_DSPF_RGB16 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_SMF_SRC_COLORKEY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SRC_COLORKEY()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 1;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;

	bRunInMock_MApi_GFX_SetSrcColorKey = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_SRC_COLORKEY;// | SMF_BLITTING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetSrcColorKey);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_SMF_SRC_COLORKEY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_SMF_DST_COLORKEY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_DST_COLORKEY()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_blit_dst_colorkey_enabled = 1;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	bRunInMock_MApi_GFX_SetDstColorKey = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DST_COLORKEY;// | SMF_BLITTING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDstColorKey);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_SMF_DST_COLORKEY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_AlphaBlend_enable */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 1; // <-
	sdrv.ge_render_alpha_cmp_enabled = 0;
	sdrv.ge_blit_bld_flags = true;
	sdrv.ge_src_blend = GFX_DFB_BLD_OP_SRCCOLOR;
	sdrv.ge_dst_blend = GFX_DFB_BLD_OP_DESTCOLOR;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;

	sdrv.color.a = 255;
	sdrv.color.r = 127;
	sdrv.color.g = 227;
	sdrv.color.b = 27;

    // clear the flags
    bRunInMock_MApi_GFX_SetDFBBldOP          = false;
    bRunInMock_MApi_GFX_SetDFBBldFlags       = false;
    bRunInMock_MApi_GFX_SetDFBBldConstColor  = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLITTING_FLAGS; // <-
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldOP);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldFlags);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldConstColor);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));


    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_AlphaBlend_enable */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_AlphaBlend_disable */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_disable()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 0; // <-
	sdrv.ge_render_alpha_cmp_enabled = 0;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;

	sdrv.color.a = 255;
	sdrv.color.r = 27;
	sdrv.color.g = 28;
	sdrv.color.b = 29;

    // clear the flags
    bRunInMock_MApi_GFX_EnableDFBBlending   = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLITTING_FLAGS; // <-
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true,  bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true,  bRunInMock_MApi_GFX_EnableAlphaBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(false, bEnableDFBBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_AlphaBlend_disable */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_alpha_cmp_enabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_alpha_cmp_enabled()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 1; // <-
	sdrv.ge_render_alpha_cmp_enabled = 1; // <-
	sdrv.src_ge_format = GFX_FMT_ARGB8888;

	sdrv.color.a = 139;
	sdrv.color.r =  20;
	sdrv.color.g =  21;
	sdrv.color.b =  22;

    // clear the flag
    bRunInMock_MApi_GFX_SetAlphaBlending = false;
    bRunInMock_MApi_GFX_EnableDFBBlending   = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLITTING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
//        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetAlphaBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bEnableDFBBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_alpha_cmp_enabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_SMF_SOURCE */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_SOURCE()
{
	// test the case : if(modified & SMF_SOURCE)

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 1; // <-
	sdrv.ge_render_alpha_cmp_enabled = 1; // <-

	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.src_phys = 0x680000;
	sdrv.src_w = 256;
	sdrv.src_h = 512;
	sdrv.src_pitch = 1024;

	sdrv.color.a = 139;
	sdrv.color.r =  20;
	sdrv.color.g =  21;
	sdrv.color.b =  22;

    // clear the flag
    bRunInMock_MApi_GFX_SetSrcBufferInfo = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_SOURCE;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetSrcBufferInfo);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_SMF_SOURCE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_DSBLIT_ROTATE90 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE90()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 0;
	sdrv.ge_render_alpha_cmp_enabled = 0;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.bflags = DSBLIT_ROTATE90;

	bRunInMock_MApi_GFX_SetRotate = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLITTING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetRotate);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_DSBLIT_ROTATE90 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_DSBLIT_ROTATE180 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE180()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 0;
	sdrv.ge_render_alpha_cmp_enabled = 0;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.bflags = DSBLIT_ROTATE180;

	bRunInMock_MApi_GFX_SetRotate = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLITTING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetRotate);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_DSBLIT_ROTATE180 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_DSBLIT_ROTATE270 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE270()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 0;
	sdrv.ge_render_alpha_cmp_enabled = 0;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.bflags = DSBLIT_ROTATE270;

	bRunInMock_MApi_GFX_SetRotate = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLITTING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetRotate);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_DSBLIT_ROTATE270 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_DSBLIT_ROTATE0 */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_DSBLIT_ROTATE0()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 0;
	sdrv.ge_render_alpha_cmp_enabled = 0;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.bflags = DSBLIT_NOFX;

	bRunInMock_MApi_GFX_SetRotate = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLITTING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetRotate);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_DSBLIT_ROTATE0 */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_SMF_BLIT_NEARESTMODE */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_NEARESTMODE()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 0;
	sdrv.ge_render_alpha_cmp_enabled = 0;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.bflags = DSBLIT_NOFX;
	sdrv.ge_blit_nearestmode_enabled = 1;
	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;

	bRunInMock_MApi_GFX_SetNearestMode = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLIT_NEARESTMODE;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetNearestMode);


        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_SMF_BLIT_NEARESTMODE */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_SMF_BLIT_XMIRROR */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_XMIRROR()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 0;
	sdrv.ge_render_alpha_cmp_enabled = 0;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.bflags = DSBLIT_NOFX;
	sdrv.ge_blit_nearestmode_enabled = 0;
	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 0;

	bRunInMock_MApi_GFX_SetMirror = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLIT_XMIRROR;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetMirror);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_SMF_BLIT_XMIRROR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_SMF_BLIT_YMIRROR */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_SMF_BLIT_YMIRROR()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 0;
	sdrv.ge_render_alpha_cmp_enabled = 0;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.bflags = DSBLIT_NOFX;
	sdrv.ge_blit_nearestmode_enabled = 0;
	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 1;

	bRunInMock_MApi_GFX_SetMirror = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_BLIT_YMIRROR;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetMirror);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_SMF_BLIT_YMIRROR */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 1; // <-
	sdrv.ge_render_alpha_cmp_enabled = 0;
	sdrv.ge_blit_bld_flags = true;
	sdrv.ge_src_blend = GFX_DFB_BLD_OP_SRCCOLOR;
	sdrv.ge_dst_blend = GFX_DFB_BLD_OP_DESTCOLOR;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;

	sdrv.color.a = 255;
	sdrv.color.r = 127;
	sdrv.color.g = 227;
	sdrv.color.b = 27;

    // clear the flags
    bRunInMock_MApi_GFX_SetDFBBldOP          = false;
    bRunInMock_MApi_GFX_SetDFBBldFlags       = false;
    bRunInMock_MApi_GFX_SetDFBBldConstColor  = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_SRC_BLEND; // <-
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldOP);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldFlags);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldConstColor);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_SRC_BLEND */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 1; // <-
	sdrv.ge_render_alpha_cmp_enabled = 0;
	sdrv.ge_blit_bld_flags = true;
	sdrv.ge_src_blend = GFX_DFB_BLD_OP_SRCCOLOR;
	sdrv.ge_dst_blend = GFX_DFB_BLD_OP_DESTCOLOR;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;

	sdrv.color.a = 255;
	sdrv.color.r = 127;
	sdrv.color.g = 227;
	sdrv.color.b = 27;

    // clear the flags
    bRunInMock_MApi_GFX_SetDFBBldOP          = false;
    bRunInMock_MApi_GFX_SetDFBBldFlags       = false;
    bRunInMock_MApi_GFX_SetDFBBldConstColor  = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DST_BLEND; // <-
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldOP);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldFlags);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldConstColor);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_DST_BLEND */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineBlitState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	sdrv.ge_src_colorkey_enabled = 0;
	sdrv.ge_blit_alpha_blend_enabled = 1; // <-
	sdrv.ge_render_alpha_cmp_enabled = 0;
	sdrv.ge_blit_bld_flags = true;
	sdrv.ge_src_blend = GFX_DFB_BLD_OP_SRCCOLOR;
	sdrv.ge_dst_blend = GFX_DFB_BLD_OP_DESTCOLOR;

	sdrv.src_ge_format = GFX_FMT_ARGB8888;

	sdrv.color.a = 255;
	sdrv.color.r = 127;
	sdrv.color.g = 227;
	sdrv.color.b = 27;

    // clear the flags
    bRunInMock_MApi_GFX_SetDFBBldOP          = false;
    bRunInMock_MApi_GFX_SetDFBBldFlags       = false;
    bRunInMock_MApi_GFX_SetDFBBldConstColor  = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_COLOR; // <-
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = &sdev;
    {
        /* Tested function call */
        mstarSetEngineBlitState(_modified, _sdrv, _sdev);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldOP);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldFlags);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDFBBldConstColor);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineBlitState_AlphaBlend_enable_SMF_COLOR */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_YUY2 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_YUY2()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_YUY2;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x23456789ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_YUY2 %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xff167600, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_YUY2 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_YVYU */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_YVYU()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_YVYU;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x23456789ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_YVYU %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xff00930b, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_YVYU */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_UYVY */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_UYVY()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_UYVY;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x23456789ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_UYVY %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xff242600, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_UYVY */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_ARGB1555 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB1555()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_ARGB1555;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_ARGB1555 %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0xff219431, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_ARGB1555 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_RGB16 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB16()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_RGB16;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_RGB16 %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x944931, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_RGB16 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_RGB555 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB555()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_RGB555;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_RGB555 %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x219431, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_RGB555 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_BGR555 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_BGR555()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_BGR555;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_BGR555 %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x319421, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_BGR555 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_ARGB2554 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB2554()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_ARGB2554;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_ARGB2554 %x\n", _return);
        //CPPTEST_ASSERT_UINTEGER_EQUAL( 0xaa4a2166, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_ARGB2554 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_ARGB4444 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB4444()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_ARGB4444;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_ARGB4444 %x\n", _return);
        //CPPTEST_ASSERT_UINTEGER_EQUAL( 0x99224466, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_ARGB4444 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_RGB444 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB444()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_RGB444;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_RGB4444 %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x224466, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_RGB444 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_RGB24 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB24()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_RGB24;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_RGB24 %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x579246, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_RGB24 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_RGB32 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_RGB32()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_RGB32;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_RGB32 %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x579246, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_RGB32 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_ARGB */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ARGB()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_ARGB;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_ARGB %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x13579246, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_ARGB */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_ABGR */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_ABGR()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_ABGR;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0x13579246ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = 0 ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_ABGR %x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x13469257, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_ABGR */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_LUT8 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT8()
{
	CorePalette pal;
	DFBColor  entries[256];
	pal.num_entries = 256;
	pal.entries = &entries;

	entries[5].a = 128;
	entries[5].r = 100;
	entries[5].g =  65;
	entries[5].b = 240;

    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_LUT8;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 5ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = &pal ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_LUT8 0x%x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x806441f0, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_LUT8 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_LUT4 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT4()
{
	CorePalette pal;
	DFBColor  entries[256];
	pal.num_entries = 256;
	pal.entries = &entries;

	entries[5].a = 128;
	entries[5].r = 100;
	entries[5].g =  65;
	entries[5].b = 240;

    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_LUT4;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 5ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = &pal ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_LUT8 0x%x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x806441f0, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_LUT4 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_LUT2 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT2()
{
	CorePalette pal;
	DFBColor  entries[256];
	pal.num_entries = 256;
	pal.entries = &entries;

	entries[0].a = 128;
	entries[0].r = 100;
	entries[0].g =  65;
	entries[0].b = 240;

    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    DFBSurfacePixelFormat _format  = DSPF_LUT2;
    /* Initializing argument 2 (pixel) */ 
    unsigned long _pixel  = 0ul;
    /* Initializing argument 3 (palette) */ 
    CorePalette * _palette  = &pal ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_LUT2 0x%x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x806441f0, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_LUT2 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_LUT1 */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUT1()
{
	CorePalette pal;
	DFBColor  entries[256];
	pal.num_entries = 256;
	pal.entries = &entries;

	entries[1].a = 128;
	entries[1].r = 100;
	entries[1].g =  65;
	entries[1].b = 240;

    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */
    DFBSurfacePixelFormat _format  = DSPF_LUT1;
    /* Initializing argument 2 (pixel) */
    unsigned long _pixel  = 1ul;
    /* Initializing argument 3 (palette) */
    CorePalette * _palette  = &pal ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_LUT1 0x%x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x806441f0, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_LUT1 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_pixel_to_color_DSPF_LUTX_pixel_out_of_range */
/* CPPTEST_TEST_CASE_CONTEXT unsigned long mstar_pixel_to_color(DFBSurfacePixelFormat, unsigned long, CorePalette *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_DSPF_LUTX_pixel_out_of_range()
{
	CorePalette pal;
	DFBColor  entries[256];
	pal.num_entries = 256;
	pal.entries = &entries;

	entries[1].a = 128;
	entries[1].r = 100;
	entries[1].g =  65;
	entries[1].b = 240;
	entries[5].a = 138;
	entries[5].r = 130;
	entries[5].g =  45;
	entries[5].b = 140;
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */
    DFBSurfacePixelFormat _format  = DSPF_LUT1;
    /* Initializing argument 2 (pixel) */
    unsigned long _pixel  = 5ul;
    /* Initializing argument 3 (palette) */
    CorePalette * _palette  = &pal ;
    {
        /* Tested function call */
        unsigned long _return  = mstar_pixel_to_color(_format, _pixel, _palette);
        //printf("TestSuite_mstar_c_d5a8378e_test_mstar_pixel_to_color_LUTx 0x%x\n", _return);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0x55555555, _return);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_UINTEGER(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("CorePalette * _palette ", ( _palette ));
        //CPPTEST_POST_CONDITION_PTR("DirectConfig * direct_config ", ( direct_config ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_pixel_to_color_DSPF_LUTX_pixel_out_of_range */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_DSDRAW_BLEND */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_BLEND()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;
	state.drawingflags = DSDRAW_BLEND; // <--

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */ 
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */ 
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */ 
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_BLIT | DFXL_FILLRECTANGLE;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_ALPHACHANNEL, sdrv.ge_draw_bld_flags);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_DSDRAW_BLEND */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_DSDRAW_SRC_PREMULTIPLY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_SRC_PREMULTIPLY()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;
	state.drawingflags = DSDRAW_SRC_PREMULTIPLY; // <--

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT | DFXL_FILLRECTANGLE;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_SRCPREMUL, sdrv.ge_draw_bld_flags);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_DSDRAW_SRC_PREMULTIPLY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_DSDRAW_DST_PREMULTIPLY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_DST_PREMULTIPLY()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;
	state.drawingflags = DSDRAW_DST_PREMULTIPLY; // <--

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT | DFXL_FILLRECTANGLE;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_DSTPREMUL, sdrv.ge_draw_bld_flags);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_DSDRAW_DST_PREMULTIPLY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_DSDRAW_DEMULTIPLY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_DEMULTIPLY()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;
	state.drawingflags = DSDRAW_DEMULTIPLY; // <--

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT | DFXL_FILLRECTANGLE;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_DEMULTIPLY, sdrv.ge_draw_bld_flags);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_DSDRAW_DEMULTIPLY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetState_DSDRAW_XOR */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetState(void *, void *, GraphicsDeviceFuncs *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetState_DSDRAW_XOR()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;

	CardState state;
	CoreSurface destination;
	CoreSurface source;

	destination.config.size.w = 512;
	destination.config.size.h = 512;
	source.config.size.w = 512;
	source.config.size.h = 512;

	CoreSurfaceBuffer src_buffer, dst_buffer;
	src_buffer.format = DSPF_ARGB1555;
	dst_buffer.format = DSPF_ARGB1555;

	sdrv.ge_last_render_op = MSTAR_GFX_RENDER_OP_DRAW;

	sdev.b_hwclip = true;

	state.dst.buffer = &dst_buffer;
	state.src.buffer = &src_buffer;

	state.cmp_mode = DSBF_ACMP_OP_NONE;
	state.accel  = DFXL_ALL;
	state.mod_hw = SMF_DESTINATION | SMF_ALPHA_CMP;
	state.destination = &destination;
	state.source      = &source;
	state.blit_nearestmode_enabled = 0;
	state.blit_xmirror_enabled = 0;
	state.blit_ymirror_enabled = 1;
	state.drawingflags = DSDRAW_XOR; // <--

    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */
    void * _drv  = &sdrv;
    /* Initializing argument 2 (dev) */
    void * _dev  = &sdev;
    /* Initializing argument 3 (funcs) */
    GraphicsDeviceFuncs * _funcs  = 0 ; // no use ....
    /* Initializing argument 4 (state) */
    CardState * _state  = &state ;
    /* Initializing argument 5 (accel) */
    DFBAccelerationMask _accel  = DFXL_BLIT | DFXL_FILLRECTANGLE;

    {
        /* Tested function call */
        mstarSetState(_drv, _dev, _funcs, _state, _accel);
        CPPTEST_ASSERT_UINTEGER_EQUAL( GFX_DFB_BLD_FLAG_XOR, sdrv.ge_draw_bld_flags);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetState_DSDRAW_XOR */

/* CPPTEST_TEST_CASE_BEGIN test_adjustcolorformat_src_ge_format_I8 */
/* CPPTEST_TEST_CASE_CONTEXT GFX_Buffer_Format adjustcolorformat(MSTARDriverData *) */
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I8()
{
	MSTARDriverData sdrv;
	sdrv.src_ge_format = GFX_FMT_I8;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    {
        /* Tested function call */
        GFX_Buffer_Format _return  = adjustcolorformat(_sdrv);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( GFX_FMT_ARGB8888, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test_adjustcolorformat_src_ge_format_I8 */

/* CPPTEST_TEST_CASE_BEGIN test_adjustcolorformat_src_ge_format_I4 */
/* CPPTEST_TEST_CASE_CONTEXT GFX_Buffer_Format adjustcolorformat(MSTARDriverData *) */
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I4()
{
	MSTARDriverData sdrv;
	sdrv.src_ge_format = GFX_FMT_I4;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    {
        /* Tested function call */
        GFX_Buffer_Format _return  = adjustcolorformat(_sdrv);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( GFX_FMT_ARGB8888, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test_adjustcolorformat_src_ge_format_I4 */

/* CPPTEST_TEST_CASE_BEGIN test_adjustcolorformat_src_ge_format_I2 */
/* CPPTEST_TEST_CASE_CONTEXT GFX_Buffer_Format adjustcolorformat(MSTARDriverData *) */
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I2()
{
	MSTARDriverData sdrv;
	sdrv.src_ge_format = GFX_FMT_I2;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    {
        /* Tested function call */
        GFX_Buffer_Format _return  = adjustcolorformat(_sdrv);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( GFX_FMT_ARGB8888, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test_adjustcolorformat_src_ge_format_I2 */

/* CPPTEST_TEST_CASE_BEGIN test_adjustcolorformat_src_ge_format_I1 */
/* CPPTEST_TEST_CASE_CONTEXT GFX_Buffer_Format adjustcolorformat(MSTARDriverData *) */
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_I1()
{
	MSTARDriverData sdrv;
	sdrv.src_ge_format = GFX_FMT_I1;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    {
        /* Tested function call */
        GFX_Buffer_Format _return  = adjustcolorformat(_sdrv);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( GFX_FMT_ARGB8888, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test_adjustcolorformat_src_ge_format_I1 */

/* CPPTEST_TEST_CASE_BEGIN test_adjustcolorformat_src_ge_format_ARGB1555 */
/* CPPTEST_TEST_CASE_CONTEXT GFX_Buffer_Format adjustcolorformat(MSTARDriverData *) */
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_src_ge_format_ARGB1555()
{
	MSTARDriverData sdrv;
	sdrv.src_ge_format = GFX_FMT_ARGB1555;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    {
        /* Tested function call */
        GFX_Buffer_Format _return  = adjustcolorformat(_sdrv);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( sdrv.src_ge_format, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test_adjustcolorformat_src_ge_format_ARGB1555 */

/* CPPTEST_TEST_CASE_BEGIN test_adjustcolorformat_sdrv_is_null */
/* CPPTEST_TEST_CASE_CONTEXT GFX_Buffer_Format adjustcolorformat(MSTARDriverData *) */
void TestSuite_mstar_c_d5a8378e_test_adjustcolorformat_sdrv_is_null()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (sdrv) */ 
    MSTARDriverData * _sdrv  = 0 ;
    {
        /* Tested function call */
        GFX_Buffer_Format _return  = adjustcolorformat(_sdrv);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( -1, ( _return ) )
    }
}
/* CPPTEST_TEST_CASE_END test_adjustcolorformat_sdrv_is_null */

/* CPPTEST_TEST_CASE_BEGIN test_mstarBlit_rectInfo */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarBlit(void *, void *, DFBRectangle *, int, int) */
void TestSuite_mstar_c_d5a8378e_test_mstarBlit_rectInfo()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_NOFX;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 0;
	rect.x = 1;
	rect.y = 2;
	rect.w = 88;
	rect.h = 99;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    /* Initializing argument 4 (dx) */ 
    int _dx  = 4;
    /* Initializing argument 5 (dy) */ 
    int _dy  = 5;
    {
        /* Tested function call */
        _Bool _return  = mstarBlit(_driver_data, _device_data, _rect, _dx, _dy);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));

    }
}
/* CPPTEST_TEST_CASE_END test_mstarBlit_rectInfo */

/* CPPTEST_TEST_CASE_BEGIN test_mstarDrawRectangle_rectInfo */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarDrawRectangle(void *, void *, DFBRectangle *) */
void TestSuite_mstar_c_d5a8378e_test_mstarDrawRectangle_rectInfo()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle rect;

	sdrv.dst_ge_format = GFX_FMT_YUV422;
	sdrv.dflags =  DSDRAW_NOFX;
	sdrv.color.a = 255;
	sdrv.color.r = 48;
	sdrv.color.g = 128;
	sdrv.color.b = 196;

	rect.x = 1;
	rect.y = 2;
	rect.w = 88;
	rect.h = 99;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev;
    /* Initializing argument 3 (rect) */ 
    DFBRectangle * _rect  = &rect ;
    {
        /* Tested function call */
        _Bool _return  = mstarDrawRectangle(_driver_data, _device_data, _rect);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _rect ", ( _rect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarDrawRectangle_rectInfo */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_no_mirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_no_mirror()
{

	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = &sdrv ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = &sdev ;
    /* Initializing argument 3 (srect) */ 
    DFBRectangle * _srect  = &srect ;
    /* Initializing argument 4 (drect) */ 
    DFBRectangle * _drect  = &drect ;
    /* Initializing argument 5 (scale_info) */ 
    const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
    {
        /* Tested function call */
        _Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
        CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
        //CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_no_mirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_xmirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_xmirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 0;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_xmirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_ymirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_ymirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 1;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_ymirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_xymirror */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_xymirror()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 1;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_xymirror */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_return_false */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_return_false()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 1;
	sdrv.ge_blit_ymirror = 1;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(FALSE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_return_false */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_return_true */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_return_true()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_return_true */


/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_even */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_even()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.dst_ge_format = GFX_FMT_YUV422;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_even */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_odd */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_odd()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;
	sdrv.src_ge_format = GFX_FMT_ARGB8888;
	sdrv.dst_ge_format = GFX_FMT_YUV422;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 127;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_dst_format_GFX_FMT_YUV422_odd */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_odd */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_odd()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;
	sdrv.src_ge_format = GFX_FMT_YUV422;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	srect.x = 5;
	srect.y = 10;
	srect.w = 127;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_odd */

/* CPPTEST_TEST_CASE_BEGIN test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_even */
/* CPPTEST_TEST_CASE_CONTEXT _Bool mstarStretchBlitEx(void *, void *, DFBRectangle *, DFBRectangle *, const DFBGFX_ScaleInfo *) */
void TestSuite_mstar_c_d5a8378e_test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_even()
{
	MSTARDriverData sdrv;
	MSTARDeviceData sdev;
	DFBRectangle srect;
	DFBRectangle drect;
	DFBGFX_ScaleInfo ScaleInfo;

	sdrv.ge_blit_xmirror = 0;
	sdrv.ge_blit_ymirror = 0;
	sdrv.src_ge_format = GFX_FMT_YUV422;
	sdrv.dst_ge_format = GFX_FMT_ARGB8888;

	srect.x = 5;
	srect.y = 10;
	srect.w = 128;
	srect.h = 128;

	drect.x = 100;
	drect.y = 100;
	drect.w = 128;
	drect.h = 128;

	ScaleInfo.u32DeltaX = 20;
	ScaleInfo.u32DeltaY = 20;
	ScaleInfo.u32InitDelatX = 10;
	ScaleInfo.u32InitDelatY = 10;
	ScaleInfo.u32GFXDrawFlag = 0;

	bRunInMock_MApi_GFX_BitBltEx = FALSE;

	/* Pre-condition initialization */
	/* Initializing argument 1 (driver_data) */
	void * _driver_data  = &sdrv ;
	/* Initializing argument 2 (device_data) */
	void * _device_data  = &sdev ;
	/* Initializing argument 3 (srect) */
	DFBRectangle * _srect  = &srect ;
	/* Initializing argument 4 (drect) */
	DFBRectangle * _drect  = &drect ;
	/* Initializing argument 5 (scale_info) */
	const DFBGFX_ScaleInfo * _scale_info  = &ScaleInfo ;
	{
		/* Tested function call */
		_Bool _return  = mstarStretchBlitEx(_driver_data, _device_data, _srect, _drect, _scale_info);
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( _return ));
		CPPTEST_ASSERT_BOOL_EQUAL(TRUE, ( bRunInMock_MApi_GFX_BitBltEx ));

		/* Post-condition check */
		//CPPTEST_POST_CONDITION_BOOL(" _return", ( _return ));
		//CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
		//CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _srect ", ( _srect ));
		//CPPTEST_POST_CONDITION_PTR("DFBRectangle * _drect ", ( _drect ));
	}
}
/* CPPTEST_TEST_CASE_END test_mstarStretchBlitEx_src_format_GFX_FMT_YUV422_even */

/* CPPTEST_TEST_CASE_BEGIN test_mstarGFXAddr_small_than_MIU1_OFFSET */
/* CPPTEST_TEST_CASE_CONTEXT u32 mstarGFXAddr(u32, u32, u32) */
void TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_small_than_MIU1_OFFSET()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (cpuPhysicalAddr) */ 
    uint32_t _cpuPhysicalAddr  = 0x1ffffu;
    /* Initializing argument 2 (mst_miu1_cpu_offset) */ 
    uint32_t _mst_miu1_cpu_offset  = 0x2ffffu;
    /* Initializing argument 3 (mst_miu1_hal_offset) */ 
    uint32_t _mst_miu1_hal_offset  = 0xffu;

    //FIXJASON
    extern DFBConfig ABC_DFBConfig;
    
	  dfb_config = &ABC_DFBConfig;
    dfb_config->mst_miu0_cpu_offset = 0xf;
    dfb_config->mst_miu0_hal_offset = 0xff;

    {
        /* Tested function call */
        u32 _return  = mstarGFXAddr(_cpuPhysicalAddr, _mst_miu1_cpu_offset, _mst_miu1_hal_offset);
        /* Post-value check */
        CPPTEST_ASSERT_UINTEGER_EQUAL(0x200ef, ( _return ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarGFXAddr_small_than_MIU1_OFFSET */

/* CPPTEST_TEST_CASE_BEGIN test_mstarGFXAddr_large_than_MIU1_OFFSET */
/* CPPTEST_TEST_CASE_CONTEXT u32 mstarGFXAddr(u32, u32, u32) */
void TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_large_than_MIU1_OFFSET()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (cpuPhysicalAddr) */ 
    uint32_t _cpuPhysicalAddr  = 0x1ffffu;
    /* Initializing argument 2 (mst_miu1_cpu_offset) */ 
    uint32_t _mst_miu1_cpu_offset  = 0xfu;
    /* Initializing argument 3 (mst_miu1_hal_offset) */ 
    uint32_t _mst_miu1_hal_offset  = 0xffu;
    {
        /* Tested function call */
        u32 _return  = mstarGFXAddr(_cpuPhysicalAddr, _mst_miu1_cpu_offset, _mst_miu1_hal_offset);
        /* Post-value check */
        CPPTEST_ASSERT_UINTEGER_EQUAL(0x200ef, ( _return ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarGFXAddr_large_than_MIU1_OFFSET */

/* CPPTEST_TEST_CASE_BEGIN test_mstarGFXAddr_equal_MIU1_OFFSET */
/* CPPTEST_TEST_CASE_CONTEXT u32 mstarGFXAddr(u32, u32, u32) */
void TestSuite_mstar_c_d5a8378e_test_mstarGFXAddr_equal_MIU1_OFFSET()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (cpuPhysicalAddr) */ 
    uint32_t _cpuPhysicalAddr  = 0x1ffffu;
    /* Initializing argument 2 (mst_miu1_cpu_offset) */ 
    uint32_t _mst_miu1_cpu_offset  = 0x1ffffu;
    /* Initializing argument 3 (mst_miu1_hal_offset) */ 
    uint32_t _mst_miu1_hal_offset  = 0xffu;
    {
        /* Tested function call */
        u32 _return  = mstarGFXAddr(_cpuPhysicalAddr, _mst_miu1_cpu_offset, _mst_miu1_hal_offset);
        /* Post-value check */
        CPPTEST_ASSERT_UINTEGER_EQUAL(0xff, ( _return ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarGFXAddr_equal_MIU1_OFFSET */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_SMF_DRAWING_FLAGS */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_SMF_DRAWING_FLAGS()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    bRunInMock_MApi_GFX_SetSrcColorKey = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_SRC_COLORKEY | SMF_DRAWING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;

    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetSrcColorKey);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_SMF_DRAWING_FLAGS */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_with_invalid_flags */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_with_invalid_flags()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    bRunInMock_MApi_GFX_SetSrcColorKey = false;

    StateModificationFlags _invalid_flags  = ~(SMF_DRAWING_FLAGS |
										  SMF_SRC_COLORKEY |
										  SMF_DST_COLORKEY |
										  SMF_SRC_BLEND |
										  SMF_DST_BLEND |
										  SMF_COLOR);

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_SRC_COLORKEY | _invalid_flags;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetSrcColorKey);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_SRC_COLORKEY_with_invalid_flags */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_SRC_COLORKEY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_COLORKEY()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    bRunInMock_MApi_GFX_SetSrcColorKey = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_SRC_COLORKEY;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetSrcColorKey);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_SRC_COLORKEY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_invalid_flags */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_invalid_flags()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;

    bRunInMock_MApi_GFX_SetSrcColorKey = false;
    bRunInMock_MApi_GFX_SetDstColorKey = false;
    bRunInMock_MApi_GFX_EnableDFBBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = ~(SMF_DRAWING_FLAGS |
										  SMF_SRC_COLORKEY |
										  SMF_DST_COLORKEY |
										  SMF_SRC_BLEND |
										  SMF_DST_BLEND |
										  SMF_COLOR);
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = 0 ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(false, bRunInMock_MApi_GFX_SetSrcColorKey ||
        		                         bRunInMock_MApi_GFX_SetDstColorKey ||
        		                         bRunInMock_MApi_GFX_EnableDFBBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_invalid_flags */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DST_COLORKEY_SMF_DRAWING_FLAGS */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY_SMF_DRAWING_FLAGS()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;

    bRunInMock_MApi_GFX_SetDstColorKey = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DST_COLORKEY | SMF_DRAWING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDstColorKey);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DST_COLORKEY_SMF_DRAWING_FLAGS */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DST_COLORKEY_with_invalid_flags */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY_with_invalid_flags()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;

    bRunInMock_MApi_GFX_SetDstColorKey = false;

    StateModificationFlags _invalid_flags  = ~(SMF_DRAWING_FLAGS |
										  SMF_SRC_COLORKEY |
										  SMF_DST_COLORKEY |
										  SMF_SRC_BLEND |
										  SMF_DST_BLEND |
										  SMF_COLOR);

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DST_COLORKEY | _invalid_flags;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDstColorKey);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DST_COLORKEY_with_invalid_flags */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DST_COLORKEY */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_COLORKEY()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;

    bRunInMock_MApi_GFX_SetDstColorKey = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DST_COLORKEY;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDstColorKey);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DST_COLORKEY */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Enabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Enabled()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = true;
    sdrv.ge_render_alpha_cmp_enabled = true;
    sdrv.color.a = 255;

    bEnableDFBBlending = true; // It will be reset
							   // when sdrv.ge_render_alpha_cmp_enabled == true

    /* Reset global variables */
    bRunInMock_MApi_GFX_EnableDFBBlending = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;
    bRunInMock_MApi_GFX_SetAlphaBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DRAWING_FLAGS | SMF_SRC_BLEND | SMF_DST_BLEND | SMF_COLOR;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableAlphaBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(false, bEnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetAlphaBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Enabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Enabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Enabled()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    sdrv.ge_render_alpha_cmp_enabled = true;

    bEnableDFBBlending = true;

    /* Reset global variables */
    bRunInMock_MApi_GFX_EnableDFBBlending = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;


    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DRAWING_FLAGS | SMF_SRC_BLEND | SMF_DST_BLEND | SMF_COLOR;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableAlphaBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(false, bEnableDFBBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Enabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Disabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Disabled()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    sdrv.ge_render_alpha_cmp_enabled = false;

    bEnableDFBBlending = true;

    /* Reset global variables */
    bRunInMock_MApi_GFX_EnableDFBBlending = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DRAWING_FLAGS | SMF_SRC_BLEND | SMF_DST_BLEND | SMF_COLOR;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableAlphaBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(false, bEnableDFBBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Disabled_AlphaCmp_Disabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_AlphaBlend_Disabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_AlphaBlend_Disabled()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    sdrv.ge_render_alpha_cmp_enabled = false;

    /* Reset global variables */
    bRunInMock_MApi_GFX_SetSrcColorKey = false;
    bRunInMock_MApi_GFX_SetDstColorKey = false;
    bRunInMock_MApi_GFX_EnableDFBBlending = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DRAWING_FLAGS;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetSrcColorKey);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDstColorKey);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableAlphaBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_AlphaBlend_Disabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Disabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Disabled()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = true;
    sdrv.ge_render_alpha_cmp_enabled = false;

    /* Reset global variables */
    bRunInMock_MApi_GFX_EnableDFBBlending = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DRAWING_FLAGS | SMF_SRC_BLEND | SMF_DST_BLEND | SMF_COLOR;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableAlphaBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DRAWING_FLAGS_SMF_SRC_BLEND_SMF_DST_BLEND_SMF_COLOR_AlphaBlend_Enabled_AlphaCmp_Disabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_SRC_BLEND_AlphaBlend_Disabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_SRC_BLEND_AlphaBlend_Disabled()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    sdrv.ge_render_alpha_cmp_enabled = false;

    /* Reset global variables */
    bRunInMock_MApi_GFX_SetSrcColorKey = false;
    bRunInMock_MApi_GFX_SetDstColorKey = false;
    bRunInMock_MApi_GFX_EnableDFBBlending = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_SRC_BLEND;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(false, bRunInMock_MApi_GFX_SetSrcColorKey);
        CPPTEST_ASSERT_BOOL_EQUAL(false, bRunInMock_MApi_GFX_SetDstColorKey);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableAlphaBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_SRC_BLEND_AlphaBlend_Disabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_DST_BLEND_AlphaBlend_Disabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_DST_BLEND_AlphaBlend_Disabled()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    sdrv.ge_render_alpha_cmp_enabled = false;

    /* Reset global variables */
    bRunInMock_MApi_GFX_SetSrcColorKey = false;
    bRunInMock_MApi_GFX_SetDstColorKey = false;
    bRunInMock_MApi_GFX_EnableDFBBlending = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_DST_BLEND;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(false, bRunInMock_MApi_GFX_SetSrcColorKey);
        CPPTEST_ASSERT_BOOL_EQUAL(false, bRunInMock_MApi_GFX_SetDstColorKey);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableAlphaBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_DST_BLEND_AlphaBlend_Disabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineDrawState_SMF_COLOR_AlphaBlend_Disabled */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineDrawState(StateModificationFlags, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineDrawState_SMF_COLOR_AlphaBlend_Disabled()
{
    MSTARDriverData sdrv;
    sdrv.ge_draw_alpha_blend_enabled = false;
    sdrv.ge_render_alpha_cmp_enabled = false;

    /* Reset global variables */
    bRunInMock_MApi_GFX_SetSrcColorKey = false;
    bRunInMock_MApi_GFX_SetDstColorKey = false;
    bRunInMock_MApi_GFX_EnableDFBBlending = false;
    bRunInMock_MApi_GFX_EnableAlphaBlending = false;

    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = SMF_COLOR;
    /* Initializing argument 2 (sdrv) */ 
    MSTARDriverData * _sdrv  = &sdrv ;
    /* Initializing argument 3 (sdev) */ 
    MSTARDeviceData * _sdev  = 0 ;
    {
        /* Tested function call */
        mstarSetEngineDrawState(_modified, _sdrv, _sdev);

        CPPTEST_ASSERT_BOOL_EQUAL(false, bRunInMock_MApi_GFX_SetSrcColorKey);
        CPPTEST_ASSERT_BOOL_EQUAL(false, bRunInMock_MApi_GFX_SetDstColorKey);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableDFBBlending);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableAlphaBlending);
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineDrawState_SMF_COLOR_AlphaBlend_Disabled */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_dfb_OSD_RESOURCE_SetFBFmt_default_case */
/* CPPTEST_TEST_CASE_CONTEXT MS_U32 mstar_dfb_OSD_RESOURCE_SetFBFmt(MS_U16, MS_U32, MS_U16) */
void TestSuite_mstar_c_d5a8378e_test_mstar_dfb_OSD_RESOURCE_SetFBFmt_default_case()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (pitch) */ 
    MS_U16 _pitch  = 0u;
    /* Initializing argument 2 (addr) */ 
    MS_U32 _addr  = 1ul;
    /* Initializing argument 3 (fmt) */ 
    MS_U16 _fmt  = 2u;
    {
        /* Tested function call */
        MS_U32 _return  = mstar_dfb_OSD_RESOURCE_SetFBFmt(_pitch, _addr, _fmt);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL(0x1, ( _return ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_dfb_OSD_RESOURCE_SetFBFmt_default_case */

/* CPPTEST_TEST_CASE_BEGIN test_driver_close_driver_default */
/* CPPTEST_TEST_CASE_CONTEXT void driver_close_driver(CoreGraphicsDevice *, void *) */
void TestSuite_mstar_c_d5a8378e_test_driver_close_driver_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (device) */ 
    CoreGraphicsDevice * _device  = 0 ;
    /* Initializing argument 2 (driver_data) */
    //void * _driver_data  = 0 ;
    MSTARDriverData test;
    test.num_inputs = 123;

    /* Initializing global variable MSTAR_G2_Driver */ 
    {
         MSTAR_G2_Driver.age  = 0u;
         MSTAR_G2_Driver.enabled  = false;
         MSTAR_G2_Driver.registered  = false;
         MSTAR_G2_Driver.name  = 0 ;
         MSTAR_G2_Driver.description  = 0 ;
         MSTAR_G2_Driver.name_len  = 0;
    }

    bRunInMock_mstarAllSurfInfo = false;

    //stub D_DEBUG_AT()
	#define D_DEBUG_AT(d,x...)         do {} while (0)

    {
        /* Tested function call */
        driver_close_driver(_device, &test);

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarAllSurfInfo);
    }
}
/* CPPTEST_TEST_CASE_END test_driver_close_driver_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarCheckState_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstarCheckState(void *, void *, CardState *, DFBAccelerationMask) */
void TestSuite_mstar_c_d5a8378e_test_mstarCheckState_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (drv) */ 
	void * _drv  = 0 ;
	MSTARDriverData sdrv;
	_drv = &sdrv;  //set physical body
    /* Initializing argument 2 (dev) */ 
    void * _dev  = 0 ;
    /* Initializing argument 3 (state) */ 
    //CardState * _state  = 0 ;
    CardState  state ;
    CardState * _state  = &state ;
    _state->fusion_id = 1;                    //init
    _state->flags = 0x00000002;               //init
    _state->modified = 0x00000080;            //init
    _state->mod_hw = 0x00000100;              //init
    _state->drawingflags = 0x00000040;        //init
    _state->blittingflags = 0x00000020;       //init
    _state->blit_nearestmode_enabled = true;  //init
    _state->blit_xmirror_enabled = true;      //init
    _state->blit_ymirror_enabled = true;      //init
    _state->src_colorkey = 2;               //init
    _state->dst_colorkey = 3;               //init
    _state->num_translation = 456;            //init

    //printf("1: (0x%x) (0x%x) (0x%x)\n", &(_state->dst_blend), &(_state->mstar_patchBlendParam), &(_state->cmp_mode));
    //printf("1: (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("1: stacksize(%d) state(%p)->src_colorkey:%d, (0x%x)\n", sizeof(state), _state, _state->src_colorkey, &(_state->src_colorkey));
    /* Initializing argument 4 (accel) */ 
    //DFBAccelerationMask _accel  = DFXL_NONE ;
    DFBAccelerationMask _accel  = DFXL_DRAWRECTANGLE ;  //0x00000002

    bRunInMock_mstarCheckStateInternalInfo = false;  //before

    {
        /* Tested function call */
        mstarCheckState(_drv, _dev, _state, _accel);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarCheckStateInternalInfo);
        //CPPTEST_ASSERT_UINTEGER_EQUAL( 100, _state->magic );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarCheckState_default */

/* CPPTEST_TEST_CASE_BEGIN test_driver_close_device_default */
/* CPPTEST_TEST_CASE_CONTEXT void driver_close_device(CoreGraphicsDevice *, void *, void *) */
void TestSuite_mstar_c_d5a8378e_test_driver_close_device_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (device) */ 
    CoreGraphicsDevice * _device  = 0 ;
    /* Initializing argument 2 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 3 (device_data) */ 
    //void * _device_data  = 0 ;
	MSTARDeviceData test;
	FusionSkirmish* pFusionSkirmish;
	pFusionSkirmish = &(test.beu_lock);
	pFusionSkirmish->single.count = 111;

    /* Initializing global variable MSTAR_G2_Driver */ 
    {
         MSTAR_G2_Driver.age  = 0u;
         MSTAR_G2_Driver.enabled  = false;
         MSTAR_G2_Driver.registered  = false;
         MSTAR_G2_Driver.name  = 0 ;
         MSTAR_G2_Driver.description  = 0 ;
         MSTAR_G2_Driver.name_len  = 0;
    }

    bRunInMock_fusion_skirmish_destroyInfo = false;  //before

    //stub D_DEBUG_AT()
    #define D_DEBUG_AT(d,x...)         do {} while (0)

    {
        /* Tested function call */
        driver_close_device(_device, _driver_data, &test);  //FIXJASON, enable later
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("CoreGraphicsDevice * _device ", ( _device ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_G2_Driver.age", ( MSTAR_G2_Driver.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_G2_Driver.enabled", ( MSTAR_G2_Driver.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_G2_Driver.registered", ( MSTAR_G2_Driver.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_G2_Driver.name", ( MSTAR_G2_Driver.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_G2_Driver.description", ( MSTAR_G2_Driver.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_G2_Driver.name_len", ( MSTAR_G2_Driver.name_len ));
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_destroyInfo);
    }
}
/* CPPTEST_TEST_CASE_END test_driver_close_device_default */

/* CPPTEST_TEST_CASE_BEGIN test_dumpFormat_default */
/* CPPTEST_TEST_CASE_CONTEXT void dumpFormat(unsigned int) */
void TestSuite_mstar_c_d5a8378e_test_dumpFormat_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (format) */ 
    //unsigned _format  = 0u;
	unsigned _format;

	_format = DSPF_UNKNOWN;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_UNKNOWN, _format );
    }
    _format = DSPF_ARGB1555;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_ARGB1555, _format );
    }
    _format = DSPF_RGB16;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_RGB16, _format );
    }
    _format = DSPF_RGB24;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_RGB24, _format );
    }
    _format = DSPF_RGB32;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_RGB32, _format );
    }
    _format = DSPF_ARGB;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_ARGB, _format );
    }
    _format = DSPF_ABGR;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_ABGR, _format );
    }
    _format = DSPF_A8;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_A8, _format );
    }
    _format = DSPF_YUY2;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_YUY2, _format );
    }
    _format = DSPF_YVYU;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_YVYU, _format );
    }
    _format = DSPF_RGB332;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_RGB332, _format );
    }
    _format = DSPF_UYVY;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_UYVY, _format );
    }
    _format = DSPF_I420;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_I420, _format );
    }
    _format = DSPF_YV12;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_YV12, _format );
    }
    _format = DSPF_LUT8;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_LUT8, _format );
    }
    _format = DSPF_ALUT44;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_ALUT44, _format );
    }
    _format = DSPF_AiRGB;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_AiRGB, _format );
    }
    _format = DSPF_A1;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_A1, _format );
    }
    _format = DSPF_NV12;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_NV12, _format );
    }
    _format = DSPF_NV16;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_NV16, _format );
    }
    _format = DSPF_ARGB2554;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_ARGB2554, _format );
    }
    _format = DSPF_ARGB4444;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_ARGB4444, _format );
    }
    _format = DSPF_NV21;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_NV21, _format );
    }
    _format = DSPF_AYUV;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_AYUV, _format );
    }
    _format = DSPF_A4;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_A4, _format );
    }
    _format = DSPF_ARGB1666;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_ARGB1666, _format );
    }
    _format = DSPF_ARGB6666;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_ARGB6666, _format );
    }
    _format = DSPF_RGB18;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_RGB18, _format );
    }
    _format = DSPF_LUT2;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_LUT2, _format );
    }
    _format = DSPF_LUT1;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_LUT1, _format );
    }
    _format = DSPF_LUT4;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_LUT4, _format );
    }
    _format = DSPF_RGB444;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_RGB444, _format );
    }
    _format = DSPF_RGB555;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_RGB555, _format );
    }
    _format = DSPF_BGR555;
    {
        /* Tested function call */
        dumpFormat(_format);
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_BGR555, _format );
    }
}
/* CPPTEST_TEST_CASE_END test_dumpFormat_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarGetSerial_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstarGetSerial(void *, void *, CoreGraphicsSerial *) */
void TestSuite_mstar_c_d5a8378e_test_mstarGetSerial_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = 0 ;
    /* Initializing argument 3 (serial) */ 
    //CoreGraphicsSerial * _serial  = 0 ;
    CoreGraphicsSerial test;
    test.generation = 100;  //init
    test.serial = (unsigned int)200;  //init

    bRunInMock_MApi_GFX_GetNextTAGIDInfo = false;  //before

    {
        /* Tested function call */
        mstarGetSerial(_driver_data, _device_data, &test);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_GetNextTAGIDInfo);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0, test.generation );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 222, test.serial );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarGetSerial_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarWaitSerial_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstarWaitSerial(void *, void *, const CoreGraphicsSerial *) */
void TestSuite_mstar_c_d5a8378e_test_mstarWaitSerial_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = 0 ;
    /* Initializing argument 3 (serial) */ 
    //const CoreGraphicsSerial * _serial  = 0 ;
    //const CoreGraphicsSerial  _a_serial;
    CoreGraphicsSerial  _a_serial;
    _a_serial.serial = 100;  //const cannot initialize.

    bRunInMock_MApi_GFX_WaitForTAGIDInfo = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstarWaitSerial(_driver_data, _device_data, &_a_serial);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_WaitForTAGIDInfo);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test_mstarWaitSerial_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_sc_get_h_cap_start_default */
/* CPPTEST_TEST_CASE_CONTEXT MS_U16 mstar_sc_get_h_cap_start(void) */
void TestSuite_mstar_c_d5a8378e_test_mstar_sc_get_h_cap_start_default()
{
    /* Pre-condition initialization */
    {
        /* Tested function call */
        MS_U16 _return  = mstar_sc_get_h_cap_start();
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 100, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_sc_get_h_cap_start_default */

/* CPPTEST_TEST_CASE_BEGIN mstar_sc_is_interlace_OK */
void TestSuite_mstar_c_d5a8378e_mstar_sc_is_interlace_OK()
{
	/* Pre-condition initialization */

	bRunInMock_MApi_XC_GetStatus_OK_Info = false;  //before

	{
	    /* Tested function call */
		MS_BOOL _return = mstar_sc_is_interlace();
	    /* Post-condition check */
	    CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_XC_GetStatus_OK_Info);
	    CPPTEST_ASSERT_UINTEGER_EQUAL(2, _return );
	}
}
///* CPPTEST_TEST_CASE_END mstar_sc_is_interlace_OK */
//

/* CPPTEST_TEST_CASE_BEGIN test_mstar_sc_get_ip0_h_cap_start_default */
/* CPPTEST_TEST_CASE_CONTEXT MS_U16 mstar_sc_get_ip0_h_cap_start(void) */
void TestSuite_mstar_c_d5a8378e_test_mstar_sc_get_ip0_h_cap_start_default()
{
    /* Pre-condition initialization */
    {
        /* Tested function call */
        MS_U16 _return  = mstar_sc_get_ip0_h_cap_start();
        /* Post-condition check */
        CPPTEST_ASSERT_UINTEGER_EQUAL( 200, _return );
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_sc_get_ip0_h_cap_start_default */

/* CPPTEST_TEST_CASE_BEGIN TestSuite_mstar_c_d5a8378e_test_driver_probe_default */
void TestSuite_mstar_c_d5a8378e_TestSuite_mstar_c_d5a8378e_test_driver_probe_default()
{
	//CoreGraphicsDevice _a_device;  //FIXJASON, build faile, strange....
	//_a_device.magic = 2;  //init
	//_a_device.caps.flags = CCF_READSYSMEM;  //init

	CoreGraphicsDevice* _p_device;
	int _return;

	//stub D_DEBUG_AT()
	#define D_DEBUG_AT(d,x...)         do {} while (0)

	_return = driver_probe( _p_device );

	CPPTEST_ASSERT_UINTEGER_EQUAL( 1, _return );
}
/* CPPTEST_TEST_CASE_END TestSuite_mstar_c_d5a8378e_test_driver_probe_default */

/* CPPTEST_TEST_CASE_BEGIN test_driver_get_info_default */
/* CPPTEST_TEST_CASE_CONTEXT void driver_get_info(CoreGraphicsDevice *, GraphicsDriverInfo *) */
void TestSuite_mstar_c_d5a8378e_test_driver_get_info_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (device) */ 
    CoreGraphicsDevice * _device  = 0 ;
    /* Initializing argument 2 (info) */ 
    //GraphicsDriverInfo * _info  = 0 ;
    GraphicsDriverInfo _a_info;
    int size_driver = sizeof(MSTARDriverData);
    int size_device = sizeof(MSTARDeviceData);

    //printf("size_driver(%d) size_device(%d)\n", size_driver, size_device);

    /* Initializing global variable MSTAR_G2_Driver */ 
    {
         MSTAR_G2_Driver.age  = 0u;
         MSTAR_G2_Driver.enabled  = false;
         MSTAR_G2_Driver.registered  = false;
         MSTAR_G2_Driver.name  = 0 ;
         MSTAR_G2_Driver.description  = 0 ;
         MSTAR_G2_Driver.name_len  = 0;
    }

    //stub D_DEBUG_AT()
    #define D_DEBUG_AT(d,x...)         do {} while (0)

    {
        /* Tested function call */
        driver_get_info(_device, &_a_info);

        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("CoreGraphicsDevice * _device ", ( _device ));
        //CPPTEST_POST_CONDITION_PTR("GraphicsDriverInfo * _info ", ( _info ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_G2_Driver.age", ( MSTAR_G2_Driver.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_G2_Driver.enabled", ( MSTAR_G2_Driver.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_G2_Driver.registered", ( MSTAR_G2_Driver.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_G2_Driver.name", ( MSTAR_G2_Driver.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_G2_Driver.description", ( MSTAR_G2_Driver.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_G2_Driver.name_len", ( MSTAR_G2_Driver.name_len ));

        //CPPTEST_ASSERT_MEM_BUFFER_EQUAL("Mstar G2 Driver", ( _a_info.name ), DFB_GRAPHICS_DRIVER_INFO_NAME_LENGTH);
        CPPTEST_ASSERT_MEM_BUFFER_EQUAL("\115\163\164\141\162\040\107\062\040\104\162\151\166\145\162\000", ( _a_info.name ), 16);
        //CPPTEST_ASSERT_MEM_BUFFER_EQUAL("Mstar corp.", ( _a_info.vendor ), DFB_GRAPHICS_DRIVER_INFO_VENDOR_LENGTH);
        CPPTEST_ASSERT_MEM_BUFFER_EQUAL("\115\163\164\141\162\040\143\157\162\160\056", ( _a_info.vendor ), 11);
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_info.version.major );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 1, _a_info.version.minor );
        //CPPTEST_ASSERT_UINTEGER_EQUAL( 224, _a_info.driver_data_size );
        //CPPTEST_ASSERT_UINTEGER_EQUAL( /*896*/ 924, _a_info.driver_data_size );
        //CPPTEST_ASSERT_UINTEGER_EQUAL( 1936, _a_info.device_data_size );
        //CPPTEST_ASSERT_UINTEGER_EQUAL( /*1360*/ 1420, _a_info.device_data_size );
    }
}
/* CPPTEST_TEST_CASE_END test_driver_get_info_default */

/* CPPTEST_TEST_CASE_BEGIN test__mstarCheckStateInternal_matrix_not_support */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarCheckStateInternal(CardState *, DFBAccelerationMask, DFBAccelerationMask *, DFBSurfaceBlittingFlags) */
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_DestSizeErr()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (state) */ 
	CoreSurface  _a_destination;   /* destination surface */
	CardState  _a_state;
	_a_state.destination = &_a_destination;  //set physical body
	_a_state.render_options = DSRO_MATRIX;  //init
	_a_state.matrix[1] = 1;  //init
	_a_state.destination->config.size.w = 4097;  //MSTAR_HARDWARE_LIMITATION_WIDTH+1;  //init, boundary err.
	_a_state.destination->config.size.h = 4098;  //MSTAR_HARDWARE_LIMITATION_HEIGHT+1;  //init, boundary err.

    /* Initializing argument 2 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_NONE;
    /* Initializing argument 3 (pAccelRdy) */ 
    //DFBAccelerationMask * _pAccelRdy  = 0 ;
    DFBAccelerationMask  _a_pAccelRdy  = 0 ;
    /* Initializing argument 4 (supported_blittingflags) */ 
    DFBSurfaceBlittingFlags _supported_blittingflags  = DSBLIT_NOFX;

    {
        /* Tested function call */
        _mstarCheckStateInternal(&_a_state, _accel, &_a_pAccelRdy, _supported_blittingflags);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("CardState * _state ", ( _state ));
        //CPPTEST_POST_CONDITION_PTR("DFBAccelerationMask * _pAccelRdy ", ( _pAccelRdy ));

        //CPPTEST_ASSERT_UINTEGER_EQUAL( 4097, _a_state.destination->config.size.w );
        //CPPTEST_ASSERT_UINTEGER_EQUAL( 4098, _a_state.destination->config.size.h );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_pAccelRdy );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarCheckStateInternal_matrix_not_support */

/* CPPTEST_TEST_CASE_BEGIN test__mstarCheckStateInternal_Dest_Supported_byGE */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarCheckStateInternal(CardState *, DFBAccelerationMask, DFBAccelerationMask *, DFBSurfaceBlittingFlags) */
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_Dest_Supported_byGE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (state) */ 
	CoreSurface  _a_destination;   /* destination surface */
	CardState  _a_state;
	_a_state.destination = &_a_destination;  //set physical body
	_a_state.destination->config.size.w = 100;  //init
	_a_state.destination->config.size.h = 101;  //init
	_a_state.destination->config.format = DSPF_RGB16;  //init
    /* Initializing argument 2 (accel) */ 
    DFBAccelerationMask _accel  = DFXL_NONE;
    /* Initializing argument 3 (pAccelRdy) */ 
    //DFBAccelerationMask * _pAccelRdy  = 0 ;
    DFBAccelerationMask  _a_pAccelRdy  = 0 ;
    /* Initializing argument 4 (supported_blittingflags) */ 
    DFBSurfaceBlittingFlags _supported_blittingflags  = DSBLIT_NOFX;

    {
        /* Tested function call */
        _mstarCheckStateInternal(&_a_state, _accel, &_a_pAccelRdy, _supported_blittingflags);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("CardState * _state ", ( _state ));
        //CPPTEST_POST_CONDITION_PTR("DFBAccelerationMask * _pAccelRdy ", ( _pAccelRdy ));

        CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_RGB16, _a_state.destination->config.format );
        CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_pAccelRdy );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarCheckStateInternal_Dest_Supported_byGE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarCheckStateInternal_Dest_Not_Supported_byGE */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarCheckStateInternal(CardState *, DFBAccelerationMask, DFBAccelerationMask *, DFBSurfaceBlittingFlags) */
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_Dest_Not_Supported_byGE()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (state) */
	CoreSurface  _a_destination;   /* destination surface */
	CoreSurface  _a_source;        /* source surface */
	CardState  _a_state;
	_a_state.destination = &_a_destination;  //set physical body
	_a_state.source = &_a_source;  //set physical body
	_a_state.destination->config.size.w = 100;  //init
	_a_state.destination->config.size.h = 101;  //init
	_a_state.destination->config.format = DSPF_A8;  //init
	_a_state.source->config.format = DSPF_A8;  //init
	/* Initializing argument 2 (accel) */
	DFBAccelerationMask _accel  = DFXL_NONE;
	//DFBAccelerationMask _accel  = 0xFFFF0000;
	//printf("FIXJASON _accel(%x)\n", _accel);
	/* Initializing argument 3 (pAccelRdy) */
	//DFBAccelerationMask * _pAccelRdy  = 0 ;
	DFBAccelerationMask  _a_pAccelRdy  = 0 ;
	/* Initializing argument 4 (supported_blittingflags) */
	DFBSurfaceBlittingFlags _supported_blittingflags  = DSBLIT_NOFX;

	{
	    /* Tested function call */
	    _mstarCheckStateInternal(&_a_state, _accel, &_a_pAccelRdy, _supported_blittingflags);
	    /* Post-condition check */
	    //CPPTEST_POST_CONDITION_PTR("CardState * _state ", ( _state ));
	    //CPPTEST_POST_CONDITION_PTR("DFBAccelerationMask * _pAccelRdy ", ( _pAccelRdy ));

	    CPPTEST_ASSERT_UINTEGER_EQUAL( DSPF_A8, _a_state.destination->config.format );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_pAccelRdy );
	}
}
/* CPPTEST_TEST_CASE_END test__mstarCheckStateInternal_Dest_Not_Supported_byGE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarCheckStateInternal_SourceSizeErr */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarCheckStateInternal(CardState *, DFBAccelerationMask, DFBAccelerationMask *, DFBSurfaceBlittingFlags) */
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_SourceSizeErr()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (state) */
	CoreSurface  _a_destination;   /* destination surface */
	CoreSurface  _a_source;        /* source surface */
	CardState  _a_state;
	_a_state.destination = &_a_destination;  //set physical body
	_a_state.source = &_a_source;  //set physical body
	_a_state.destination->config.size.w = 100;  //init
	_a_state.destination->config.size.h = 101;  //init
	_a_state.destination->config.format = DSPF_ARGB;  //init
	//_a_state.source->config.format = DSPF_A8;  //init
	/* Initializing argument 2 (accel) */
	DFBAccelerationMask _accel  = DFXL_TEXTRIANGLES;
	//DFBAccelerationMask _accel  = 0xFFFF0000;
	//printf("FIXJASON _accel(%x)\n", _accel);
	_a_state.source->config.size.w = 5000;  //init
	_a_state.source->config.size.h = 5001;  //init
	/* Initializing argument 3 (pAccelRdy) */
	//DFBAccelerationMask * _pAccelRdy  = 0 ;
	DFBAccelerationMask  _a_pAccelRdy  = 0;
	/* Initializing argument 4 (supported_blittingflags) */
	DFBSurfaceBlittingFlags _supported_blittingflags  = DSBLIT_NOFX;

	{
	    /* Tested function call */
	    _mstarCheckStateInternal(&_a_state, _accel, &_a_pAccelRdy, _supported_blittingflags);
	    /* Post-condition check */
	    //CPPTEST_POST_CONDITION_PTR("CardState * _state ", ( _state ));
	    //CPPTEST_POST_CONDITION_PTR("DFBAccelerationMask * _pAccelRdy ", ( _pAccelRdy ));

	    //CPPTEST_ASSERT_UINTEGER_EQUAL( 5000, _a_state.source->config.size.w );
	    //CPPTEST_ASSERT_UINTEGER_EQUAL( 5001, _a_state.source->config.size.h );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_pAccelRdy );
	}
}
/* CPPTEST_TEST_CASE_END test__mstarCheckStateInternal_SourceSizeErr */

/* CPPTEST_TEST_CASE_BEGIN test__mstarCheckStateInternal_AccelRdy_Change_1 */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarCheckStateInternal(CardState *, DFBAccelerationMask, DFBAccelerationMask *, DFBSurfaceBlittingFlags) */
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_AccelRdy_Change()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (state) */
	CoreSurface  _a_destination;   /* destination surface */
	CoreSurface  _a_source;        /* source surface */
	CardState  _a_state;
	_a_state.destination = &_a_destination;  //set physical body
	_a_state.source = &_a_source;  //set physical body
	_a_state.destination->config.size.w = 100;  //init
	_a_state.destination->config.size.h = 101;  //init
	_a_state.destination->config.format = DSPF_ARGB;  //init
	//_a_state.source->config.format = DSPF_A8;  //init
	/* Initializing argument 2 (accel) */
	DFBAccelerationMask _accel  = DFXL_TEXTRIANGLES;
	//DFBAccelerationMask _accel  = 0xFFFF0000;
	//printf("FIXJASON _accel(%x)\n", _accel);
	_a_state.source->config.size.w = 200;  //init
	_a_state.source->config.size.h = 201;  //init
	_a_state.source->config.format = DSPF_YVYU;  //init
	/* Initializing argument 3 (pAccelRdy) */
	//DFBAccelerationMask * _pAccelRdy  = 0 ;
	DFBAccelerationMask  _a_pAccelRdy  = 1 ;
	/* Initializing argument 4 (supported_blittingflags) */
	DFBSurfaceBlittingFlags _supported_blittingflags  = DSBLIT_NOFX;

	bRunInMock_mstarCheckBlitOptionInfo = false;  //before

	{
	    /* Tested function call */
	    _mstarCheckStateInternal(&_a_state, _accel, &_a_pAccelRdy, _supported_blittingflags);
	    /* Post-condition check */
	    //CPPTEST_POST_CONDITION_PTR("CardState * _state ", ( _state ));
	    //CPPTEST_POST_CONDITION_PTR("DFBAccelerationMask * _pAccelRdy ", ( _pAccelRdy ));

	    CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstarCheckBlitOptionInfo);
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 200, _a_state.source->config.size.w );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 201, _a_state.source->config.size.h );
	    CPPTEST_ASSERT_UINTEGER_EQUAL( 1, _a_pAccelRdy );
	}
}
/* CPPTEST_TEST_CASE_END test__mstarCheckStateInternal_AccelRdy_Change_1 */

//FIXJASON, declare in xxx.c, copy the definition to avoid non-definition. For TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default() compile.
typedef struct {
     int                      magic;
     unsigned int             videoram_length;
     unsigned int             auxram_length;
     unsigned int             auxram_offset;
     char                    *module_name;
     GraphicsDriverInfo       driver_info;
     GraphicsDeviceInfo       device_info;
     void                    *device_data;
     FusionProperty           lock;
     GraphicsDeviceLockFlags  lock_flags;
     CardState               *state;
     FusionID                 holder;
} DFBGraphicsCoreShared;

struct __DFB_DFBGraphicsCore {
     int                        magic;
     CoreDFB                   *core;
     DFBGraphicsCoreShared     *shared;
     DirectModuleEntry         *module;
     const GraphicsDriverFuncs *driver_funcs;
     void                      *driver_data;
     void                      *device_data;
     CardCapabilities           caps;
     CardLimitations            limits;
     GraphicsDeviceFuncs        funcs;
};

/* CPPTEST_TEST_CASE_BEGIN test_mstar_init_driver_default_1 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_init_driver(CoreGraphicsDevice *, void *, void *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_init_driver_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (device) */ 
    //CoreGraphicsDevice * _device  = 0 ;
	CoreGraphicsDevice _a_device;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_sdrv;
	/* Initializing argument 3 (device_data) */
    //void * _device_data  = 0 ;
    MSTARDeviceData _a_sdev;

    /* Initializing global variable MSTAR_G2_Driver */ 
    {
         MSTAR_G2_Driver.age  = 0u;
         MSTAR_G2_Driver.enabled  = false;
         MSTAR_G2_Driver.registered  = false;
         MSTAR_G2_Driver.name  = 0 ;
         MSTAR_G2_Driver.description  = 0 ;
         MSTAR_G2_Driver.name_len  = 0;
    }

    //stub D_DEBUG_AT()
    #define D_DEBUG_AT(d,x...)         do {} while (0)

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

    dfb_config->mst_gop_counts = 10;

    bRunInMock_MsOS_InitInfo                           = false;  //before
    bRunInMock_MDrv_SEM_InitInfo                       = false;  //before
    bRunInMock_MApi_PNL_IOMapBaseInitInfo              = false;  //before
    bRunInMock_MDrv_VE_SetIOMapBaseInfo                = false;  //before
    bRunInMock_MApi_XC_InitInfo                        = false;  //before
    bRunInMock_mstar_sc_get_h_cap_startInfo            = false;  //before
    bRunInMock_MApi_GOP_RegisterFBFmtCBInfo            = false;  //before
    bRunInMock_MApi_GOP_RegisterXCIsInterlaceCBInfo    = false;  //before
    bRunInMock_MApi_GOP_RegisterXCGetCapHStartCBInfo   = false;  //before
    bRunInMock_MApi_GOP_RegisterXCReduceBWForOSDCBInfo = false;  //before
    bRunInMock_MApi_GOP_GWIN_GetMaxGOPNumInfo          = false;  //before
    bRunInMock_MApi_GOP_InitByGOPInfo                  = false;  //before
    bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo            = false;  //before
    bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo            = false;  //before
    bRunInMock_MApi_GFX_InitInfo                       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SetMuxInfo                = false;  //before
    bRunInMock_MApi_GFX_QueryDFBBldCapsInfo            = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = mstar_init_driver( &_a_device, (void*)(&_a_sdrv), (void*)(&_a_sdev) );
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreGraphicsDevice * _device ", ( _device ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_UINTEGER(" MSTAR_G2_Driver.age", ( MSTAR_G2_Driver.age ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_G2_Driver.enabled", ( MSTAR_G2_Driver.enabled ));
        //CPPTEST_POST_CONDITION_BOOL(" MSTAR_G2_Driver.registered", ( MSTAR_G2_Driver.registered ));
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_G2_Driver.name", ( MSTAR_G2_Driver.name ), 256);
        //CPPTEST_POST_CONDITION_CSTR_N("const char * MSTAR_G2_Driver.description", ( MSTAR_G2_Driver.description ), 256);
        //CPPTEST_POST_CONDITION_INTEGER(" MSTAR_G2_Driver.name_len", ( MSTAR_G2_Driver.name_len ));

        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MsOS_InitInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MDrv_SEM_InitInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_PNL_IOMapBaseInitInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MDrv_VE_SetIOMapBaseInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_XC_InitInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_sc_get_h_cap_startInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_RegisterFBFmtCBInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_RegisterXCIsInterlaceCBInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_RegisterXCGetCapHStartCBInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_RegisterXCReduceBWForOSDCBInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_GetMaxGOPNumInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_InitByGOPInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo);  //FIXJASON, avoid hang-on. Sometimes the flag isn't set true.
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo);  //FIXJASON, avoid hang-on. Sometimes the flag isn't set true.
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_InitInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetMuxInfo);  //FIXJASON, avoid hang-on. Sometimes the flag isn't set true.
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_QueryDFBBldCapsInfo);

        CPPTEST_ASSERT_BOOL_EQUAL(DFB_OK, _return);
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_init_driver_default_1 */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_init_device_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_init_device(CoreGraphicsDevice *, void *, void *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_init_device_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (device) */ 
    //CoreGraphicsDevice * _device  = 0 ;
    CoreGraphicsDevice _a_device;
    /* Initializing argument 2 (driver_data) */ 
    //void * _driver_data  = 0 ;
    MSTARDriverData _a_sdrv;
    /* Initializing argument 3 (device_data) */ 
    //void * _device_data  = 0 ;
    MSTARDeviceData _a_sdev;

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

	dfb_config->mst_gop_counts = 10;

	dfb_config->mst_osd_to_ve = 1;

    bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_SetGOPDstInfo        = false;  //before
    bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo = false;  //before
    bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo   = false;  //before
    bRunInMock_MApi_XC_SetOSD2VEModeInfo          = false;  //before
    bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo       = false;  //before
    bRunInMock_MApi_GOP_GWIN_SetMuxInfo           = false;  //before
    bRunInMock_MApi_GFX_EnableVCmdQueueInfo       = false;  //before
    bRunInMock_MApi_GFX_SetStrBltSckTypeInfo      = false;  //before


    {
        /* Tested function call */
        DFBResult _return  = mstar_init_device( &_a_device, (void*)(&_a_sdrv), (void*)(&_a_sdev) );
        /* Post-condition check */
        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("CoreGraphicsDevice * _device ", ( _device ));
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SwitchGOPInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetGOPDstInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_Set_HStretchModeInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_EnableTransClrInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_XC_SetOSD2VEModeInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetHMirrorInfo);  //FIXJASON, avoid hang-on. Sometimes the flag isn't set true.
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetVMirrorInfo);  //FIXJASON, avoid hang-on. Sometimes the flag isn't set true.
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_GWIN_SetMuxInfo);  //FIXJASON, avoid hang-on. Sometimes the flag isn't set true.
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EnableVCmdQueueInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetStrBltSckTypeInfo);

        CPPTEST_ASSERT_BOOL_EQUAL(DFB_OK, _return);
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_init_device_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_FlushTextureCache_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstar_FlushTextureCache(void *, void *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_FlushTextureCache_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = 0 ;

    bRunInMock_MsOS_FlushMemoryInfo      = false;  //before

    {
        /* Tested function call */
        mstar_FlushTextureCache(_driver_data, _device_data);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MsOS_FlushMemoryInfo);
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_FlushTextureCache_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_EngineSync_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstar_EngineSync(void *, void *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_EngineSync_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = 0 ;

    bRunInMock_MApi_GFX_FlushQueueInfo      = false;  //before

    {
        /* Tested function call */
        mstar_EngineSync(_driver_data, _device_data);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_FlushQueueInfo);
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_EngineSync_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_BeginDraw_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstar_BeginDraw(void *, void *, CardState *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_BeginDraw_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = 0 ;
    /* Initializing argument 3 (state) */ 
    CardState * _state  = 0 ;

    bRunInMock_MApi_GFX_BeginDrawInfo      = false;  //before

    {
        /* Tested function call */
        mstar_BeginDraw(_driver_data, _device_data, _state);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("CardState * _state ", ( _state ));

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_BeginDrawInfo);
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_BeginDraw_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_EndDraw_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstar_EndDraw(void *, void *, CardState *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_EndDraw_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (driver_data) */ 
    void * _driver_data  = 0 ;
    /* Initializing argument 2 (device_data) */ 
    void * _device_data  = 0 ;
    /* Initializing argument 3 (state) */ 
    CardState * _state  = 0 ;

    bRunInMock_MApi_GFX_EndDrawInfo      = false;  //before

    {
        /* Tested function call */
        mstar_EndDraw(_driver_data, _device_data, _state);
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
        //CPPTEST_POST_CONDITION_PTR("CardState * _state ", ( _state ));

        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_EndDrawInfo);
    }
}
/* CPPTEST_TEST_CASE_END test_mstar_EndDraw_default */

/* CPPTEST_TEST_CASE_BEGIN test_driver_init_driver_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult driver_init_driver(CoreGraphicsDevice *, GraphicsDeviceFuncs *, void *, void *, CoreDFB *) */
void TestSuite_mstar_c_d5a8378e_test_driver_init_driver_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (device) */ 
    //CoreGraphicsDevice * _device  = 0 ;
	CoreGraphicsDevice _a_device;
    /* Initializing argument 2 (funcs) */ 
    //GraphicsDeviceFuncs * _funcs  = 0 ;
	GraphicsDeviceFuncs  _a_funcs;
    /* Initializing argument 3 (driver_data) */ 
    //void * _driver_data  = 0 ;
    MSTARDriverData _a_sdrv;
    //_a_sdrv.op_screen = (CoreScreen*)1;  //init
    /* Initializing argument 4 (device_data) */ 
    //void * _device_data  = 0 ;
    MSTARDeviceData _a_sdev;
    /* Initializing argument 5 (core) */ 
    //CoreDFB * _core  = 0 ;
    CoreDFB  _a_core;
#if 0
    /* Initializing global variable mstarLayerFuncs */ 
    {
         mstarLayerFuncs.LayerDataSize  = 0 ;
         mstarLayerFuncs.RegionDataSize  = 0 ;
         mstarLayerFuncs.InitLayer  = 0 ;
         mstarLayerFuncs.InitSource  = 0 ;
         mstarLayerFuncs.GetCurrentOutputField  = 0 ;
         mstarLayerFuncs.GetLevel  = 0 ;
         mstarLayerFuncs.SetLevel  = 0 ;
         mstarLayerFuncs.SetColorAdjustment  = 0 ;
         mstarLayerFuncs.TestRegion  = 0 ;
         mstarLayerFuncs.AddRegion  = 0 ;
         mstarLayerFuncs.SetRegion  = 0 ;
         mstarLayerFuncs.RemoveRegion  = 0 ;
         mstarLayerFuncs.FlipRegion  = 0 ;
         mstarLayerFuncs.UpdateRegion  = 0 ;
         mstarLayerFuncs.SetInputField  = 0 ;
         mstarLayerFuncs.AllocateSurface  = 0 ;
         mstarLayerFuncs.ReallocateSurface  = 0 ;
         mstarLayerFuncs.DeallocateSurface  = 0 ;
         mstarLayerFuncs.ConfigShadowLayer  = 0 ;
    }
    /* Initializing global variable mstarOPScreenFuncs */ 
    {
         mstarOPScreenFuncs.ScreenDataSize  = 0 ;
         mstarOPScreenFuncs.InitScreen  = 0 ;
         mstarOPScreenFuncs.InitMixer  = 0 ;
         mstarOPScreenFuncs.InitEncoder  = 0 ;
         mstarOPScreenFuncs.InitOutput  = 0 ;
         mstarOPScreenFuncs.SetPowerMode  = 0 ;
         mstarOPScreenFuncs.WaitVSync  = 0 ;
         mstarOPScreenFuncs.TestMixerConfig  = 0 ;
         mstarOPScreenFuncs.SetMixerConfig  = 0 ;
         mstarOPScreenFuncs.TestEncoderConfig  = 0 ;
         mstarOPScreenFuncs.SetEncoderConfig  = 0 ;
         mstarOPScreenFuncs.TestOutputConfig  = 0 ;
         mstarOPScreenFuncs.SetOutputConfig  = 0 ;
         mstarOPScreenFuncs.GetScreenSize  = 0 ;
         mstarOPScreenFuncs.GetMixerState  = 0 ;
    }
    /* Initializing global variable mstarIP0ScreenFuncs */ 
    {
         mstarIP0ScreenFuncs.ScreenDataSize  = 0 ;
         mstarIP0ScreenFuncs.InitScreen  = 0 ;
         mstarIP0ScreenFuncs.InitMixer  = 0 ;
         mstarIP0ScreenFuncs.InitEncoder  = 0 ;
         mstarIP0ScreenFuncs.InitOutput  = 0 ;
         mstarIP0ScreenFuncs.SetPowerMode  = 0 ;
         mstarIP0ScreenFuncs.WaitVSync  = 0 ;
         mstarIP0ScreenFuncs.TestMixerConfig  = 0 ;
         mstarIP0ScreenFuncs.SetMixerConfig  = 0 ;
         mstarIP0ScreenFuncs.TestEncoderConfig  = 0 ;
         mstarIP0ScreenFuncs.SetEncoderConfig  = 0 ;
         mstarIP0ScreenFuncs.TestOutputConfig  = 0 ;
         mstarIP0ScreenFuncs.SetOutputConfig  = 0 ;
         mstarIP0ScreenFuncs.GetScreenSize  = 0 ;
         mstarIP0ScreenFuncs.GetMixerState  = 0 ;
    }
    /* Initializing global variable mstarVEScreenFuncs */ 
    {
         mstarVEScreenFuncs.ScreenDataSize  = 0 ;
         mstarVEScreenFuncs.InitScreen  = 0 ;
         mstarVEScreenFuncs.InitMixer  = 0 ;
         mstarVEScreenFuncs.InitEncoder  = 0 ;
         mstarVEScreenFuncs.InitOutput  = 0 ;
         mstarVEScreenFuncs.SetPowerMode  = 0 ;
         mstarVEScreenFuncs.WaitVSync  = 0 ;
         mstarVEScreenFuncs.TestMixerConfig  = 0 ;
         mstarVEScreenFuncs.SetMixerConfig  = 0 ;
         mstarVEScreenFuncs.TestEncoderConfig  = 0 ;
         mstarVEScreenFuncs.SetEncoderConfig  = 0 ;
         mstarVEScreenFuncs.TestOutputConfig  = 0 ;
         mstarVEScreenFuncs.SetOutputConfig  = 0 ;
         mstarVEScreenFuncs.GetScreenSize  = 0 ;
         mstarVEScreenFuncs.GetMixerState  = 0 ;
    }
    /* Initializing global variable MSTAR_G2_Driver */ 
    {
         MSTAR_G2_Driver.age  = 0u;
         MSTAR_G2_Driver.enabled  = false;
         MSTAR_G2_Driver.registered  = false;
         MSTAR_G2_Driver.name  = 0 ;
         MSTAR_G2_Driver.description  = 0 ;
         MSTAR_G2_Driver.name_len  = 0;
    }
#endif

    //stub D_DEBUG_AT()
    #define D_DEBUG_AT(d,x...)         do {} while (0)

    bRunInMock_MDrv_MMIO_InitInfo              = false;  //before
    bRunInMock_dfb_core_is_masterInfo          = false;  //before
    bRunInMock_dfb_gfxcard_memory_virtualInfo  = false;  //before
    bRunInMock_dfb_screens_registerInfo        = false;  //before
    bRunInMock_dfb_layers_registerInfo         = false;  //before
    bRunInMock_mstar_init_driverInfo           = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = driver_init_driver( &_a_device, &_a_funcs, (void*)(&_a_sdrv), (void*)(&_a_sdev), &_a_core );

        /* Post-condition check */
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MDrv_MMIO_InitInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_is_masterInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_gfxcard_memory_virtualInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_screens_registerInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_layers_registerInfo);  //FIXJASON, avoid hang-on. Sometimes the flag isn't set true.
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_init_driverInfo);

        CPPTEST_ASSERT_UINTEGER_EQUAL(DFB_OK, _return);
    }
}
/* CPPTEST_TEST_CASE_END test_driver_init_driver_default */

/* CPPTEST_TEST_CASE_BEGIN test_driver_init_device_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult driver_init_device(CoreGraphicsDevice *, GraphicsDeviceInfo *, void *, void *) */
void TestSuite_mstar_c_d5a8378e_test_driver_init_device_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (device) */ 
    //CoreGraphicsDevice * _device  = 0 ;
	CoreGraphicsDevice _a_device;
    /* Initializing argument 2 (device_info) */ 
    //GraphicsDeviceInfo * _device_info  = 0 ;
	GraphicsDeviceInfo _a_device_info;
    /* Initializing argument 3 (driver_data) */ 
    //void * _driver_data  = 0 ;
	MSTARDriverData _a_sdrv;
    /* Initializing argument 4 (device_data) */ 
    //void * _device_data  = 0 ;
	MSTARDeviceData _a_sdev;

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

    //stub D_DEBUG_AT()
    #define D_DEBUG_AT(d,x...)         do {} while (0)

    bRunInMock_MApi_GFX_SetPaletteOptInfo = false;  //before
    bRunInMock_mstar_init_deviceInfo      = false;  //before
    bRunInMock_fusion_skirmish_initInfo   = false;  //before
    bRunInMock_dfb_core_worldInfo         = false;  //before

    {
        /* Tested function call */
        DFBResult _return  = driver_init_device( &_a_device, &_a_device_info, (void*)(&_a_sdrv), (void*)(&_a_sdev) );

        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetPaletteOptInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_mstar_init_deviceInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_fusion_skirmish_initInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_core_worldInfo);

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )

    }
}
/* CPPTEST_TEST_CASE_END test_driver_init_device_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineShareState_default */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineShareState(StateModificationFlags, DFBAccelerationMask, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */ 
    StateModificationFlags _modified  = /*SMF_DRAWING_FLAGS*/ SMF_DESTINATION;
    /* Initializing argument 2 (support_accel) */ 
    DFBAccelerationMask _support_accel  = DFXL_NONE;
    /* Initializing argument 3 (sdrv) */ 
    //MSTARDriverData * _sdrv  = 0 ;
    MSTARDriverData _a_sdrv;
    /* Initializing argument 4 (sdev) */ 
    //MSTARDeviceData * _sdev  = 0 ;
    MSTARDeviceData _a_sdev;

    _a_sdev.b_hwclip = false;

    _a_sdrv.ge_palette_enabled = 1;
    _a_sdev.num_entries        = 1;

    _a_sdrv.ge_palette_intensity_enabled = 1;
    _a_sdev.num_intensity = 2;

    bRunInMock_MApi_GFX_SetDstBufferInfoInfo = false;  //before
    bRunInMock_MApi_GFX_SetClipInfo          = false;  //before
    bRunInMock_MApi_GFX_SetPaletteOptInfo    = false;  //before
    bRunInMock_MApi_GFX_SetIntensityInfo     = false;  //before

    {
        /* Tested function call */
        mstarSetEngineShareState(_modified, _support_accel, &_a_sdrv, &_a_sdev);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDstBufferInfoInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetClipInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetPaletteOptInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetIntensityInfo);
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineShareState_default */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineShareState_SMF_CLIP */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineShareState(StateModificationFlags, DFBAccelerationMask, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_CLIP()
{
	  /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */
    StateModificationFlags _modified  = /*SMF_DRAWING_FLAGS*/ SMF_CLIP;
    /* Initializing argument 2 (support_accel) */
    DFBAccelerationMask _support_accel  = DFXL_NONE;
    /* Initializing argument 3 (sdrv) */
    //MSTARDriverData * _sdrv  = 0 ;
    MSTARDriverData _a_sdrv;
    /* Initializing argument 4 (sdev) */
    //MSTARDeviceData * _sdev  = 0 ;
    MSTARDeviceData _a_sdev;
    
    _a_sdev.b_hwclip = true;
    
    _a_sdrv.ge_palette_enabled = 1;
    _a_sdev.num_entries        = 1;
    
    _a_sdrv.ge_palette_intensity_enabled = 0;
    //_a_sdev.num_intensity = 1;
    
    bRunInMock_MApi_GFX_SetClipInfo          = false;  //before
    bRunInMock_MApi_GFX_SetPaletteOptInfo    = false;  //before
    //bRunInMock_MApi_GFX_SetIntensityInfo     = false;  //before
    
    {
        /* Tested function call */
        mstarSetEngineShareState(_modified, _support_accel, &_a_sdrv, &_a_sdev);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetClipInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetPaletteOptInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetIntensityInfo);
    
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineShareState_SMF_CLIP */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineShareState_SMF_ALPHA_CMP */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineShareState(StateModificationFlags, DFBAccelerationMask, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_ALPHA_CMP()
{
	  /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */
    StateModificationFlags _modified  = /*SMF_DRAWING_FLAGS*/ SMF_ALPHA_CMP;
    /* Initializing argument 2 (support_accel) */
    DFBAccelerationMask _support_accel  = DFXL_NONE;
    /* Initializing argument 3 (sdrv) */
    //MSTARDriverData * _sdrv  = 0 ;
    MSTARDriverData _a_sdrv;
    /* Initializing argument 4 (sdev) */
    //MSTARDeviceData * _sdev  = 0 ;
    MSTARDeviceData _a_sdev;
    
    //_a_sdev.b_hwclip = true;
    
    _a_sdrv.ge_palette_enabled = 1;
    _a_sdev.num_entries        = 1;
    
    _a_sdrv.ge_palette_intensity_enabled = 1;
    _a_sdev.num_intensity = 1;
    
    bRunInMock_MApi_GFX_SetAlphaCmpInfo = false;  //before
    bRunInMock_MApi_GFX_SetPaletteOptInfo    = false;  //before
    bRunInMock_MApi_GFX_SetIntensityInfo     = false;  //before
    
    {
        /* Tested function call */
        mstarSetEngineShareState(_modified, _support_accel, &_a_sdrv, &_a_sdev);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetAlphaCmpInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetPaletteOptInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetIntensityInfo);
    
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineShareState_SMF_ALPHA_CMP */

/* CPPTEST_TEST_CASE_BEGIN test_mstarSetEngineShareState_SMF_DESTINATION_SOURCE */
/* CPPTEST_TEST_CASE_CONTEXT void mstarSetEngineShareState(StateModificationFlags, DFBAccelerationMask, MSTARDriverData *, MSTARDeviceData *) */
void TestSuite_mstar_c_d5a8378e_test_mstarSetEngineShareState_SMF_DESTINATION_SOURCE()
{
	  /* Pre-condition initialization */
    /* Initializing argument 1 (modified) */
    StateModificationFlags _modified  = /*SMF_DRAWING_FLAGS*/ SMF_DESTINATION;
    /* Initializing argument 2 (support_accel) */
    DFBAccelerationMask _support_accel  = DFXL_NONE;
    /* Initializing argument 3 (sdrv) */
    //MSTARDriverData * _sdrv  = 0 ;
    MSTARDriverData _a_sdrv;
    /* Initializing argument 4 (sdev) */
    //MSTARDeviceData * _sdev  = 0 ;
    MSTARDeviceData _a_sdev;
    
    //_a_sdev.b_hwclip = true;
    
    _a_sdrv.ge_palette_enabled = 1;
    _a_sdev.num_entries        = 1;
    
    _a_sdrv.ge_palette_intensity_enabled = 0;
    //_a_sdev.num_intensity = 1;
    
    bRunInMock_MApi_GFX_SetDC_CSC_FMTInfo = false;  //before
    bRunInMock_MApi_GFX_SetPaletteOptInfo = false;  //before
    //bRunInMock_MApi_GFX_SetIntensityInfo     = false;  //before
    
    {
        /* Tested function call */
        mstarSetEngineShareState(_modified, _support_accel, &_a_sdrv, &_a_sdev);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetDC_CSC_FMTInfo);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetPaletteOptInfo);
        //CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GFX_SetIntensityInfo);
    
        //CPPTEST_POST_CONDITION_PTR("MSTARDriverData * _sdrv ", ( _sdrv ));
        //CPPTEST_POST_CONDITION_PTR("MSTARDeviceData * _sdev ", ( _sdev ));
    }
}
/* CPPTEST_TEST_CASE_END test_mstarSetEngineShareState_SMF_DESTINATION_SOURCE */

/* CPPTEST_TEST_CASE_BEGIN test__mstarCheckStateInternal_SwYUVPatch */
/* CPPTEST_TEST_CASE_CONTEXT void _mstarCheckStateInternal(CardState *, DFBAccelerationMask, DFBAccelerationMask *, DFBSurfaceBlittingFlags) */
void TestSuite_mstar_c_d5a8378e_test__mstarCheckStateInternal_SwYUVPatch()
{
	/* Pre-condition initialization */
	/* Initializing argument 1 (state) */
	CoreSurface  _a_destination;   /* destination surface */
	CoreSurface  _a_source;        /* source surface */
	CardState  _a_state;
	_a_state.destination = &_a_destination;  //set physical body
	_a_state.source = &_a_source;  //set physical body
	_a_state.destination->config.size.w = 100;  //init
	_a_state.destination->config.size.h = 101;  //init
	_a_state.destination->config.format = DSPF_ARGB;  //init
	_a_state.source->config.format = DSPF_YUY2;  //init
	/* Initializing argument 2 (accel) */
	DFBAccelerationMask _accel  = DFXL_NONE;
	//DFBAccelerationMask _accel  = 0xFFFF0000;
	//printf("FIXJASON _accel(%x)\n", _accel);
	/* Initializing argument 3 (pAccelRdy) */
	//DFBAccelerationMask * _pAccelRdy  = 0 ;
	DFBAccelerationMask  _a_pAccelRdy  = 0 ;
	/* Initializing argument 4 (supported_blittingflags) */
	DFBSurfaceBlittingFlags _supported_blittingflags  = DSBLIT_NOFX;
    {
	    /* Tested function call */
	    _mstarCheckStateInternal(&_a_state, _accel, &_a_pAccelRdy, _supported_blittingflags);
	    /* Post-condition check */
	    //CPPTEST_POST_CONDITION_PTR("CardState * _state ", ( _state ));
	    //CPPTEST_POST_CONDITION_PTR("DFBAccelerationMask * _pAccelRdy ", ( _pAccelRdy ));

	    CPPTEST_ASSERT_UINTEGER_EQUAL( 0, _a_pAccelRdy );
    }
}
/* CPPTEST_TEST_CASE_END test__mstarCheckStateInternal_SwYUVPatch */

/* CPPTEST_TEST_CASE_BEGIN test_mstar_init_device_E_GOP_DST_VE */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult mstar_init_device(CoreGraphicsDevice *, void *, void *) */
void TestSuite_mstar_c_d5a8378e_test_mstar_init_device_E_GOP_DST_VE()
{
	   /* Pre-condition initialization */
	    /* Initializing argument 1 (device) */
	    //CoreGraphicsDevice * _device  = 0 ;
	    CoreGraphicsDevice _a_device;
	    /* Initializing argument 2 (driver_data) */
	    //void * _driver_data  = 0 ;
	    MSTARDriverData _a_sdrv;
	    /* Initializing argument 3 (device_data) */
	    //void * _device_data  = 0 ;
	    MSTARDeviceData _a_sdev;

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

		dfb_config->mst_gop_counts = 1;

		dfb_config->mst_osd_to_ve = 1;
		dfb_config->mst_gop_dstPlane[0] = E_GOP_DST_VE;

	    bRunInMock_MApi_GOP_VE_SetOutputTiming      = false;  //before

	    {
	        /* Tested function call */
	        DFBResult _return  = mstar_init_device( &_a_device, (void*)(&_a_sdrv), (void*)(&_a_sdev) );
	        /* Post-condition check */
	        //CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
	        //CPPTEST_POST_CONDITION_PTR("CoreGraphicsDevice * _device ", ( _device ));
	        //CPPTEST_POST_CONDITION_PTR("void * _driver_data ", ( _driver_data ));
	        //CPPTEST_POST_CONDITION_PTR("void * _device_data ", ( _device_data ));
	        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_GOP_VE_SetOutputTiming);

	        CPPTEST_ASSERT_BOOL_EQUAL(DFB_OK, _return);
	    }
}
/* CPPTEST_TEST_CASE_END test_mstar_init_device_E_GOP_DST_VE */
