Commit Graph

352 Commits

Author SHA1 Message Date
Andrei Emeltchenko
06f1d1ffe7 unit/avrcp: Add /TP/BGN/BV-02-I TG test
Test verifies that the Target responds to Prev Group command.
2014-03-13 13:07:44 +02:00
Andrei Emeltchenko
53a2d6dc8f unit/avrcp: Add /TP/BGN/BV-01-I TG test
Test verifies that the Target responds to Next Group command.
2014-03-13 13:07:44 +02:00
Andrei Emeltchenko
8f87093398 unit/avrcp: Add /TP/BGN/BV-02-I test
Test verifies that the Controller can send Prev Group command to the
Target.
2014-03-13 13:07:44 +02:00
Andrei Emeltchenko
3892291b9b unit/avrcp: Add /TP/BGN/BV-01-I test
Test verifies that the Controller can send Next Group command to the
Target.
2014-03-13 13:07:44 +02:00
Szymon Janc
281cfcb8e2 unit/test-hfp: Add initial tests for getting quoted string 2014-03-11 21:08:04 +01:00
Szymon Janc
a03af33911 unit/test-hfp: Add initial tests for getting unquoted string 2014-03-11 21:08:04 +01:00
Szymon Janc
6ca2030173 unit/test-hfp: Add ability to pass custom result handler to test 2014-03-11 21:08:04 +01:00
Luiz Augusto von Dentz
1c3adb4d54 unit/test-avrcp: Fix code style 2014-03-11 16:25:04 +02:00
Andrei Emeltchenko
8538a005b2 unit/avrcp: Add /TP/INV/BI-01-C test
Test verifies that AVRCP_STATUS_INVALID_COMMAND returned when received
command with Invalid PDU ID.
2014-03-11 16:04:30 +02:00
Andrei Emeltchenko
8205b197ca unit/avrcp: Add /TP/NFY/BI-01-C test
Test verifies that Target returns error on register for invalid event.
2014-03-11 16:04:30 +02:00
Andrei Emeltchenko
3ca5b554bc unit/avrcp: Add /TP/NFY/BV-08-C test
Test verifies that Target issued Track Changed INTERIM response when
the track is SELECTED.
2014-03-11 16:04:30 +02:00
Andrei Emeltchenko
0cc7eaa26f unit/avrcp: Add /TP/NFY/BV-05-C test.
Test verifies Register notification - Track Changed - Track Playing.
2014-03-11 16:04:30 +02:00
Andrei Emeltchenko
531e1215f4 unit/avrcp: Pass context to control handlers 2014-03-11 16:04:30 +02:00
Andrei Emeltchenko
c9ef76180a unit/avrcp: Add /TP/NFY/BV-04-C test
Test verifies that Target responds to Register notification - Track
Changed - No Selected Track.
2014-03-10 14:38:59 +02:00
Andrei Emeltchenko
d4714aefba unit/avrcp: Add /TP/NFY/BV-03-C test
Test verifies that Target responds Register notification command with
parameter AVRCP_EVENT_SETTINGS_CHANGED.
2014-03-10 14:38:59 +02:00
Andrei Emeltchenko
83c93e43df unit/avrcp: Add /TP/NFY/BV-02-C test
Test verifies that Target responds to Register notification command.
2014-03-10 14:38:59 +02:00
Andrei Emeltchenko
00506183ab unit/avrcp: Add /TP/NFY/BV-01-C test
Test verifies that Register notification command is issued by
Controller.
2014-03-10 14:20:51 +02:00
Andrei Emeltchenko
d96ac028d5 unit/avrcp: Add /TP/MDI/BV-05-C test
Test verifies that Target responds to Get element attributes cmd.
2014-03-10 14:20:51 +02:00
Andrei Emeltchenko
159b0a82e0 unit/avrcp: Add /TP/MDI/BV-04-C test
Test verifies Get element attributes responded by Target.
2014-03-10 14:20:51 +02:00
Andrei Emeltchenko
b9128441c0 unit/avrcp: Add /TP/MDI/BV-03-C test
Test verifies that Get element attributes issued correctly.
2014-03-10 14:20:51 +02:00
Andrei Emeltchenko
c983fb6ff4 unit/avrcp: Add /TP/MDI/BV-01-C test
Test verifies Get play status.
2014-03-10 14:20:51 +02:00
Andrei Emeltchenko
9ed3273f29 unit/avrcp: Add /TP/MDI/BV-01-C test
Test verifies Get play status command.
2014-03-06 17:36:10 +02:00
Andrei Emeltchenko
d7cb520773 unit/avrcp: Add /TP/PAS/BI-05-C test
Test verifies that Set player application setting value returns error on
invalid attribute value.
2014-03-06 17:36:10 +02:00
Andrei Emeltchenko
23f43b3e11 unit/avrcp: Add /TP/PAS/BI-04-C test
Test verifies that Get current player application setting value return
error when given invalid attribute id.
2014-03-06 17:36:10 +02:00
Andrei Emeltchenko
950304c930 unit/avrcp: Add /TP/PAS/BI-03-C test
Test verifies thst Get player application setting value text returns
error for invalid attribute value.
2014-03-06 17:36:10 +02:00
Andrei Emeltchenko
27b7c838a8 unit/avrcp: Add attributes and value check
Adds check to get_player_value_text() and update test case.
2014-03-06 17:36:10 +02:00
Andrei Emeltchenko
7c93a77bc5 unit/avrcp: Add /TP/PAS/BI-02-C test
Test verifies that List player application setting values returns error
when invalid attribute id is provided.
2014-03-06 17:36:10 +02:00
Andrei Emeltchenko
f3b0143d4a unit/avrcp: Add attributes check in list_player_vals()
Add check and fix test case since it was testing that response is
received but attribute 0 is illegal one.
2014-03-06 17:36:10 +02:00
Andrei Emeltchenko
6378cfeec8 unit/avrcp: Refactor check attributes code
Make check_attributes() function which would handle attributes check.
2014-03-06 17:14:48 +02:00
Marcin Kraglak
88c189479f unit/test-hfp: Add /hfp/test_fragmented_1 2014-03-06 10:19:34 +01:00
Marcin Kraglak
f2ef82bbb8 unit/test-hfp: Add /hfp/test_register_5 2014-03-06 10:19:34 +01:00
Marcin Kraglak
65759704d9 unit/test-hfp: Add /hfp/test_register_4 2014-03-06 10:19:34 +01:00
Marcin Kraglak
7afbdd7448 unit/test-hfp: Add /hfp/test_register_3 2014-03-06 10:19:34 +01:00
Marcin Kraglak
aa8b53c872 unit/test-hfp: Add /hfp/test_register_2 2014-03-06 10:19:34 +01:00
Marcin Kraglak
199af772f1 unit/test-hfp: Add /hfp/test_register_1 2014-03-06 10:19:34 +01:00
Marcin Kraglak
b2db172edd unit/test-hfp: Add /hfp/test_cmd_handler_2 2014-03-06 10:19:34 +01:00
Marcin Kraglak
0a726b22d7 unit/test-hfp: Add /hfp/test_cmd_handler_1 2014-03-06 10:19:34 +01:00
Marcin Kraglak
b60018b3a7 unit: Initial version of test-hfp
This is skeleton of hfp unit tests with basic init test
for hfp_gw_new().
Basic test with hfp_gw_new() and hfp_gw_unref.
2014-03-06 10:19:34 +01:00
Andrei Emeltchenko
028eb517fe unit/avrcp: Add /TP/PAS/BI-01-C test
Test verifies that Get player app setting attribute text returns error
given invalid attribute id.
2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
d73a0523e8 unit/avrcp: Add /TP/PAS/BV-11-C test
Test verifies that the set player application setting value command
issued from the Controller.
2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
efa5208a39 unit/avrcp: Add /TP/PAS/BV-10-C test
Test verifies that the get current player application setting value
response issued from the Target.
2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
c2d03da325 unit/avrcp: Add /TP/PAS/BV-09-C test
Test verifies that get current player application setting value command
issued from the Controller.
2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
9f45944326 unit/avrcp: Add /TP/PAS/BV-08-C test
Test verifies that the get player application setting values response
issued from the Target.
2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
431c1de150 unit/avrcp: Add /TP/PAS/BV-06-C test
Test verifies that the list player application setting values response
issued from the Target.
2014-03-05 10:28:36 +02:00
Luiz Augusto von Dentz
44b0c9f1ed android/avrcp-lib: Make IEEEID_BTSIG public 2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
ccebe1ffa1 android/avrcp-lib: Make hton24 and ntoh24 public
This avoids duplicating those function everytime.
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
b82332a07a android/avrcp-lib: Add pressed status to passthrough handler callback
This adds pressed status to passthrough handler callback which is
required by Android HAL for certain keys such as fast forward and rewind.
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
6727058328 android/avrcp-lib: Fix not passing user data of passthrough callback 2014-03-04 11:32:42 +02:00
Luiz Augusto von Dentz
9350da3d4d android/avrcp-lib: Embed response code into handler table
This makes the handlers code simpler as they don't need to care about
the response or reject opcode.
2014-03-04 11:32:42 +02:00
Luiz Augusto von Dentz
024b631ad0 android/avrcp-lib: Rework handler callback parameters
This rework handler callback parameters to make it able to return
proper error such as -EAGAIN to implement asynchronous responses.
2014-03-04 11:32:42 +02:00