libusbgx: tests: Add simulation of configfs for init by wrapping i/o funcs.
authorPawel Szewczyk <p.szewczyk@samsung.com>
Tue, 9 Sep 2014 09:28:11 +0000 (11:28 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 20:41:57 +0000 (21:41 +0100)
commit1491564999d3ec9b3dd1d41165de47435ab2177e
tree074d20ab559a3baf70d775958c61483468818847
parent8c9547cca5dfd25e3e76e54f8353641a38987f4d
libusbgx: tests: Add simulation of configfs for init by wrapping i/o funcs.

To separate libusbgx from configfs we simulate it by replacing i/o
functions. We can define gadgets and pass them to init and other usbg
functions through simulated file system.

Change-Id: I9d0964f13b6ef7385d32d6f0d6775fe88ff8eb17
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
tests/usbg-io-wrappers.c [new file with mode: 0644]
tests/usbg-test.c [new file with mode: 0644]
tests/usbg-test.h [new file with mode: 0644]