Changeset 2882 for pjproject


Ignore:
Timestamp:
Aug 15, 2009 10:05:36 AM (15 years ago)
Author:
bennylp
Message:

Ticket #944: misc fixes in pjmedia_test:

  • Assertion in pjmedia tests's MIPS test with iLBC codec due to ptime mismatch
  • added compile time macro in test.h to enable/disable specific tests
  • also added SVN keyword expansion attributes to the source files
Location:
pjproject/trunk/pjmedia/src/test
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/test/audio_tool.c

    • Property svn:keywords set to id
  • pjproject/trunk/pjmedia/src/test/jbuf_test.c

    • Property svn:keywords set to id
  • pjproject/trunk/pjmedia/src/test/mips_test.c

    r2675 r2882  
    388388    unsigned         valid_op; 
    389389    unsigned         valid_clock_rate; 
     390 
    390391    pjmedia_port*  (*init)(pj_pool_t *pool, 
    391392                          unsigned clock_rate, 
     
    834835                                         struct test_entry *te) 
    835836{ 
     837    samples_per_frame = 30 * clock_rate / 1000; 
    836838    return codec_encode_decode(pool, "ilbc", &ilbc_init,  
    837839                               &pjmedia_codec_ilbc_deinit, clock_rate,  
     
    22162218        return t0; 
    22172219    } 
     2220 
     2221    /* Port may decide to use different ptime (e.g. iLBC) */ 
     2222    samples_per_frame = port->info.samples_per_frame; 
    22182223 
    22192224    gen_port = create_gen_port(pool, clock_rate, 1,  
  • pjproject/trunk/pjmedia/src/test/rtp_test.c

    • Property svn:keywords set to id
  • pjproject/trunk/pjmedia/src/test/sdptest.c

    • Property svn:keywords set to id
  • pjproject/trunk/pjmedia/src/test/session_test.c

    • Property svn:keywords set to id
  • pjproject/trunk/pjmedia/src/test/test.c

    • Property svn:keywords set to id
    r2613 r2882  
    5757    mem = &caching_pool.factory; 
    5858 
     59#if HAS_SDP_NEG_TEST 
    5960    DO_TEST(sdp_neg_test()); 
     61#endif 
    6062    //DO_TEST(sdp_test (&caching_pool.factory)); 
    6163    //DO_TEST(rtp_test(&caching_pool.factory)); 
    6264    //DO_TEST(session_test (&caching_pool.factory)); 
     65#if HAS_JBUF_TEST 
    6366    DO_TEST(jbuf_main()); 
     67#endif 
     68#if HAS_MIPS_TEST 
    6469    DO_TEST(mips_test()); 
     70#endif 
     71#if HAS_CODEC_VECTOR_TEST 
    6572    DO_TEST(codec_test_vectors()); 
     73#endif 
    6674 
    6775    PJ_LOG(3,(THIS_FILE," ")); 
  • pjproject/trunk/pjmedia/src/test/test.h

    r2613 r2882  
    2424#include <pjlib.h> 
    2525 
     26#define HAS_SDP_NEG_TEST        1 
     27#define HAS_JBUF_TEST           1 
     28#define HAS_MIPS_TEST           1 
     29#define HAS_CODEC_VECTOR_TEST   1 
    2630 
    2731int session_test(void); 
  • pjproject/trunk/pjmedia/src/test/wince_main.c

    • Property svn:keywords changed from "Id Revision" to id
Note: See TracChangeset for help on using the changeset viewer.