void test_gcc_write_conference_create_request(void) { STREAM* s; STREAM user_data; user_data.data = gcc_user_data; user_data.size = sizeof(gcc_user_data); user_data.p = user_data.data + user_data.size; s = stream_new(sizeof(gcc_conference_create_request_expected)); gcc_write_conference_create_request(s, &user_data); ASSERT_STREAM(s, (uint8*) gcc_conference_create_request_expected, sizeof(gcc_conference_create_request_expected)); }
void test_gcc_write_conference_create_request(void) { wStream* s; wStream user_data; user_data.buffer = gcc_user_data; user_data.capacity = sizeof(gcc_user_data); user_data.pointer = user_data.buffer + user_data.capacity; s = stream_new(sizeof(gcc_conference_create_request_expected)); gcc_write_conference_create_request(s, &user_data); ASSERT_STREAM(s, (BYTE*) gcc_conference_create_request_expected, sizeof(gcc_conference_create_request_expected)); }