From 485c89c7ac9aa3a5f3e980004881abb68ca8b597 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 27 Sep 2012 14:23:56 -0500 Subject: [PATCH] unit: Move display text data to common header --- Makefile.am | 3 +- unit/stk-test-data.h | 179 ++++++++++++++++++++++++++++++++++++ unit/test-stkutil.c | 212 +------------------------------------------ 3 files changed, 183 insertions(+), 211 deletions(-) create mode 100644 unit/stk-test-data.h diff --git a/Makefile.am b/Makefile.am index fcad1b80..89dda2d7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -668,7 +668,8 @@ unit_test_simutil_SOURCES = unit/test-simutil.c src/util.c \ unit_test_simutil_LDADD = @GLIB_LIBS@ unit_objects += $(unit_test_simutil_OBJECTS) -unit_test_stkutil_SOURCES = unit/test-stkutil.c src/util.c \ +unit_test_stkutil_SOURCES = unit/test-stkutil.c unit/stk-test-data.h \ + src/util.c \ src/storage.c src/smsutil.c \ src/simutil.c src/stkutil.c unit_test_stkutil_LDADD = @GLIB_LIBS@ diff --git a/unit/stk-test-data.h b/unit/stk-test-data.h new file mode 100644 index 00000000..41308dff --- /dev/null +++ b/unit/stk-test-data.h @@ -0,0 +1,179 @@ +static const unsigned char display_text_111[] = { + 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0F, 0x04, 0x54, 0x6F, 0x6F, 0x6C, 0x6B, 0x69, 0x74, 0x20, 0x54, 0x65, + 0x73, 0x74, 0x20, 0x31 +}; + +static const unsigned char display_text_response_111[] = { + 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, +}; + +static const unsigned char display_text_response_121[] = { + 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, 0x81, 0x83, 0x02, 0x20, + 0x01, +}; + +static const unsigned char display_text_131[] = { + 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x81, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0F, 0x04, 0x54, 0x6F, 0x6F, 0x6C, 0x6B, 0x69, 0x74, 0x20, 0x54, 0x65, + 0x73, 0x74, 0x20, 0x32 +}; + +static const unsigned char display_text_response_131[] = { + 0x81, 0x03, 0x01, 0x21, 0x81, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, +}; + +static const unsigned char display_text_141[] = { + 0xD0, 0x19, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0E, 0x00, 0xD4, 0xF7, 0x9B, 0xBD, 0x4E, 0xD3, 0x41, 0xD4, 0xF2, 0x9C, + 0x0E, 0x9A, 0x01 +}; + +static const unsigned char display_text_151[] = { + 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x00, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0F, 0x04, 0x54, 0x6F, 0x6F, 0x6C, 0x6B, 0x69, 0x74, 0x20, 0x54, 0x65, + 0x73, 0x74, 0x20, 0x34 +}; + +static const unsigned char display_text_response_151[] = { + 0x81, 0x03, 0x01, 0x21, 0x00, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00, +}; + +static const unsigned char display_text_161[] = { + 0xD0, 0x81, 0xAD, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, + 0x8D, 0x81, 0xA1, 0x04, 0x54, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6F, 0x6D, + 0x6D, 0x61, 0x6E, 0x64, 0x20, 0x69, 0x6E, 0x73, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x4D, 0x45, 0x20, 0x74, 0x6F, + 0x20, 0x64, 0x69, 0x73, 0x70, 0x6C, 0x61, 0x79, 0x20, 0x61, 0x20, 0x74, + 0x65, 0x78, 0x74, 0x20, 0x6D, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2E, + 0x20, 0x49, 0x74, 0x20, 0x61, 0x6C, 0x6C, 0x6F, 0x77, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x53, 0x49, 0x4D, 0x20, 0x74, 0x6F, 0x20, 0x64, 0x65, + 0x66, 0x69, 0x6E, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x69, + 0x6F, 0x72, 0x69, 0x74, 0x79, 0x20, 0x6F, 0x66, 0x20, 0x74, 0x68, 0x61, + 0x74, 0x20, 0x6D, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2C, 0x20, 0x61, + 0x6E, 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x65, 0x78, 0x74, 0x20, + 0x73, 0x74, 0x72, 0x69, 0x6E, 0x67, 0x20, 0x66, 0x6F, 0x72, 0x6D, 0x61, + 0x74, 0x2E, 0x20, 0x54, 0x77, 0x6F, 0x20, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x20, 0x6F, 0x66, 0x20, 0x70, 0x72, 0x69, 0x6F +}; + +static const unsigned char display_text_171[] = { + 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0F, 0x04, 0x3C, 0x47, 0x4F, 0x2D, 0x42, 0x41, 0x43, 0x4B, 0x57, 0x41, + 0x52, 0x44, 0x53, 0x3E +}; + +static const unsigned char display_text_response_171[] = { + 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x11, +}; + +static const unsigned char display_text_response_181[] = { + 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x10, +}; + +static const unsigned char display_text_response_191[] = { + 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x32, +}; + +static const unsigned char display_text_response_211[] = { + 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x12, +}; + +static const unsigned char display_text_511[] = { + 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0B, 0x04, 0x42, 0x61, 0x73, 0x69, 0x63, 0x20, 0x49, 0x63, 0x6F, 0x6E, + 0x9E, 0x02, 0x00, 0x01 +}; + +static const unsigned char display_text_response_511b[] = { + 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x04, +}; + +static const unsigned char display_text_521[] = { + 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0C, 0x04, 0x43, 0x6F, 0x6C, 0x6F, 0x75, 0x72, 0x20, 0x49, 0x63, 0x6F, + 0x6E, 0x9E, 0x02, 0x00, 0x02 +}; + +static const unsigned char display_text_531[] = { + 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0B, 0x04, 0x42, 0x61, 0x73, 0x69, 0x63, 0x20, 0x49, 0x63, 0x6F, 0x6E, + 0x9E, 0x02, 0x01, 0x01 +}; + +static const unsigned char display_text_611[] = { + 0xD0, 0x24, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x19, 0x08, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, 0x04, 0x12, + 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, 0x04, 0x22, + 0x04, 0x15 +}; + +static const unsigned char display_text_711[] = { + 0xD0, 0x19, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x0A, 0x04, 0x31, 0x30, 0x20, 0x53, 0x65, 0x63, 0x6F, 0x6E, 0x64, 0x84, + 0x02, 0x01, 0x0A +}; + +static const unsigned char display_text_811[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x00, 0xB4 +}; + +static const unsigned char display_text_821[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80,0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x01, 0xB4 +}; + +static const unsigned char display_text_831[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x02, 0xB4 +}; + +static const unsigned char display_text_841[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x04, 0xB4 +}; + +static const unsigned char display_text_851[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x08, 0xB4 +}; + +static const unsigned char display_text_861[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x10, 0xB4 +}; + +static const unsigned char display_text_871[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x20, 0xB4 +}; + +static const unsigned char display_text_881[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x40, 0xB4 +}; + +static const unsigned char display_text_891[] = { + 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x11, 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, 0x04, 0x00, 0x10, 0x80, 0xB4 +}; + +static const unsigned char display_text_911[] = { + 0xD0, 0x10, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x05, 0x08, 0x4F, 0x60, 0x59, 0x7D +}; + +static const unsigned char display_text_1011[] = { + 0xD0, 0x12, 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, + 0x07, 0x08, 0x00, 0x38, 0x00, 0x30, 0x30, 0xEB +}; diff --git a/unit/test-stkutil.c b/unit/test-stkutil.c index b0bea5f4..a883e283 100644 --- a/unit/test-stkutil.c +++ b/unit/test-stkutil.c @@ -37,6 +37,8 @@ #include "stkutil.h" #include "util.h" +#include "stk-test-data.h" + #define MAX_ITEM 100 struct sms_submit_test { @@ -607,171 +609,6 @@ struct display_text_test { const char *html; }; -unsigned char display_text_111[] = { 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0F, - 0x04, 0x54, 0x6F, 0x6F, 0x6C, 0x6B, - 0x69, 0x74, 0x20, 0x54, 0x65, 0x73, - 0x74, 0x20, 0x31 }; - -unsigned char display_text_131[] = { 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x81, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0F, - 0x04, 0x54, 0x6F, 0x6F, 0x6C, 0x6B, - 0x69, 0x74, 0x20, 0x54, 0x65, 0x73, - 0x74, 0x20, 0x32 }; - -unsigned char display_text_141[] = { 0xD0, 0x19, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0E, - 0x00, 0xD4, 0xF7, 0x9B, 0xBD, 0x4E, - 0xD3, 0x41, 0xD4, 0xF2, 0x9C, 0x0E, - 0x9A, 0x01 }; - -unsigned char display_text_151[] = { 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x00, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0F, - 0x04, 0x54, 0x6F, 0x6F, 0x6C, 0x6B, - 0x69, 0x74, 0x20, 0x54, 0x65, 0x73, - 0x74, 0x20, 0x34 }; - -unsigned char display_text_161[] = { 0xD0, 0x81, 0xAD, 0x81, 0x03, 0x01, 0x21, - 0x80, 0x82, 0x02, 0x81, 0x02, 0x8D, - 0x81, 0xA1, 0x04, 0x54, 0x68, 0x69, - 0x73, 0x20, 0x63, 0x6F, 0x6D, 0x6D, - 0x61, 0x6E, 0x64, 0x20, 0x69, 0x6E, - 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, - 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x4D, 0x45, 0x20, 0x74, 0x6F, 0x20, - 0x64, 0x69, 0x73, 0x70, 0x6C, 0x61, - 0x79, 0x20, 0x61, 0x20, 0x74, 0x65, - 0x78, 0x74, 0x20, 0x6D, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2E, 0x20, - 0x49, 0x74, 0x20, 0x61, 0x6C, 0x6C, - 0x6F, 0x77, 0x73, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x53, 0x49, 0x4D, 0x20, - 0x74, 0x6F, 0x20, 0x64, 0x65, 0x66, - 0x69, 0x6E, 0x65, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x70, 0x72, 0x69, 0x6F, - 0x72, 0x69, 0x74, 0x79, 0x20, 0x6F, - 0x66, 0x20, 0x74, 0x68, 0x61, 0x74, - 0x20, 0x6D, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x2C, 0x20, 0x61, 0x6E, - 0x64, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x74, 0x65, 0x78, 0x74, 0x20, 0x73, - 0x74, 0x72, 0x69, 0x6E, 0x67, 0x20, - 0x66, 0x6F, 0x72, 0x6D, 0x61, 0x74, - 0x2E, 0x20, 0x54, 0x77, 0x6F, 0x20, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x20, - 0x6F, 0x66, 0x20, 0x70, 0x72, 0x69, - 0x6F }; - -unsigned char display_text_171[] = { 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0F, - 0x04, 0x3C, 0x47, 0x4F, 0x2D, 0x42, - 0x41, 0x43, 0x4B, 0x57, 0x41, 0x52, - 0x44, 0x53, 0x3E }; - -unsigned char display_text_511[] = { 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0B, - 0x04, 0x42, 0x61, 0x73, 0x69, 0x63, - 0x20, 0x49, 0x63, 0x6F, 0x6E, 0x9E, - 0x02, 0x00, 0x01 }; - -unsigned char display_text_521[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0C, - 0x04, 0x43, 0x6F, 0x6C, 0x6F, 0x75, - 0x72, 0x20, 0x49, 0x63, 0x6F, 0x6E, - 0x9E, 0x02, 0x00, 0x02 }; - -unsigned char display_text_531[] = { 0xD0, 0x1A, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0B, - 0x04, 0x42, 0x61, 0x73, 0x69, 0x63, - 0x20, 0x49, 0x63, 0x6F, 0x6E, 0x9E, - 0x02, 0x01, 0x01 }; - -unsigned char display_text_611[] = { 0xD0, 0x24, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x19, - 0x08, 0x04, 0x17, 0x04, 0x14, 0x04, - 0x20, 0x04, 0x10, 0x04, 0x12, 0x04, - 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, - 0x23, 0x04, 0x19, 0x04, 0x22, 0x04, - 0x15 }; - -unsigned char display_text_711[] = { 0xD0, 0x19, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x0A, - 0x04, 0x31, 0x30, 0x20, 0x53, 0x65, - 0x63, 0x6F, 0x6E, 0x64, 0x84, 0x02, - 0x01, 0x0A }; - -unsigned char display_text_811[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x00, 0xB4 }; - -unsigned char display_text_821[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x01, 0xB4 }; - -unsigned char display_text_831[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x02, 0xB4 }; - -unsigned char display_text_841[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x04, 0xB4 }; - -unsigned char display_text_851[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x08, 0xB4 }; - -unsigned char display_text_861[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x10, 0xB4 }; - -unsigned char display_text_871[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x20, 0xB4 }; - -unsigned char display_text_881[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x40, 0xB4 }; - -unsigned char display_text_891[] = { 0xD0, 0x22, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x11, - 0x04, 0x54, 0x65, 0x78, 0x74, 0x20, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x20, 0x31, 0xD0, - 0x04, 0x00, 0x10, 0x80, 0xB4 }; - -unsigned char display_text_911[] = { 0xD0, 0x10, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x05, - 0x08, 0x4F, 0x60, 0x59, 0x7D }; - -unsigned char display_text_1011[] = { 0xD0, 0x12, 0x81, 0x03, 0x01, 0x21, 0x80, - 0x82, 0x02, 0x81, 0x02, 0x8D, 0x07, - 0x08, 0x00, 0x38, 0x00, 0x30, 0x30, - 0xEB }; - static struct display_text_test display_text_data_111 = { .pdu = display_text_111, .pdu_len = sizeof(display_text_111), @@ -17629,11 +17466,6 @@ static void test_terminal_response_encoding(gconstpointer data) g_assert(memcmp(pdu, test->pdu, pdu_len) == 0); } -static const unsigned char display_text_response_111[] = { - 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, -}; - static const struct terminal_response_test display_text_response_data_111 = { .pdu = display_text_response_111, .pdu_len = sizeof(display_text_response_111), @@ -17649,11 +17481,6 @@ static const struct terminal_response_test display_text_response_data_111 = { }, }; -static const unsigned char display_text_response_121[] = { - 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x02, 0x20, 0x01, -}; - static const struct terminal_response_test display_text_response_data_121 = { .pdu = display_text_response_121, .pdu_len = sizeof(display_text_response_121), @@ -17671,11 +17498,6 @@ static const struct terminal_response_test display_text_response_data_121 = { }, }; -static const unsigned char display_text_response_131[] = { - 0x81, 0x03, 0x01, 0x21, 0x81, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, -}; - static const struct terminal_response_test display_text_response_data_131 = { .pdu = display_text_response_131, .pdu_len = sizeof(display_text_response_131), @@ -17691,11 +17513,6 @@ static const struct terminal_response_test display_text_response_data_131 = { }, }; -static const unsigned char display_text_response_151[] = { - 0x81, 0x03, 0x01, 0x21, 0x00, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x00, -}; - static const struct terminal_response_test display_text_response_data_151 = { .pdu = display_text_response_151, .pdu_len = sizeof(display_text_response_151), @@ -17711,11 +17528,6 @@ static const struct terminal_response_test display_text_response_data_151 = { }, }; -static const unsigned char display_text_response_171[] = { - 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x11, -}; - static const struct terminal_response_test display_text_response_data_171 = { .pdu = display_text_response_171, .pdu_len = sizeof(display_text_response_171), @@ -17731,11 +17543,6 @@ static const struct terminal_response_test display_text_response_data_171 = { }, }; -static const unsigned char display_text_response_181[] = { - 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x10, -}; - static const struct terminal_response_test display_text_response_data_181 = { .pdu = display_text_response_181, .pdu_len = sizeof(display_text_response_181), @@ -17751,11 +17558,6 @@ static const struct terminal_response_test display_text_response_data_181 = { }, }; -static const unsigned char display_text_response_191[] = { - 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x32, -}; - static const struct terminal_response_test display_text_response_data_191 = { .pdu = display_text_response_191, .pdu_len = sizeof(display_text_response_191), @@ -17771,11 +17573,6 @@ static const struct terminal_response_test display_text_response_data_191 = { }, }; -static const unsigned char display_text_response_211[] = { - 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x12, -}; - static const struct terminal_response_test display_text_response_data_211 = { .pdu = display_text_response_211, .pdu_len = sizeof(display_text_response_211), @@ -17791,11 +17588,6 @@ static const struct terminal_response_test display_text_response_data_211 = { }, }; -static const unsigned char display_text_response_511b[] = { - 0x81, 0x03, 0x01, 0x21, 0x80, 0x82, 0x02, 0x82, - 0x81, 0x83, 0x01, 0x04, -}; - static const struct terminal_response_test display_text_response_data_511b = { .pdu = display_text_response_511b, .pdu_len = sizeof(display_text_response_511b),