#include "cpptest.h"

#if 0  //FIXJASON
DFBConfig _a_dfb_config;
DFBConfig* dfb_config = &_a_dfb_config;
#elif 0
extern DFBConfig* dfb_config;
#endif


CPPTEST_CONTEXT("/UT_DFBProject/IDirectFBImageProvider/idirectfbimageprovider_jpeg.c");
CPPTEST_TEST_SUITE_INCLUDED_TO("/UT_DFBProject/IDirectFBImageProvider/idirectfbimageprovider_jpeg.c");


CPPTEST_TEST_SUITE(TestSuite_idirectfbimageprovider_jpeg_c_3133199a);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_return_ok);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_ok);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_fail);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_addr_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_length_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_addr_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_addr_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_length_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_length_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_jpeg_hwdecode_false);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegStop_default);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_check_null_string);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_default);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_addr_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_length_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_addr_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_length_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_addr_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_length_0);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_jpeg_hwdecode_false);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_width_1);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_width_1921);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_height_1081);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_FAILED);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_DONE);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_OKAY);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_FAILED);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_RETRY);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegFillHeaderBuffer_Test_Fail);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_AddRef_default);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_SetRenderCallback_default);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetImageDescription_default);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_Release_default);
CPPTEST_TEST(TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_RenderTo_default);
CPPTEST_TEST_SUITE_END();
        

void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_return_ok();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_ok();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_fail();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_addr_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_length_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_addr_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_addr_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_length_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_length_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_jpeg_hwdecode_false();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegStop_default();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_check_null_string();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_default();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_addr_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_length_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_addr_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_length_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_addr_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_length_0();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_jpeg_hwdecode_false();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_width_1();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_width_1921();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_height_1081();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_FAILED();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_DONE();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_OKAY();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_FAILED();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_RETRY();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegFillHeaderBuffer_Test_Fail();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_AddRef_default();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_SetRenderCallback_default();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetImageDescription_default();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_Release_default();
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_RenderTo_default();
CPPTEST_TEST_SUITE_REGISTRATION(TestSuite_idirectfbimageprovider_jpeg_c_3133199a);

extern bool bRunInMock_MApi_JPEG_Exit;
extern bool bRunInMock_MApi_JPEG_Rst;
extern bool bRunInMock_dfb_primary_layer_pixelformat;
extern bool bRunInMock_MApi_JPEG_HdlVidxChk;
extern bool bRunInMock_MApi_JPEG_GetJPDEventFlag;
extern bool bRunInMock_MApi_JPEG_GetBuffLoadType;
extern bool bRunInMock_MApi_JPEG_ReadData;

void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_setUp()
{
}

void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_tearDown()
{
}


/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageProvider_JPEG_SetHWDecoderParameter(IDirectFBImageProvider *, void *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default()
{
	DFBHWJPEGDecoderSetting_t phw_decoder_setting;

	phw_decoder_setting.u32_readbuf_phy_addr = 1000;
	phw_decoder_setting.u32_readbuf_length = 32;
	phw_decoder_setting.u32_interbuf_phy_addr = 1032;
	phw_decoder_setting.u32_interbuf_length = 64;
	phw_decoder_setting.u32_outbuf_phy_addr = 1096;
	phw_decoder_setting.u32_outbuf_length = 256;
	phw_decoder_setting.bEnable = true;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
    IDirectFBImageProvider * _thiz  = 0 ;
    /* Initializing argument 2 (phw_decoder_setting) */ 
    void * _phw_decoder_setting  = &phw_decoder_setting ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_SetHWDecoderParameter(_thiz, _phw_decoder_setting);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("void * _phw_decoder_setting ", ( _phw_decoder_setting ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_return_ok */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_return_ok()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
    IDirectFBImageProvider * _thiz  = &thiz ;
    _thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;

    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )

        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_return_ok */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_initial_ok */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_ok()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif

	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;
	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
       //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_initial_ok */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_initial_fail */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_initial_fail()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;
	dfb_config->mst_jpeg_hwdecode_option     = true;

	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_initial_fail */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_addr_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_addr_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 0;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_addr_0 */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_length_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_length_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 0;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_set_readbuff_length_0 */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_addr_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_addr_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 0;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_addr_0 */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_addr_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_addr_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 0;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_addr_0 */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_length_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_length_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
  dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 0;
	dfb_config->mst_jpeg_hwdecode            = true;

	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_set_outbuff_length_0 */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_length_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_length_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
  dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 0;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_set_interbuff_length_0 */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageprovider_JPEG_MappingPool_set_jpeg_hwdecode_false */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageprovider_JPEG_MappingPool(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageprovider_JPEG_MappingPool_set_jpeg_hwdecode_false()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	thiz.priv = &data;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = false;

	/* Pre-condition initialization */
	/* Initializing argument 1 (thiz) */
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageprovider_JPEG_MappingPool(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageprovider_JPEG_MappingPool_set_jpeg_hwdecode_false */


/* CPPTEST_TEST_CASE_BEGIN test_MApi_MPlayer_JpegStop_default */
/* CPPTEST_TEST_CASE_CONTEXT void MApi_MPlayer_JpegStop(void) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegStop_default()
{
    /* Pre-condition initialization */
    {
        bRunInMock_MApi_JPEG_Exit = false;
        bRunInMock_MApi_JPEG_Rst = false;

        /* Tested function call */
        MApi_MPlayer_JpegStop();
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_Exit);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_Rst);

        /* Post-condition check */
    }
}
/* CPPTEST_TEST_CASE_END test_MApi_MPlayer_JpegStop_default */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_check_null_string */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_SetHWDecoderParameter(IDirectFBImageProvider *, void *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_check_null_string()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
    IDirectFBImageProvider * _thiz  = 0 ;
    /* Initializing argument 2 (phw_decoder_setting) */ 
    void * _phw_decoder_setting  = 0 ;
    {
        /* Tested function call */
        DFBResult _return  = IDirectFBImageProvider_JPEG_SetHWDecoderParameter(_thiz, _phw_decoder_setting);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_FAILURE, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("void * _phw_decoder_setting ", ( _phw_decoder_setting ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_check_null_string */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_SetHWDecoderParameter(IDirectFBImageProvider *, void *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
    IDirectFBImageProvider * _thiz  = 0 ;
    /* Initializing argument 2 (phw_decoder_setting) */ 
    //void * _phw_decoder_setting  = 0 ;
    DFBHWJPEGDecoderSetting_t _a_hw_decoder_setting;
    
    _a_hw_decoder_setting.u32_readbuf_phy_addr  = 0x1234;
    _a_hw_decoder_setting.u32_readbuf_length    = 100;
    _a_hw_decoder_setting.u32_interbuf_phy_addr = 0x2345;
    _a_hw_decoder_setting.u32_interbuf_length   = 200;
    _a_hw_decoder_setting.u32_outbuf_phy_addr   = 0x3456;
    _a_hw_decoder_setting.u32_outbuf_length     = 300;
    _a_hw_decoder_setting.bEnable               = true;
    
    {
        /* Tested function call */
        DFBResult _return  = IDirectFBImageProvider_JPEG_SetHWDecoderParameter( _thiz, (void *)(&_a_hw_decoder_setting) );
        
        /* Post-condition check */
    		CPPTEST_ASSERT_UINTEGER_EQUAL( 0x1234, dfb_config->mst_jpeg_readbuff_addr );
    		CPPTEST_ASSERT_UINTEGER_EQUAL( 100   , dfb_config->mst_jpeg_readbuff_length );
    		CPPTEST_ASSERT_UINTEGER_EQUAL( 0x2345, dfb_config->mst_jpeg_interbuff_addr );
    		CPPTEST_ASSERT_UINTEGER_EQUAL( 200   , dfb_config->mst_jpeg_interbuff_length );
    		CPPTEST_ASSERT_UINTEGER_EQUAL( 0x3456, dfb_config->mst_jpeg_outbuff_addr );
				CPPTEST_ASSERT_UINTEGER_EQUAL( 300   , dfb_config->mst_jpeg_outbuff_length );    		        
    		CPPTEST_ASSERT_BOOL_EQUAL(true       , dfb_config->mst_jpeg_hwdecode);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )

        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("void * _phw_decoder_setting ", ( _phw_decoder_setting ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_SetHWDecoderParameter_default */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_default()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

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

	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 1080;
	data.width  = 1920;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
    	bRunInMock_dfb_primary_layer_pixelformat = false;
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_dfb_primary_layer_pixelformat);
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL((DSDESC_WIDTH |  DSDESC_HEIGHT | DSDESC_PIXELFORMAT | DSDESC_ORIG_WIDTH | DSDESC_ORIG_HEIGHT), ( _dsc->flags));
        CPPTEST_ASSERT_UINTEGER_EQUAL(1080, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1920, ( _dsc->width ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1080, ( _dsc->origheight));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1920, ( _dsc->origwidth ));
		CPPTEST_ASSERT_UINTEGER_EQUAL(DSPF_ARGB, ( _dsc->pixelformat ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_default */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_addr_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_addr_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

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

	dfb_config->mst_jpeg_readbuff_addr       = 0;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 1081;
	data.width  = 1921;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(1081, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1921, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_addr_0 */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_length_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_length_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 0;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 1081;
	data.width  = 1921;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(1081, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1921, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_readbuff_length_0 */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_addr_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_addr_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

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

	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 0;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 1081;
	data.width  = 1921;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(1081, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1921, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_addr_0 */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_length_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_length_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

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

	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 0;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 1081;
	data.width  = 1921;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(1081, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1921, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_interbuff_length_0 */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_addr_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_addr_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

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

	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 0;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 1081;
	data.width  = 1921;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(1081, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1921, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_addr_0 */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_length_0 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_length_0()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif

	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 0;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 1081;
	data.width  = 1921;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(1081, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1921, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_outbuff_length_0 */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_jpeg_hwdecode_false */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_jpeg_hwdecode_false()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

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

	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = false;

	data.height = 1081;
	data.width  = 1921;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(1081, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1921, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_jpeg_hwdecode_false */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_width_1 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_width_1()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

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

	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 10000;
	data.width  = 1;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(10000, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(1, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_set_width_1 */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_width_1921 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_width_1921()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;
	
	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
	dfb_config = &ABC_DFBConfig;
	#endif
	
	printf("FIXJASON-JPEG dfb_config(0x%x)\n", dfb_config);
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;

	data.height = 1000;
	data.width  = 1921;
	thiz.priv = &data;
	
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(500, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(960, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
    
    printf("FIXJASON-JPEG dfb_config(0x%x)\n", dfb_config);
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_width_1921 */

/* CPPTEST_TEST_CASE_BEGIN test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_height_1081 */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult IDirectFBImageProvider_JPEG_GetSurfaceDescription(IDirectFBImageProvider *, DFBSurfaceDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_height_1081()
{
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;
	DFBSurfaceDescription dsc;

	#if 1  //FIXJASON
	extern DFBConfig ABC_DFBConfig;
    dfb_config = &ABC_DFBConfig;
	#endif
	
	dfb_config->mst_jpeg_readbuff_addr       = 10000;
	dfb_config->mst_jpeg_readbuff_length     = 100;
	dfb_config->mst_jpeg_interbuff_addr      = 20000;
	dfb_config->mst_jpeg_interbuff_length    = 200;
	dfb_config->mst_jpeg_outbuff_addr        = 30000;
	dfb_config->mst_jpeg_outbuff_length      = 300;
	dfb_config->mst_jpeg_hwdecode            = true;
	dfb_config->mst_jpeg_hwdecode_option     = true;

	data.height = 1081;
	data.width  = 1000;
	thiz.priv = &data;

    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider * _thiz  = &thiz ;
	_thiz->priv = &data;
	IAny * this = (IAny*)_thiz;
	this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBSurfaceDescription * _dsc  = &dsc;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetSurfaceDescription(_thiz, _dsc);
        /* Post-condition check */

        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) )
        CPPTEST_ASSERT_UINTEGER_EQUAL(540, ( _dsc->height));
		CPPTEST_ASSERT_UINTEGER_EQUAL(500, ( _dsc->width ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBImageProvider * _thiz ", ( _thiz ));
        //CPPTEST_POST_CONDITION_PTR("DFBSurfaceDescription * _dsc ", ( _dsc ));
    }
}
/* CPPTEST_TEST_CASE_END test_IDirectFBImageProvider_JPEG_GetSurfaceDescription_enable_hw_set_height_1081 */

/* CPPTEST_TEST_CASE_BEGIN test_MApi_MPlayer_JpegWaitDone_E_JPEG_FAILED */
/* CPPTEST_TEST_CASE_CONTEXT E_JPEG_DECODER_STATUS MApi_MPlayer_JpegWaitDone(IDirectFBDataBuffer *, JPEG_InitParam *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_FAILED()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (buffer) */ 
    IDirectFBDataBuffer * _buffer  = 0 ;
    /* Initializing argument 2 (pJpegInitParam) */ 
    JPEG_InitParam * _pJpegInitParam  = 0 ;
    {
    	bRunInMock_MApi_JPEG_Exit = false;
		bRunInMock_MApi_JPEG_Rst = false;
		bRunInMock_MApi_JPEG_HdlVidxChk =false;
        /* Tested function call */
        E_JPEG_DECODER_STATUS _return  = MApi_MPlayer_JpegWaitDone(_buffer, _pJpegInitParam);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_Exit);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_Rst);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_HdlVidxChk);
        CPPTEST_ASSERT_EQUAL( DECODE_ERR, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBDataBuffer * _buffer ", ( _buffer ));
        //CPPTEST_POST_CONDITION_PTR("JPEG_InitParam * _pJpegInitParam ", ( _pJpegInitParam ));
    }
}
/* CPPTEST_TEST_CASE_END test_MApi_MPlayer_JpegWaitDone_E_JPEG_FAILED */

/* CPPTEST_TEST_CASE_BEGIN test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_DONE */
/* CPPTEST_TEST_CASE_CONTEXT E_JPEG_DECODER_STATUS MApi_MPlayer_JpegWaitDone(IDirectFBDataBuffer *, JPEG_InitParam *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_DONE()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (buffer) */ 
    IDirectFBDataBuffer * _buffer  = 0 ;
    /* Initializing argument 2 (pJpegInitParam) */ 
    JPEG_InitParam * _pJpegInitParam  = 0 ;
    {
    	bRunInMock_MApi_JPEG_GetJPDEventFlag = false;
        /* Tested function call */
        E_JPEG_DECODER_STATUS _return  = MApi_MPlayer_JpegWaitDone(_buffer, _pJpegInitParam);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_GetJPDEventFlag);
        CPPTEST_ASSERT_EQUAL( DECODE_DONE, ( _return ) )

       // CPPTEST_POST_CONDITION_PTR("IDirectFBDataBuffer * _buffer ", ( _buffer ));
       // CPPTEST_POST_CONDITION_PTR("JPEG_InitParam * _pJpegInitParam ", ( _pJpegInitParam ));
    }
}
/* CPPTEST_TEST_CASE_END test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_DONE */

/* CPPTEST_TEST_CASE_BEGIN test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_OKAY */
/* CPPTEST_TEST_CASE_CONTEXT E_JPEG_DECODER_STATUS MApi_MPlayer_JpegWaitDone(IDirectFBDataBuffer *, JPEG_InitParam *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_OKAY()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (buffer) */ 
    IDirectFBDataBuffer * _buffer  = 0 ;
    /* Initializing argument 2 (pJpegInitParam) */ 
    JPEG_InitParam * _pJpegInitParam  = 0 ;
    {
    	bRunInMock_MApi_JPEG_GetBuffLoadType = false;
    	bRunInMock_MApi_JPEG_ReadData = false;
        /* Tested function call */
        E_JPEG_DECODER_STATUS _return  = MApi_MPlayer_JpegWaitDone(_buffer, _pJpegInitParam);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_GetBuffLoadType);
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_ReadData);
        CPPTEST_ASSERT_EQUAL( DECODING, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBDataBuffer * _buffer ", ( _buffer ));
        //CPPTEST_POST_CONDITION_PTR("JPEG_InitParam * _pJpegInitParam ", ( _pJpegInitParam ));
    }
}
/* CPPTEST_TEST_CASE_END test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_OKAY */

/* CPPTEST_TEST_CASE_BEGIN test_MApi_MPlayer_JpegWaitDone_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_FAILED */
/* CPPTEST_TEST_CASE_CONTEXT E_JPEG_DECODER_STATUS MApi_MPlayer_JpegWaitDone(IDirectFBDataBuffer *, JPEG_InitParam *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_FAILED()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (buffer) */ 
    IDirectFBDataBuffer * _buffer  = 0 ;
    /* Initializing argument 2 (pJpegInitParam) */ 
    JPEG_InitParam * _pJpegInitParam  = 0 ;
    {
    	bRunInMock_MApi_JPEG_GetBuffLoadType = false;
        /* Tested function call */
        E_JPEG_DECODER_STATUS _return  = MApi_MPlayer_JpegWaitDone(_buffer, _pJpegInitParam);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_GetBuffLoadType);
        CPPTEST_ASSERT_EQUAL( DECODE_ERR, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBDataBuffer * _buffer ", ( _buffer ));
        //CPPTEST_POST_CONDITION_PTR("JPEG_InitParam * _pJpegInitParam ", ( _pJpegInitParam ));
    }
}
/* CPPTEST_TEST_CASE_END test_MApi_MPlayer_JpegWaitDone_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_FAILED */

/* CPPTEST_TEST_CASE_BEGIN test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_RETRY */
/* CPPTEST_TEST_CASE_CONTEXT E_JPEG_DECODER_STATUS MApi_MPlayer_JpegWaitDone(IDirectFBDataBuffer *, JPEG_InitParam *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_RETRY()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (buffer) */ 
    IDirectFBDataBuffer * _buffer  = 0 ;
    /* Initializing argument 2 (pJpegInitParam) */ 
    JPEG_InitParam * _pJpegInitParam  = 0 ;
    {
    	bRunInMock_MApi_JPEG_GetBuffLoadType = false;
        /* Tested function call */
        E_JPEG_DECODER_STATUS _return  = MApi_MPlayer_JpegWaitDone(_buffer, _pJpegInitParam);
        /* Post-condition check */
        CPPTEST_ASSERT_BOOL_EQUAL(true, bRunInMock_MApi_JPEG_GetBuffLoadType);
        CPPTEST_ASSERT_EQUAL( DECODING, ( _return ) )
        //CPPTEST_POST_CONDITION_PTR("IDirectFBDataBuffer * _buffer ", ( _buffer ));
        //CPPTEST_POST_CONDITION_PTR("JPEG_InitParam * _pJpegInitParam ", ( _pJpegInitParam ));
    }
}
/* CPPTEST_TEST_CASE_END test_MApi_MPlayer_JpegWaitDone_E_JPEG_EVENT_DEC_MRB_DONE_RETRY */


/* CPPTEST_TEST_CASE_BEGIN test_MApi_MPlayer_JpegFillHeaderBuffer_Test_Fail */
/* CPPTEST_TEST_CASE_CONTEXT s32 MApi_MPlayer_JpegFillHeaderBuffer(u32, u32) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test_MApi_MPlayer_JpegFillHeaderBuffer_Test_Fail()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (u32Addr) */ 
    uint32_t _u32Addr  = 0u;
    /* Initializing argument 2 (u32ReqLength) */ 
    uint32_t _u32ReqLength  = 0u;
    /* Initializing global variable pbuffer */ 
    {
         pbuffer  = 0 ;
    }
    {
        /* Tested function call */
        s32 _return  = MApi_MPlayer_JpegFillHeaderBuffer(_u32Addr, _u32ReqLength);
        CPPTEST_ASSERT_UINTEGER_EQUAL(0, (_return));
        /* Post-condition check */
        //CPPTEST_POST_CONDITION_INTEGER("int32_t _return", ( _return ));
        //CPPTEST_POST_CONDITION_PTR("IDirectFBDataBuffer * pbuffer ", ( pbuffer ));
    }
}
/* CPPTEST_TEST_CASE_END test_MApi_MPlayer_JpegFillHeaderBuffer_Test_Fail */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_AddRef_default */
/* CPPTEST_TEST_CASE_CONTEXT DirectResult _IDirectFBImageProvider_JPEG_AddRef(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_AddRef_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;

	data.ref = 0;
	thiz.priv = &data;

    IDirectFBImageProvider * _thiz  = & thiz ;
    IAny * this = (IAny*)_thiz;
    this->magic = 185931549 ;
    {
        /* Tested function call */
        DirectResult _return  = _IDirectFBImageProvider_JPEG_AddRef(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DR_OK, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_AddRef_default */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_SetRenderCallback_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageProvider_JPEG_SetRenderCallback(IDirectFBImageProvider *, DIRenderCallback, void *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_SetRenderCallback_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;

	thiz.priv = &data;

    IDirectFBImageProvider * _thiz  = & thiz ;
    IAny * this = (IAny*)_thiz;
    this->magic = 185931549 ;
    /* Initializing argument 2 (callback) */ 
    DIRenderCallback _callback  = 0 ;
    /* Initializing argument 3 (context) */ 
    void * _context  = 0 ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_SetRenderCallback(_thiz, _callback, _context);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_SetRenderCallback_default */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_GetImageDescription_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageProvider_JPEG_GetImageDescription(IDirectFBImageProvider *, DFBImageDescription *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_GetImageDescription_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;

	thiz.priv = &data;

    IDirectFBImageProvider * _thiz  = & thiz ;
    IAny * this = (IAny*)_thiz;
    this->magic = 185931549 ;
    /* Initializing argument 2 (dsc) */ 
    DFBImageDescription _dsc ;
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_GetImageDescription(_thiz, &_dsc);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_OK, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_GetImageDescription_default */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_Release_default */
/* CPPTEST_TEST_CASE_CONTEXT DirectResult _IDirectFBImageProvider_JPEG_Release(IDirectFBImageProvider *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_Release_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;

	data.ref = 0;
	thiz.priv = &data;

    IDirectFBImageProvider * _thiz  = & thiz ;
    IAny * this = (IAny*)_thiz;
    this->magic = 185931549 ;
    {
        /* Tested function call */
        DirectResult _return  = _IDirectFBImageProvider_JPEG_Release(_thiz);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DR_OK, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_Release_default */

/* CPPTEST_TEST_CASE_BEGIN test__IDirectFBImageProvider_JPEG_RenderTo_default */
/* CPPTEST_TEST_CASE_CONTEXT DFBResult _IDirectFBImageProvider_JPEG_RenderTo(IDirectFBImageProvider *, IDirectFBSurface *, const DFBRectangle *) */
void TestSuite_idirectfbimageprovider_jpeg_c_3133199a_test__IDirectFBImageProvider_JPEG_RenderTo_default()
{
    /* Pre-condition initialization */
    /* Initializing argument 1 (thiz) */ 
	IDirectFBImageProvider thiz;
	IDirectFBImageProvider_JPEG_data data;

	thiz.priv = &data;

    IDirectFBImageProvider * _thiz  = & thiz ;
    IAny * this = (IAny*)_thiz;
    this->magic = 185931549 ;
    /* Initializing argument 2 (destination) */ 
    IDirectFBSurface _destination ;
    //CoreSurface _surf;
    //_surf.config.format = 0;
    DFBRectangle _my_rect = {0, 0, 10, 10};
    IDirectFBSurface_data _sur_data;

    _sur_data.surface = NULL;
    _sur_data.area.current = _my_rect;
    _sur_data.area.wanted = _my_rect;

    _destination.priv = & _sur_data;
    /* Initializing argument 3 (dest_rect) */ 
    const DFBRectangle  _dest_rect = _my_rect;
    /* Initializing global variable pbuffer */ 
    {
         pbuffer  = 0 ;
    }
    {
        /* Tested function call */
        DFBResult _return  = _IDirectFBImageProvider_JPEG_RenderTo(_thiz, &_destination, &_dest_rect);
        /* Post-condition check */
        CPPTEST_ASSERT_EQUAL( DFB_DESTROYED, ( _return ) );
    }
}
/* CPPTEST_TEST_CASE_END test__IDirectFBImageProvider_JPEG_RenderTo_default */
