Changeset 1610 for pjproject/trunk/pjsip/src/test-pjsip/uri_test.c
- Timestamp:
- Dec 2, 2007 3:40:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/uri_test.c
r1373 r1610 77 77 static pjsip_uri *create_uri33( pj_pool_t *pool ); 78 78 static pjsip_uri *create_uri34( pj_pool_t *pool ); 79 //static pjsip_uri *create_uri35( pj_pool_t *pool ); 79 static pjsip_uri *create_uri35( pj_pool_t *pool ); 80 static pjsip_uri *create_uri36( pj_pool_t *pool ); 80 81 static pjsip_uri *create_dummy( pj_pool_t *pool ); 81 82 … … 319 320 "tel:911;p1=p1;p2=p2" 320 321 }, 321 322 { 323 /* 35: IPv6 in host and maddr parameter */ 324 PJ_SUCCESS, 325 "sip:user@[::1];maddr=[::01]", 326 &create_uri35, 327 "sip:user@[::1];maddr=[::01]" 328 }, 329 { 330 /* 36: IPv6 in host and maddr, without username */ 331 PJ_SUCCESS, 332 "sip:[::1];maddr=[::01]", 333 &create_uri36, 334 "sip:[::1];maddr=[::01]" 335 } 336 322 337 }; 323 338 … … 670 685 } 671 686 687 /* "sip:user@[::1];maddr=[::01]" */ 688 static pjsip_uri *create_uri35( pj_pool_t *pool ) 689 { 690 pjsip_sip_uri *url; 691 url = pjsip_sip_uri_create(pool, 0); 692 url->user = pj_str("user"); 693 url->host = pj_str("::1"); 694 url->maddr_param = pj_str("::01"); 695 return (pjsip_uri*)url; 696 } 697 698 /* "sip:[::1];maddr=[::01]" */ 699 static pjsip_uri *create_uri36( pj_pool_t *pool ) 700 { 701 pjsip_sip_uri *url; 702 url = pjsip_sip_uri_create(pool, 0); 703 url->host = pj_str("::1"); 704 url->maddr_param = pj_str("::01"); 705 return (pjsip_uri*)url; 706 707 } 672 708 673 709 static pjsip_uri *create_dummy(pj_pool_t *pool) … … 825 861 } 826 862 863 #if INCLUDE_BENCHMARKS 827 864 static int uri_benchmark(unsigned *p_parse, unsigned *p_print, unsigned *p_cmp) 828 865 { … … 910 947 return status; 911 948 } 912 949 #endif /* INCLUDE_BENCHMARKS */ 913 950 914 951 /*****************************************************************************/ … … 930 967 return status; 931 968 969 #if INCLUDE_BENCHMARKS 932 970 for (i=0; i<COUNT; ++i) { 933 971 PJ_LOG(3,(THIS_FILE, " benchmarking (%d of %d)...", i+1, COUNT)); … … 994 1032 report_ival("uri-cmp-per-sec", max, "URI/sec", desc); 995 1033 1034 #endif /* INCLUDE_BENCHMARKS */ 1035 996 1036 return PJ_SUCCESS; 997 1037 }
Note: See TracChangeset
for help on using the changeset viewer.