diff options
author | WonYoung Choi <wy80.choi@samsung.com> | 2012-08-21 18:21:38 +0900 |
---|---|---|
committer | WonYoung Choi <wy80.choi@samsung.com> | 2012-08-21 18:21:38 +0900 |
commit | a072c5641b78a97fb4c189ba1c0857a6e795eb12 (patch) | |
tree | 3b1cb3feaed08d9d4495790d960b4f3e3b6fb197 /test/messages_send_mms_test.c | |
parent | f41432be2cab10f39c241ecfa80f0e25f5ee639c (diff) | |
download | messages-a072c5641b78a97fb4c189ba1c0857a6e795eb12.tar.gz messages-a072c5641b78a97fb4c189ba1c0857a6e795eb12.tar.bz2 messages-a072c5641b78a97fb4c189ba1c0857a6e795eb12.zip |
upload 2.0_beta code
Diffstat (limited to 'test/messages_send_mms_test.c')
-rw-r--r-- | test/messages_send_mms_test.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/messages_send_mms_test.c b/test/messages_send_mms_test.c index 0eead72..52c396c 100644 --- a/test/messages_send_mms_test.c +++ b/test/messages_send_mms_test.c @@ -3,6 +3,8 @@ #include <messages.h> +#define TEST_NUMBER "000000000" + void _sent_cb(messages_sending_result_e result, void *user_data) { } @@ -28,21 +30,17 @@ int main(int argc, char *argv[]) return 1; } - messages_add_address(msg, "3488858734"); + messages_add_address(msg, TEST_NUMBER, MESSAGES_RECIPIENT_TO); messages_set_text(msg, "This is a multi-media message!"); messages_mms_set_subject(msg, "TEST!"); messages_mms_add_attachment(msg, MESSAGES_MEDIA_VIDEO, "/opt/etc/msg-service/V091120_104905.3gp"); messages_mms_add_attachment(msg, MESSAGES_MEDIA_IMAGE, "/opt/etc/msg-service/P091120_104633.jpg"); + printf("Before Sending\n"); + // send message - ret = messages_set_message_sent_cb(svc, _sent_cb, NULL); - if (MESSAGES_ERROR_NONE != ret) { - printf("error: messages_set_message_sent_cb() = %d", ret); - return 1; - } - - ret = messages_send_message(svc, msg); + ret = messages_send_message(svc, msg, true, _sent_cb, NULL); if (MESSAGES_ERROR_NONE != ret) { printf("error: messages_send_message() = %d", ret); return 1; |