Lines Matching refs:test_failed

104    if(fout==NULL)test_failed();
138 test_failed(); in get_frame_size_enum()
217 if(err!=OPUS_OK || dec==NULL)test_failed(); in fuzz_encoder_settings()
220 if(err!=OPUS_OK || enc==NULL)test_failed(); in fuzz_encoder_settings()
240 if(opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
241 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(force_channel)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
242 if(opus_encoder_ctl(enc, OPUS_SET_VBR(vbr)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
243 … if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(vbr_constraint)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
244 if(opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(complexity)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
245 if(opus_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(max_bw)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
246 if(opus_encoder_ctl(enc, OPUS_SET_SIGNAL(sig)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
247 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(inband_fec)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
248 if(opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(pkt_loss)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
249 if(opus_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(lsb_depth)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
250 … if(opus_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(pred_disabled)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
251 if(opus_encoder_ctl(enc, OPUS_SET_DTX(dtx)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
252 …f(opus_encoder_ctl(enc, OPUS_SET_EXPERT_FRAME_DURATION(frame_size_enum)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
263 test_failed(); in fuzz_encoder_settings()
302 if(err != OPUS_OK || enc==NULL)test_failed(); in run_test1()
309 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
312 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
315 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
318 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
321 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
324 if((ret_err && *ret_err != OPUS_BAD_ARG) || MSenc!=NULL)test_failed(); in run_test1()
328 if(err != OPUS_OK || MSenc==NULL)test_failed(); in run_test1()
331 if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_BITRATE(&i))!=OPUS_OK)test_failed(); in run_test1()
332 if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_LSB_DEPTH(&i))!=OPUS_OK)test_failed(); in run_test1()
333 if(i<16)test_failed(); in run_test1()
337 …istream_encoder_ctl(MSenc, OPUS_MULTISTREAM_GET_ENCODER_STATE(1,&tmp_enc))!=OPUS_OK)test_failed(); in run_test1()
338 if(opus_encoder_ctl(tmp_enc, OPUS_GET_LSB_DEPTH(&j))!=OPUS_OK)test_failed(); in run_test1()
339 if(i!=j)test_failed(); in run_test1()
340 …am_encoder_ctl(MSenc, OPUS_MULTISTREAM_GET_ENCODER_STATE(2,&tmp_enc))!=OPUS_BAD_ARG)test_failed(); in run_test1()
344 if(err != OPUS_OK || dec==NULL)test_failed(); in run_test1()
347 if(err != OPUS_OK || MSdec==NULL)test_failed(); in run_test1()
350 if(err != OPUS_OK || MSdec_err==NULL)test_failed(); in run_test1()
363 for(i=0;i<10;i++)if(dec_err[i]==NULL)test_failed(); in run_test1()
378 if(inbuf==NULL || outbuf==NULL || out2buf==NULL)test_failed(); in run_test1()
387 if(opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO))!=OPUS_OK)test_failed(); in run_test1()
388 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(-2))!=OPUS_BAD_ARG)test_failed(); in run_test1()
389 if(opus_encode(enc, inbuf, 500, packet, MAX_PACKET)!=OPUS_BAD_ARG)test_failed(); in run_test1()
393 if(opus_encoder_ctl(enc, OPUS_SET_VBR(rc<2))!=OPUS_OK)test_failed(); in run_test1()
394 if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); in run_test1()
395 if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); in run_test1()
396 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed(); in run_test1()
410 if(opus_encoder_ctl(enc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
411 if(opus_decoder_ctl(dec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
414 … if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
419 if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
423 if(opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(complex))!=OPUS_OK)test_failed(); in run_test1()
426 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed(); in run_test1()
427 … if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_SILK_ONLY+modes[j]))!=OPUS_OK)test_failed(); in run_test1()
428 if(opus_encoder_ctl(enc, OPUS_SET_DTX(fast_rand()&1))!=OPUS_OK)test_failed(); in run_test1()
429 if(opus_encoder_ctl(enc, OPUS_SET_BITRATE(rate))!=OPUS_OK)test_failed(); in run_test1()
430 … if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS((rates[j]>=64000?2:1)))!=OPUS_OK)test_failed(); in run_test1()
431 if(opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY((count>>2)%11))!=OPUS_OK)test_failed(); in run_test1()
432 …oder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!=OPUS_OK)test_failed(); in run_test1()
437 if(opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(bw))!=OPUS_OK)test_failed(); in run_test1()
439 if(len<0 || len>MAX_PACKET)test_failed(); in run_test1()
440 if(opus_encoder_ctl(enc, OPUS_GET_FINAL_RANGE(&enc_final_range))!=OPUS_OK)test_failed(); in run_test1()
443 if(opus_packet_pad(packet,len,len+1)!=OPUS_OK)test_failed(); in run_test1()
448 if(opus_packet_pad(packet,len,len+256)!=OPUS_OK)test_failed(); in run_test1()
454 if(len<1)test_failed(); in run_test1()
457 if(out_samples!=frame_size)test_failed(); in run_test1()
458 if(opus_decoder_ctl(dec, OPUS_GET_FINAL_RANGE(&dec_final_range))!=OPUS_OK)test_failed(); in run_test1()
459 if(enc_final_range!=dec_final_range)test_failed(); in run_test1()
462 if(out_samples!=frame_size)test_failed(); in run_test1()
464 if(out_samples<120)test_failed(); in run_test1()
472 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(OPUS_AUTO))!=OPUS_OK)test_failed(); in run_test1()
473 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(OPUS_AUTO))!=OPUS_OK)test_failed(); in run_test1()
474 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0))!=OPUS_OK)test_failed(); in run_test1()
475 if(opus_encoder_ctl(enc, OPUS_SET_DTX(0))!=OPUS_OK)test_failed(); in run_test1()
479 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR(rc<2))!=OPUS_OK)test_failed(); in run_test1()
480 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); in run_test1()
481 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); in run_test1()
482 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed(); in run_test1()
489 … if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_INBAND_FEC(rc==0&&j==1))!=OPUS_OK)test_failed(); in run_test1()
490 …ultistream_encoder_ctl(MSenc, OPUS_SET_FORCE_MODE(MODE_SILK_ONLY+modes[j]))!=OPUS_OK)test_failed(); in run_test1()
492 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_DTX(fast_rand()&1))!=OPUS_OK)test_failed(); in run_test1()
493 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_BITRATE(rate))!=OPUS_OK)test_failed(); in run_test1()
498 …if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_PREDICTION_DISABLED(&pred))!=OPUS_OK)test_failed(); in run_test1()
499 …ctl(MSenc, OPUS_SET_PREDICTION_DISABLED((int)(fast_rand()&15)<(pred?11:4)))!=OPUS_OK)test_failed(); in run_test1()
501 … if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_COMPLEXITY((count>>2)%11))!=OPUS_OK)test_failed(); in run_test1()
502 …er_ctl(MSenc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!=OPUS_OK)test_failed(); in run_test1()
505 if(opus_multistream_encoder_ctl(MSenc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
506 if(opus_multistream_decoder_ctl(MSdec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
509 … if(opus_multistream_decoder_ctl(MSdec_err, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
514 if(opus_multistream_decoder_ctl(MSdec_err, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
517 if(len<0 || len>MAX_PACKET)test_failed(); in run_test1()
518 …opus_multistream_encoder_ctl(MSenc, OPUS_GET_FINAL_RANGE(&enc_final_range))!=OPUS_OK)test_failed(); in run_test1()
521 if(opus_multistream_packet_pad(packet,len,len+1,2)!=OPUS_OK)test_failed(); in run_test1()
526 if(opus_multistream_packet_pad(packet,len,len+256,2)!=OPUS_OK)test_failed(); in run_test1()
532 if(len<1)test_failed(); in run_test1()
535 if(out_samples!=frame_size*6)test_failed(); in run_test1()
536 …opus_multistream_decoder_ctl(MSdec, OPUS_GET_FINAL_RANGE(&dec_final_range))!=OPUS_OK)test_failed(); in run_test1()
537 if(enc_final_range!=dec_final_range)test_failed(); in run_test1()
541 if(out_samples!=(frame_size*6))test_failed(); in run_test1()
569 if(len<0 || len>MAX_PACKET)test_failed(); in run_test1()
575 if(out_samples!=frame_size)test_failed(); in run_test1()
580 if(dec_final_range!=enc_final_range)test_failed(); in run_test1()
585 if(opus_packet_parse(packet,len,&toc,frames,size,&payload_offset)<=0)test_failed(); in run_test1()
589 if(out_samples<0||out_samples>MAX_FRAME_SAMP)test_failed(); in run_test1()
590 if((len>0&&out_samples!=frame_size))test_failed(); /*FIXME use lastframe*/ in run_test1()
597 …if(out_samples<0||out_samples>MAX_FRAME_SAMP)test_failed(); /*FIXME, use factor, lastframe for los… in run_test1()
600 if(len>0&&dec_final_range!=dec_final_range2)test_failed(); in run_test1()
616 if(opus_encoder_ctl(enc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
618 if(opus_multistream_encoder_ctl(MSenc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
620 if(opus_decoder_ctl(dec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
622 if(opus_multistream_decoder_ctl(MSdec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
682 if(!oversion)test_failed(); in main()