libusbgx: tests: Separate common code of gadget testing
authorPawel Szewczyk <p.szewczyk@samsung.com>
Tue, 5 May 2015 09:49:01 +0000 (11:49 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 20:45:36 +0000 (21:45 +0100)
commit9549829a45df232401509dfd77f9231a9152121b
tree28108bbebaef8d51a40eedf49034322b87d33e17
parent718b86e50fbb3279bd2d7af15fcb2f4cab0db986
libusbgx: tests: Separate common code of gadget testing

Most gadget tests run the same initialization and loop through all
gadgets, performing single operation on them and checking results.
Common code is now separated to for_each_test_gadget function.

Change-Id: I0a1870487aa0c25153c96e57da5501e1bccb8132
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
tests/test.c
tests/usbg-test.c
tests/usbg-test.h