Changeset 471:5719067e39e9 in verona


Ignore:
Timestamp:
Apr 19, 2012 6:28:09 PM (14 months ago)
Author:
Vadim Lebedev <vadim@…>
Branch:
default
Message:

fix test code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phtest/phtests_funcs.cpp

    r361 r471  
    175175}  
    176176 
     177typedef std::pair<const char*, const char*> cstrpair; 
     178 
    177179int testSubscribe(testConf *conf) 
    178180{ 
    179181        int res; 
     182        std::vector<cstrpair>  hdrs; 
    180183 
    181184        INFO_LOG("begin with vlid %i", conf->vline); 
    182         conf->sid = testsphapi.subscribe(conf->vline, conf->otheruri, PH_SUBS_ADDRBOOK_QRY ,conf->addrbook); 
     185        hdrs.push_back(cstrpair("X-AddressBook", conf->addrbook)); 
     186        conf->sid = testsphapi.subscribe(conf->vline, conf->otheruri, PH_SUBS_ADDRBOOK_QRY , 1, 600, &hdrs); 
    183187        INFO_LOG("end with sid %i", conf->sid); 
    184188        return res >= 0; 
Note: See TracChangeset for help on using the changeset viewer.