Commit f3667359 authored by Slava Monich's avatar Slava Monich

[mms-lib] Added retrieve/Success3 test case

parent d83579a1
<smil>
<head>
<layout>
<root-layout/>
<region width="100%" height="30%" left="0%" fit="scroll" id="Text" top="0%"/>
<region width="100%" height="70%" left="0%" fit="meet" id="Image" top="30%"/>
</layout>
</head>
<body>
<par dur="5s">
<img region="Image" src="cid:1"/>
</par>
<par dur="5s">
<text region="Text" src="cid:2"/>
</par>
</body>
</smil>
Баночка
\ No newline at end of file
......@@ -72,7 +72,7 @@ typedef struct test {
int ret;
} Test;
static const TestPartDesc retrieve_success_parts [] = {
static const TestPartDesc retrieve_success1_parts [] = {
{ "application/smil;charset=utf-8", "<0>", "0.smil" },
{ "text/plain;charset=utf-8", "<text_0011.txt>", "text_0011.txt" },
{ "image/jpeg", "<131200181.jpg>", "131200181.jpg" },
......@@ -86,12 +86,18 @@ static const TestPartDesc retrieve_success2_parts [] = {
{ "application/smil;charset=utf-8", "<332047400>", "332047400" },
};
static const TestPartDesc retrieve_success3_parts [] = {
{ "application/smil;charset=utf-8", "<0>", "0" },
{ "image/jpeg", "<1>", "1.jpg" },
{ "text/plain;charset=utf-8", "<2>", "text_001.txt" }
};
#define TEST_PARTS(parts) parts, G_N_ELEMENTS(parts)
#define TEST_PARTS_NONE NULL, 0
static const TestDesc retrieve_tests[] = {
{
"Success",
"Success1",
NULL,
"m-notification.ind",
"m-retrieve.conf",
......@@ -100,11 +106,11 @@ static const TestDesc retrieve_tests[] = {
NULL,
MMS_RECEIVE_STATE_DECODING,
MMS_MESSAGE_TYPE_ACKNOWLEDGE_IND,
TEST_PARTS(retrieve_success_parts),
TEST_PARTS(retrieve_success1_parts),
0
},{
"DeferSuccess",
"Success",
},{
"Success2", /* Generated by Nokia C6 (Symbian "Belle") */
NULL,
"m-notification.ind",
"m-retrieve.conf",
SOUP_STATUS_OK,
......@@ -112,10 +118,10 @@ static const TestDesc retrieve_tests[] = {
NULL,
MMS_RECEIVE_STATE_DECODING,
MMS_MESSAGE_TYPE_ACKNOWLEDGE_IND,
TEST_PARTS(retrieve_success_parts),
TEST_DEFER_RECEIVE
TEST_PARTS(retrieve_success2_parts),
0
},{
"Success2", /* Generated by Nokia C6 (Symbian "Belle") */
"Success3", /* Generated by Nokia N9 */
NULL,
"m-notification.ind",
"m-retrieve.conf",
......@@ -124,8 +130,20 @@ static const TestDesc retrieve_tests[] = {
NULL,
MMS_RECEIVE_STATE_DECODING,
MMS_MESSAGE_TYPE_ACKNOWLEDGE_IND,
TEST_PARTS(retrieve_success2_parts),
TEST_PARTS(retrieve_success3_parts),
0
},{
"DeferSuccess",
"Success1",
"m-notification.ind",
"m-retrieve.conf",
SOUP_STATUS_OK,
MMS_CONTENT_TYPE,
NULL,
MMS_RECEIVE_STATE_DECODING,
MMS_MESSAGE_TYPE_ACKNOWLEDGE_IND,
TEST_PARTS(retrieve_success1_parts),
TEST_DEFER_RECEIVE
},{
"Expired",
NULL,
......
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