Lines Matching refs:test_failed
104 if(fout==NULL)test_failed();
138 test_failed(); in get_frame_size_enum()
165 test_failed(); in test_encode()
172 test_failed(); in test_encode()
216 if(err!=OPUS_OK || dec==NULL)test_failed(); in fuzz_encoder_settings()
219 if(err!=OPUS_OK || enc==NULL)test_failed(); in fuzz_encoder_settings()
248 if(opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
249 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(force_channel)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
250 if(opus_encoder_ctl(enc, OPUS_SET_VBR(vbr)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
251 … if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(vbr_constraint)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
252 if(opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(complexity)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
253 if(opus_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(max_bw)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
254 if(opus_encoder_ctl(enc, OPUS_SET_SIGNAL(sig)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
255 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(inband_fec)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
256 if(opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(pkt_loss)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
257 if(opus_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(lsb_depth)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
258 … if(opus_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(pred_disabled)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
259 if(opus_encoder_ctl(enc, OPUS_SET_DTX(dtx)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
260 …f(opus_encoder_ctl(enc, OPUS_SET_EXPERT_FRAME_DURATION(frame_size_enum)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
300 if(err != OPUS_OK || enc==NULL)test_failed(); in run_test1()
307 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
310 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
313 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
316 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
319 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
322 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
326 if(err != OPUS_OK || MSenc==NULL)test_failed(); in run_test1()
329 if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_BITRATE(&i))!=OPUS_OK)test_failed(); in run_test1()
330 if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_LSB_DEPTH(&i))!=OPUS_OK)test_failed(); in run_test1()
331 if(i<16)test_failed(); in run_test1()
335 …istream_encoder_ctl(MSenc, OPUS_MULTISTREAM_GET_ENCODER_STATE(1,&tmp_enc))!=OPUS_OK)test_failed(); in run_test1()
336 if(opus_encoder_ctl(tmp_enc, OPUS_GET_LSB_DEPTH(&j))!=OPUS_OK)test_failed(); in run_test1()
337 if(i!=j)test_failed(); in run_test1()
338 …am_encoder_ctl(MSenc, OPUS_MULTISTREAM_GET_ENCODER_STATE(2,&tmp_enc))!=OPUS_BAD_ARG)test_failed(); in run_test1()
342 if(err != OPUS_OK || dec==NULL)test_failed(); in run_test1()
345 if(err != OPUS_OK || MSdec==NULL)test_failed(); in run_test1()
348 if(err != OPUS_OK || MSdec_err==NULL)test_failed(); in run_test1()
361 for(i=0;i<10;i++)if(dec_err[i]==NULL)test_failed(); in run_test1()
376 if(inbuf==NULL || outbuf==NULL || out2buf==NULL)test_failed(); in run_test1()
385 if(opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO))!=OPUS_OK)test_failed(); in run_test1()
386 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(-2))!=OPUS_BAD_ARG)test_failed(); in run_test1()
387 if(opus_encode(enc, inbuf, 500, packet, MAX_PACKET)!=OPUS_BAD_ARG)test_failed(); in run_test1()
391 if(opus_encoder_ctl(enc, OPUS_SET_VBR(rc<2))!=OPUS_OK)test_failed(); in run_test1()
392 if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); in run_test1()
393 if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); in run_test1()
394 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed(); in run_test1()
408 if(opus_encoder_ctl(enc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
409 if(opus_decoder_ctl(dec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
412 … if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
417 if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
421 if(opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(complex))!=OPUS_OK)test_failed(); in run_test1()
424 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed(); in run_test1()
425 … if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_SILK_ONLY+modes[j]))!=OPUS_OK)test_failed(); in run_test1()
426 if(opus_encoder_ctl(enc, OPUS_SET_DTX(fast_rand()&1))!=OPUS_OK)test_failed(); in run_test1()
427 if(opus_encoder_ctl(enc, OPUS_SET_BITRATE(rate))!=OPUS_OK)test_failed(); in run_test1()
428 … if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS((rates[j]>=64000?2:1)))!=OPUS_OK)test_failed(); in run_test1()
429 if(opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY((count>>2)%11))!=OPUS_OK)test_failed(); in run_test1()
430 …oder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!=OPUS_OK)test_failed(); in run_test1()
435 if(opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(bw))!=OPUS_OK)test_failed(); in run_test1()
437 if(len<0 || len>MAX_PACKET)test_failed(); in run_test1()
438 if(opus_encoder_ctl(enc, OPUS_GET_FINAL_RANGE(&enc_final_range))!=OPUS_OK)test_failed(); in run_test1()
441 if(opus_packet_pad(packet,len,len+1)!=OPUS_OK)test_failed(); in run_test1()
446 if(opus_packet_pad(packet,len,len+256)!=OPUS_OK)test_failed(); in run_test1()
452 if(len<1)test_failed(); in run_test1()
455 if(out_samples!=frame_size)test_failed(); in run_test1()
456 if(opus_decoder_ctl(dec, OPUS_GET_FINAL_RANGE(&dec_final_range))!=OPUS_OK)test_failed(); in run_test1()
457 if(enc_final_range!=dec_final_range)test_failed(); in run_test1()
460 if(out_samples!=frame_size)test_failed(); in run_test1()
462 if(out_samples<120)test_failed(); in run_test1()
470 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(OPUS_AUTO))!=OPUS_OK)test_failed(); in run_test1()
471 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(OPUS_AUTO))!=OPUS_OK)test_failed(); in run_test1()
472 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0))!=OPUS_OK)test_failed(); in run_test1()
473 if(opus_encoder_ctl(enc, OPUS_SET_DTX(0))!=OPUS_OK)test_failed(); in run_test1()
477 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR(rc<2))!=OPUS_OK)test_failed(); in run_test1()
478 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); in run_test1()
479 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); in run_test1()
480 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed(); in run_test1()
487 … if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_INBAND_FEC(rc==0&&j==1))!=OPUS_OK)test_failed(); in run_test1()
488 …ultistream_encoder_ctl(MSenc, OPUS_SET_FORCE_MODE(MODE_SILK_ONLY+modes[j]))!=OPUS_OK)test_failed(); in run_test1()
490 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_DTX(fast_rand()&1))!=OPUS_OK)test_failed(); in run_test1()
491 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_BITRATE(rate))!=OPUS_OK)test_failed(); in run_test1()
496 …if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_PREDICTION_DISABLED(&pred))!=OPUS_OK)test_failed(); in run_test1()
497 …ctl(MSenc, OPUS_SET_PREDICTION_DISABLED((int)(fast_rand()&15)<(pred?11:4)))!=OPUS_OK)test_failed(); in run_test1()
499 … if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_COMPLEXITY((count>>2)%11))!=OPUS_OK)test_failed(); in run_test1()
500 …er_ctl(MSenc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!=OPUS_OK)test_failed(); in run_test1()
503 if(opus_multistream_encoder_ctl(MSenc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
504 if(opus_multistream_decoder_ctl(MSdec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
507 … if(opus_multistream_decoder_ctl(MSdec_err, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
512 if(opus_multistream_decoder_ctl(MSdec_err, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
515 if(len<0 || len>MAX_PACKET)test_failed(); in run_test1()
516 …opus_multistream_encoder_ctl(MSenc, OPUS_GET_FINAL_RANGE(&enc_final_range))!=OPUS_OK)test_failed(); in run_test1()
519 if(opus_multistream_packet_pad(packet,len,len+1,2)!=OPUS_OK)test_failed(); in run_test1()
524 if(opus_multistream_packet_pad(packet,len,len+256,2)!=OPUS_OK)test_failed(); in run_test1()
530 if(len<1)test_failed(); in run_test1()
533 if(out_samples!=frame_size*6)test_failed(); in run_test1()
534 …opus_multistream_decoder_ctl(MSdec, OPUS_GET_FINAL_RANGE(&dec_final_range))!=OPUS_OK)test_failed(); in run_test1()
535 if(enc_final_range!=dec_final_range)test_failed(); in run_test1()
539 if(out_samples!=(frame_size*6))test_failed(); in run_test1()
567 if(len<0 || len>MAX_PACKET)test_failed(); in run_test1()
573 if(out_samples!=frame_size)test_failed(); in run_test1()
578 if(dec_final_range!=enc_final_range)test_failed(); in run_test1()
583 if(opus_packet_parse(packet,len,&toc,frames,size,&payload_offset)<=0)test_failed(); in run_test1()
587 if(out_samples<0||out_samples>MAX_FRAME_SAMP)test_failed(); in run_test1()
588 if((len>0&&out_samples!=frame_size))test_failed(); /*FIXME use lastframe*/ in run_test1()
595 …if(out_samples<0||out_samples>MAX_FRAME_SAMP)test_failed(); /*FIXME, use factor, lastframe for los… in run_test1()
598 if(len>0&&dec_final_range!=dec_final_range2)test_failed(); in run_test1()
614 if(opus_encoder_ctl(enc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
616 if(opus_multistream_encoder_ctl(MSenc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
618 if(opus_decoder_ctl(dec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
620 if(opus_multistream_decoder_ctl(MSdec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
680 if(!oversion)test_failed(); in main()