1 #include "SupportQ15.h" 2 #include "Error.h" 3 4 test_copy_q15()5 void SupportQ15::test_copy_q15() 6 { 7 8 } 9 test_fill_q15()10 void SupportQ15::test_fill_q15() 11 { 12 13 } 14 test_q7_to_q15()15 void SupportQ15::test_q7_to_q15() 16 { 17 18 } 19 test_q31_to_q15()20 void SupportQ15::test_q31_to_q15() 21 { 22 23 } 24 25 setUp(Testing::testID_t id,std::vector<Testing::param_t> & params,Client::PatternMgr * mgr)26 void SupportQ15::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr) 27 { 28 29 30 std::vector<Testing::param_t>::iterator it = params.begin(); 31 this->nbSamples = *it; 32 33 output.create(this->nbSamples,SupportQ15::OUT_SAMPLES_Q15_ID,mgr); 34 35 switch(id) 36 { 37 case TEST_COPY_Q15_1: 38 case TEST_FILL_Q15_2: 39 samples.reload(SupportQ15::SAMPLES_Q15_ID,mgr,this->nbSamples); 40 this->pSrc=samples.ptr(); 41 break; 42 43 case TEST_Q31_TO_Q15_3: 44 samplesQ31.reload(SupportQ15::SAMPLES_Q31_ID,mgr,this->nbSamples); 45 this->pSrcQ31=samplesQ31.ptr(); 46 break; 47 48 case TEST_Q7_TO_Q15_4: 49 samplesQ7.reload(SupportQ15::SAMPLES_Q7_ID,mgr,this->nbSamples); 50 this->pSrcQ7=samplesQ7.ptr(); 51 break; 52 53 } 54 this->pDst=output.ptr(); 55 56 } 57 tearDown(Testing::testID_t id,Client::PatternMgr * mgr)58 void SupportQ15::tearDown(Testing::testID_t id,Client::PatternMgr *mgr) 59 { 60 } 61