From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4627841855672338370==" MIME-Version: 1.0 From: Kristen Carlson Accardi Subject: [PATCH 4/9] test-stkutil: add html attribute tests for get_inkey_test Date: Tue, 13 Jul 2010 05:40:50 -0700 Message-ID: <1279024855-10586-5-git-send-email-kristen@linux.intel.com> In-Reply-To: <1279024855-10586-1-git-send-email-kristen@linux.intel.com> List-Id: To: ofono@ofono.org --===============4627841855672338370== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable --- unit/test-stkutil.c | 75 ++++++++++++++++++++++++++++++++++++++++-------= ---- 1 files changed, 59 insertions(+), 16 deletions(-) diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index bca2899..c38b272 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -984,6 +984,7 @@ struct get_inkey_test { struct stk_duration duration; struct stk_text_attribute text_attr; struct stk_frame_id frame_id; + char *html; }; = static unsigned char get_inkey_111[] =3D { 0xD0, 0x15, 0x81, 0x03, 0x01, 0= x22, @@ -1589,7 +1590,9 @@ static struct get_inkey_test get_inkey_data_911 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x00, 0xB4 } - } + }, + .html =3D "
Enter \"+\"
", }; = static struct get_inkey_test get_inkey_data_912 =3D { @@ -1607,7 +1610,10 @@ static struct get_inkey_test get_inkey_data_921 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x01, 0xB4 } - } + }, + .html =3D "
Enter \"+\"" + "
", }; = static struct get_inkey_test get_inkey_data_922 =3D { @@ -1625,7 +1631,10 @@ static struct get_inkey_test get_inkey_data_931 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x02, 0xB4 } - } + }, + .html =3D "
Enter \"+\"" + "
", }; = static struct get_inkey_test get_inkey_data_932 =3D { @@ -1643,7 +1652,10 @@ static struct get_inkey_test get_inkey_data_941 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x04, 0xB4 } - } + }, + .html =3D "
Enter \"+\"" + "
", }; = static struct get_inkey_test get_inkey_data_942 =3D { @@ -1654,7 +1666,9 @@ static struct get_inkey_test get_inkey_data_942 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x00, 0xB4 } - } + }, + .html =3D "
Enter \"#\"
", }; = static struct get_inkey_test get_inkey_data_943 =3D { @@ -1672,7 +1686,10 @@ static struct get_inkey_test get_inkey_data_951 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x08, 0xB4 } - } + }, + .html =3D "
" + "Enter \"+\"
", }; = static struct get_inkey_test get_inkey_data_952 =3D { @@ -1683,7 +1700,9 @@ static struct get_inkey_test get_inkey_data_952 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x00, 0xB4 } - } + }, + .html =3D "
Enter \"#\"
", }; = static struct get_inkey_test get_inkey_data_953 =3D { @@ -1701,7 +1720,10 @@ static struct get_inkey_test get_inkey_data_961 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x10, 0xB4 } - } + }, + .html =3D "
Enter \"+\"" + "
", }; = static struct get_inkey_test get_inkey_data_962 =3D { @@ -1712,7 +1734,9 @@ static struct get_inkey_test get_inkey_data_962 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x00, 0xB4 } - } + }, + .html =3D "
Enter \"#\"
", }; = static struct get_inkey_test get_inkey_data_963 =3D { @@ -1730,7 +1754,10 @@ static struct get_inkey_test get_inkey_data_971 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x20, 0xB4 } - } + }, + .html =3D "
" + "Enter \"+\"
", }; = static struct get_inkey_test get_inkey_data_972 =3D { @@ -1741,7 +1768,9 @@ static struct get_inkey_test get_inkey_data_972 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x00, 0xB4 } - } + }, + .html =3D "
Enter \"#\"
", }; = static struct get_inkey_test get_inkey_data_973 =3D { @@ -1759,7 +1788,10 @@ static struct get_inkey_test get_inkey_data_981 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x40, 0xB4 } - } + }, + .html =3D "
Enter \"+\"
", }; = static struct get_inkey_test get_inkey_data_982 =3D { @@ -1770,7 +1802,9 @@ static struct get_inkey_test get_inkey_data_982 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x00, 0xB4 } - } + }, + .html =3D "
Enter \"#\"
", }; = static struct get_inkey_test get_inkey_data_983 =3D { @@ -1788,7 +1822,10 @@ static struct get_inkey_test get_inkey_data_991 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x80, 0xB4 } - } + }, + .html =3D "
Enter \"+\"
", }; = static struct get_inkey_test get_inkey_data_992a =3D { @@ -1799,7 +1836,9 @@ static struct get_inkey_test get_inkey_data_992a =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x00, 0xB4 } - } + }, + .html =3D "
Enter \"#\"
", }; = static struct get_inkey_test get_inkey_data_992b =3D { @@ -1824,7 +1863,9 @@ static struct get_inkey_test get_inkey_data_9101 =3D { .text_attr =3D { .len =3D 4, .attributes =3D { 0x00, 0x09, 0x00, 0xB4 } - } + }, + .html =3D "
Enter \"+\"
", }; = static struct get_inkey_test get_inkey_data_9102 =3D { @@ -1906,6 +1947,8 @@ static void test_get_inkey(gconstpointer data) check_duration(&command->get_inkey.duration, &test->duration); check_text_attr(&command->get_inkey.text_attr, &test->text_attr); + check_text_attr_html(&command->get_inkey.text_attr, + command->get_inkey.text, test->html); check_frame_id(&command->get_inkey.frame_id, &test->frame_id); = stk_command_free(command); -- = 1.6.6.1 --===============4627841855672338370==--