Changeset 4375 for pjproject/branches/1.x/pjsip/src/test/uri_test.c
- Timestamp:
- Feb 27, 2013 9:28:31 AM (12 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x
- Property svn:mergeinfo changed
/pjproject/trunk merged: 4209-4210
- Property svn:mergeinfo changed
-
pjproject/branches/1.x/pjsip/src/test/uri_test.c
r3553 r4375 68 68 static pjsip_uri *create_uri16( pj_pool_t *pool ); 69 69 static pjsip_uri *create_uri17( pj_pool_t *pool ); 70 static pjsip_uri *create_uri18( pj_pool_t *pool ); 70 71 static pjsip_uri *create_uri25( pj_pool_t *pool ); 71 72 static pjsip_uri *create_uri26( pj_pool_t *pool ); … … 82 83 static pjsip_uri *create_uri37( pj_pool_t *pool ); 83 84 static pjsip_uri *create_uri38( pj_pool_t *pool ); 85 static pjsip_uri *create_uri39( pj_pool_t *pool ); 84 86 static pjsip_uri *create_dummy( pj_pool_t *pool ); 85 87 … … 350 352 &create_uri38, 351 353 "\"\xC0\x81\" <sip:localhost>" 354 }, 355 { 356 /* Even number of backslash before end quote in display name. */ 357 PJ_SUCCESS, 358 "\"User\\\\\" <sip:localhost>", 359 &create_uri39, 352 360 } 353 361 … … 758 766 return (pjsip_uri*)name; 759 767 768 } 769 770 /* "\"User\\\\\" <sip:localhost>" */ 771 static pjsip_uri *create_uri39(pj_pool_t *pool) 772 { 773 pjsip_name_addr *name_addr = pjsip_name_addr_create(pool); 774 pjsip_sip_uri *url; 775 776 url = pjsip_sip_uri_create(pool, 0); 777 name_addr->uri = (pjsip_uri*) url; 778 779 pj_strdup2(pool, &name_addr->display, "User\\\\"); 780 pj_strdup2(pool, &url->host, "localhost"); 781 return (pjsip_uri*)name_addr; 760 782 } 761 783
Note: See TracChangeset
for help on using the changeset viewer.