Commit Graph

16 Commits

Author SHA1 Message Date
Sebastian Zagrodzki
1fd4e7f4c4 Check if the device is already closed and if the interface is already
claimed.
2017-04-29 00:27:51 +02:00
Sebastian Zagrodzki
0cfaee3514 Fail operations if Close was called before. 2017-04-29 00:18:26 +02:00
Sebastian Zagrodzki
b6268be76b Merge branch 'gousb2.0-dev' of https://github.com/kylelemons/gousb into gousb2.0-dev 2017-04-29 00:04:01 +02:00
Sebastian Zagrodzki
5f122b4dcd Introduce two more layers between device and endpoint:
device -> active config -> claimed interface -> endpoints.
Device can have at most one active config. A config can have
multiple claimed interfaces, each with a specific alt setting.
An interface with an alt setting defines a list of endpoints.
2017-04-29 00:01:11 +02:00
Sebastian Zagrodzki
26b662893d Use a new behavior of newFakeLibusb.
Add a benchmark for subslicing.
2017-04-27 03:26:08 +02:00
Sebastian Zagrodzki
2bcc25f8d0 Close the Context 2017-04-27 03:01:10 +02:00
Sebastian Zagrodzki
d92ea14c33 Add a test to catch invalud endpoint info. 2017-04-10 03:25:32 +02:00
Sebastian Zagrodzki
57b10f0dd3 Remove OpenEndpoint, add InEndpoint for Read transfers. 2017-04-10 01:00:53 +02:00
Sebastian Zagrodzki
dd405348e9 move tests around 2017-04-09 20:55:37 +02:00
Sebastian Zagrodzki
81f2998055 Merge branch 'coverage' into libusb_wrappers_tests 2017-03-10 08:55:45 -05:00
Sebastian Zagrodzki
c918a7e503 Skip the test, until rewritten. 2017-03-10 07:08:00 -05:00
Sebastian Zagrodzki
3b0b2f1a6b consistent skip message 2017-03-09 12:56:46 -05:00
Sebastian Zagrodzki
76721213eb Skip descriptor test on Travis. 2017-03-09 12:34:49 -05:00
Sebastian Zagrodzki
beb4fdbac5 Update copyright notes for multiple contributors. 2017-02-07 07:37:57 +01:00
Kyle Lemons
8736c99b74 Whitelist tests for travis-ci 2016-04-03 10:25:58 -07:00
nodtem66
c7d3dad580 add unit test device_test.go 2015-03-04 01:36:51 +07:00