diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-02-05 17:28:22 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-11 19:21:09 +0200 |
commit | 1ee30fa6ef32e3c88bb7f6e6b46b0111b819ac5f (patch) | |
tree | 778d946cf44a46fae635aae14acbd431487e161a /unit/test-avctp.c | |
parent | d3fd69d9809145643b17cd0d5926143c7c39863d (diff) | |
download | bluez-1ee30fa6ef32e3c88bb7f6e6b46b0111b819ac5f.tar.gz |
unit/avctp: Cleanup code, remove fragmentation support
Diffstat (limited to 'unit/test-avctp.c')
-rw-r--r-- | unit/test-avctp.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/unit/test-avctp.c b/unit/test-avctp.c index 9d94ae07a..be1dfd741 100644 --- a/unit/test-avctp.c +++ b/unit/test-avctp.c @@ -42,7 +42,6 @@ struct test_pdu { bool valid; - bool fragmented; const uint8_t *data; size_t size; }; @@ -71,14 +70,6 @@ struct context { .size = sizeof(data(args)), \ } -#define frg_pdu(args...) \ - { \ - .valid = true, \ - .fragmented = true, \ - .data = data(args), \ - .size = sizeof(data(args)), \ - } - #define define_test(name, function, args...) \ do { \ const struct test_pdu pdus[] = { \ @@ -133,9 +124,6 @@ static gboolean send_pdu(gpointer user_data) g_assert_cmpint(len, ==, pdu->size); - if (pdu->fragmented) - return send_pdu(user_data); - context->process = 0; return FALSE; } @@ -180,8 +168,7 @@ static gboolean test_handler(GIOChannel *channel, GIOCondition cond, g_assert(memcmp(buf, pdu->data, pdu->size) == 0); - if (!pdu->fragmented) - context_process(context); + context_process(context); return TRUE; } |