Commit 5763f61e authored by jehan's avatar jehan

fix tester https_get_long_body to point to a more reliable address (I.E...

fix tester https_get_long_body to point to a more reliable address (I.E https://smtp.linphone.org/linphone.html)
parent f45351c3
......@@ -481,6 +481,16 @@ BELLE_SIP_END_DECLS
* BELLE_SIP_DECLARE_VPTR(belle_sip_dns_srv_t);
*/
#if defined(__cplusplus) && defined(BELLE_SIP_USE_STL)
#include <ostream>
inline ostream&
operator<<( ostream& __os, const belle_sip_object_t* object)
{
char* object_as_string = belle_sip_object_to_string((void*)object);
__os << object_as_string;
belle_sip_free(object_as_string);
return __os;
}
#endif
#endif
......@@ -76,6 +76,7 @@ static struct header_name_func_pair header_table[] = {
,{PROTO_SIP, BELLE_SIP_DATE, (header_parse_func)belle_sip_header_date_parse}
,{PROTO_SIP, BELLE_SIP_P_PREFERRED_IDENTITY, (header_parse_func)belle_sip_header_p_preferred_identity_parse}
,{PROTO_SIP, BELLE_SIP_PRIVACY, (header_parse_func)belle_sip_header_privacy_parse}
,{PROTO_SIP, BELLE_SIP_EVENT, (header_parse_func)belle_sip_header_event_parse}
};
static belle_sip_header_t* belle_header_create(const char* name,const char* value,int protocol) {
......
......@@ -150,7 +150,7 @@ static void one_https_get(void){
static void https_get_long_body(void){
http_counters_t counters={0};
one_get("https://www.linphone.org/technical-corner/linphone/overview",&counters, &counters.response_count);
one_get("https://smtp.linphone.org/linphone.html",&counters, &counters.response_count);
CU_ASSERT_TRUE(counters.response_count==1);
CU_ASSERT_TRUE(counters.io_error_count==0);
CU_ASSERT_EQUAL(counters.two_hundred,1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment