summaryrefslogtreecommitdiff
path: root/unit
Commit message (Collapse)AuthorAgeFilesLines
* unit/test-uuid: Fix using strcmpLuiz Augusto von Dentz2015-12-041-2/+2
| | | | | | It is no longer guaranteed the string will match since bt_uuid_to_string now always uses 128 Bits format to be consistent with the format used over D-Bus.
* hog: Move code from android to profilesLuiz Augusto von Dentz2015-11-131-1/+1
| | | | | This is a place holder until the code is ported to use shared API so it can be shared by android and D-Bus daemon.
* unit: Fix gobex unit testsSzymon Janc2015-10-271-1/+1
| | | | | | | /gobex/test_header_encode_connid test name was duplicated. This results in Glib assert: (unit/test-gobex-header:15356): GLib-ERROR **: duplicate test case path: /gobex/test_header_encode_connid
* unit/test-uhid: Use tester frameworkGowtham Anandha Babu2015-10-021-36/+26
|
* unit/test-sdp: Use tester frameworkGowtham Anandha Babu2015-10-021-51/+40
|
* unit/test-hfp: Use tester frameworkGowtham Anandha Babu2015-10-021-47/+44
|
* unit/test-gdbus-client: Fix memory leakLuiz Augusto von Dentz2015-08-261-0/+4
| | | | | | | | | | | | | | | | | | | The following memory leak is causes if not all interfaces are freed once closing the connecting: 7,738 (232 direct, 7,506 indirect) bytes in 1 blocks are definitely lost in loss record 302 of 302 at 0x4C2A9C7: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x519517F: ??? (in /usr/lib64/libdbus-1.so.3.8.13) by 0x519EF8E: ??? (in /usr/lib64/libdbus-1.so.3.8.13) by 0x519F462: ??? (in /usr/lib64/libdbus-1.so.3.8.13) by 0x5193419: ??? (in /usr/lib64/libdbus-1.so.3.8.13) by 0x517E6AE: ??? (in /usr/lib64/libdbus-1.so.3.8.13) by 0x517A06B: ??? (in /usr/lib64/libdbus-1.so.3.8.13) by 0x4076B9: g_dbus_setup_private (mainloop.c:314) by 0x404B8C: client_force_disconnect (test-gdbus-client.c:882) by 0x410B52: run_callback (tester.c:417) by 0x4E7EA89: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4400.1) by 0x4E7EE1F: ??? (in /usr/lib64/libglib-2.0.so.0.4400.1)
* unit/test-gatt: Add /TP/GAW/CL/BI-23-C/auto testLuiz Augusto von Dentz2015-06-241-0/+8
| | | | | /TP/GAW/CL/BI-23-C/auto is similar to /TP/GAW/CL/BI-23-C but automatically elevates the security level and retry.
* unit/test-gatt: Add /TP/GAW/CL/BI-18-C/auto testLuiz Augusto von Dentz2015-06-241-0/+10
| | | | | /TP/GAW/CL/BI-18-C/auto is similar to /TP/GAW/CL/BI-18-C but automatically elevates the security level and retry.
* unit/test-gatt: Add /TP/GAW/CL/BI-05-C/auto testLuiz Augusto von Dentz2015-06-241-0/+8
| | | | | /TP/GAW/CL/BI-05-C/auto is similar to /TP/GAW/CL/BI-05-C but automatically elevates the security level and retry.
* unit/test-gatt: Add /TP/GAR/CL/BI-32-C/auto testLuiz Augusto von Dentz2015-06-241-0/+8
| | | | | /TP/GAR/CL/BI-32-C/auto is similar to /TP/GAR/CL/BI-32-C but automatically elevates the security level and retry.
* unit/test-gatt: Add /TP/GAR/CL/BI-26-C/auto testLuiz Augusto von Dentz2015-06-241-0/+8
| | | | | /TP/GAR/CL/BI-26-C/auto is similar to /TP/GAR/CL/BI-26-C but automatically elevates the security level and retry.
* unit/test-gatt: Add /TP/GAR/CL/BI-21-C/auto testLuiz Augusto von Dentz2015-06-241-0/+8
| | | | | /TP/GAR/CL/BI-21-C/auto is similar to /TP/GAR/CL/BI-21-C but automatically elevates the security level and retry.
* unit/test-gatt: Add /TP/GAR/CL/BI-16-C/auto testLuiz Augusto von Dentz2015-06-241-0/+8
| | | | | /TP/GAR/CL/BI-16-C/auto is similar to /TP/GAR/CL/BI-16-C but automatically elevates the security level and retry.
* unit/test-gatt: Add /TP/GAR/CL/BI-04-C/auto testLuiz Augusto von Dentz2015-06-241-0/+8
| | | | | /TP/GAR/CL/BI-04-C/auto is similar to TP/GAR/CL/BI-04-C but automatically elevates the security level and retry.
* unit/test-gatt: Use auto securityLuiz Augusto von Dentz2015-06-241-0/+4
| | | | | If the test don't expect any errors to happen use set security to auto so bt_att will take care of elevating the security whenever needed.
* unit/test-gatt: Fix /TP/GAR/CL/BV-07-C testLuiz Augusto von Dentz2015-06-231-1/+1
| | | | | The response should be Read Blob Reponse 0x0d not 0x0b which is Read Response.
* unit/test-gatt: Fix /TP/GAR/CL/BV-04-C testLuiz Augusto von Dentz2015-06-231-1/+1
| | | | | The response should be Read Blob Reponse 0x0d not 0x0b which is Read Response.
* unit/test-uuid: Use tester frameworkGowtham Anandha Babu2015-05-221-22/+30
|
* unit/test-lib: Use tester frameworkGowtham Anandha Babu2015-05-221-45/+61
|
* unit/test-queue: Use tester frameworkGowtham Anandha Babu2015-05-221-21/+34
|
* unit/test-textfile: Use tester frameworkGowtham Anandha Babu2015-05-221-26/+23
|
* unit/test-ringbuf: Use tester frameworkGowtham Anandha Babu2015-05-221-14/+17
|
* shared/att: Add ext_signed flag to be able to use external cryptoMariusz Skamra2015-05-193-3/+3
| | | | | | | | | | | | | Due to the issues with CSRK tests ext_signed flag has been added to allow android/gatt handle signed write operations. This patch fixes following tests: GAP__TC_SEC_CSIGN_BV_02_C GAP__TC_SEC_CSIGN_BI_01_C GAP__TC_SEC_CSIGN_BI_02_C GAP__TC_SEC_CSIGN_BI_03_C GAP__TC_SEC_CSIGN_BI_04_C SM__TC_SIGN_BV_03_C
* unit/test-gdbus-client: Don't run tests if setup failsLuiz Augusto von Dentz2015-05-181-1/+1
| | | | | This will make all gdbus tests be ignored if D-Bus is not available and one cannot be created with dbus-run-session.
* shared/att: Rename sec_level to securityLuiz Augusto von Dentz2015-04-291-1/+1
|
* shared/att: Add own security definitionsLuiz Augusto von Dentz2015-04-281-1/+1
| | | | | This defines security level at ATT level so it is not necessary to use transport specific defines.
* unit/test-gdbus-client: Fix hanging if D-Bus fails to launchLuiz Augusto von Dentz2015-04-221-0/+1
| | | | | In case D-Bus fails to launch make the test fails so it does not hang other tests.
* unit/test-eir: Add ad/uri-beacon testLuiz Augusto von Dentz2015-04-201-1/+27
| | | | | | This adds test for uir-beacon define bellow: https://github.com/google/uribeacon/blob/master/specification/AdvertisingMode.md
* unit/gatt: Add TP/GAW/CL/BI-19-C testGowtham Anandha Babu2015-04-171-0/+16
| | | | | | Verify Generic Attribute Profile client behavior when the Characteristic Value Reliable Write procedure fails due to insufficient encryption key size.
* unit/gatt: Add TP/GAW/CL/BI-18-C testGowtham Anandha Babu2015-04-171-0/+16
| | | | | Verify Generic Attribute Profile client behavior when the Characteristic Value Reliable Write procedure fails due to insufficient authentication.
* unit/gatt: Add TP/GAW/CL/BI-17-C testGowtham Anandha Babu2015-04-171-0/+16
| | | | | Verify Generic Attribute Profile client behavior when the Characteristic Value Reliable Write procedure fails due to insufficient authorization.
* unit/gatt: Add TP/GAW/CL/BI-15-C testGowtham Anandha Babu2015-04-171-0/+16
| | | | | Verify Generic Attribute Profile client behavior when the Characteristic Value Reliable Write procedure fails due to write not permitted.
* unit/gatt: Add TP/GAW/CL/BI-14-C testGowtham Anandha Babu2015-04-171-0/+16
| | | | | Verify Generic Attribute Profile client behavior when the Characteristic Value Reliable Write procedure fails due to invalid handle.
* unit/gatt: Add TP/GAW/CL/BV-06-C testGowtham Anandha Babu2015-04-171-0/+39
| | | | | Verify that a Generic Attribute Profile client can reliably write a characteristic selected by handle.
* android/avrcp-lib: Use void pointer in register_notificationSzymon Janc2015-04-161-4/+5
| | | | | | In this callback params vary depending on code. Passing those as void* allows to avoid extra memcpy that would be otherwise needed to avoid warnings due to increased alignment when casting.
* unit/test-eir: Add ad/g-tag testLuiz Augusto von Dentz2015-04-141-0/+37
| | | | | This adds a test for Gigaset G-tag advertisement and prints manufacturer specific data.
* unit: Use local includes and not global onesMarcel Holtmann2015-04-131-3/+1
|
* unit/test-gdbus-client: Fix memory leak on client_no_object_managerLuiz Augusto von Dentz2015-04-121-0/+5
| | | | | | | | | | | | | | | | | | When creating a proxy manually with g_dbus_proxy_new it has to be freed with g_dbus_proxy_unref otherwise it leaks: 395 (80 direct, 315 indirect) bytes in 1 blocks are definitely lost in loss record 800 of 834 at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4E84575: g_try_malloc0 (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x40E244: proxy_new (client.c:411) by 0x40F7FD: g_dbus_proxy_new (client.c:485) by 0x405844: client_no_object_manager (test-gdbus-client.c:837) by 0x410882: run_callback (tester.c:413) by 0x4E7E7FA: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EB97: ??? (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EEC1: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x411CF1: tester_run (tester.c:831) by 0x4045E1: main (test-gdbus-client.c:986)
* unit/test-gdbus-client: Fix memory leakLuiz Augusto von Dentz2015-04-121-0/+1
| | | | | | | | | | | | | | | | | | | This fixes leaking DBusConnection created by client_force_disconnect causing the following trace: 40 bytes in 1 blocks are definitely lost in loss record 501 of 839 at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x519D9E1: ??? (in /usr/lib64/libdbus-1.so.3.8.11) by 0x5191F94: ??? (in /usr/lib64/libdbus-1.so.3.8.11) by 0x517AC1A: ??? (in /usr/lib64/libdbus-1.so.3.8.11) by 0x517D754: ??? (in /usr/lib64/libdbus-1.so.3.8.11) by 0x51790FB: ??? (in /usr/lib64/libdbus-1.so.3.8.11) by 0x407739: g_dbus_setup_private (mainloop.c:314) by 0x404ECC: client_force_disconnect (test-gdbus-client.c:879) by 0x4108B2: run_callback (tester.c:413) by 0x4E7E7FA: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EB97: ??? (in /usr/lib64/libglib-2.0.so.0.4200.2) by 0x4E7EEC1: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.4200.2)
* unit/test-gdbus-client: Fix test client_no_object_managerLuiz Augusto von Dentz2015-04-121-8/+4
| | | | | | This test creates a second connection without using the one created by create_context and doesn't disconnect making test client_force_disconnect fail.
* unit/test-gdbus-client: Use tester frameworkLuiz Augusto von Dentz2015-04-121-192/+69
|
* unit/test-eir: Use tester frameworkLuiz Augusto von Dentz2015-04-121-35/+43
|
* unit/test-ecc: Use tester frameworkLuiz Augusto von Dentz2015-04-121-57/+42
|
* unit/test-crypto: Use tester frameworkLuiz Augusto von Dentz2015-04-121-19/+16
|
* unit/test-crc: Use tester frameworkLuiz Augusto von Dentz2015-04-121-19/+18
|
* unit/test-gatt: Add TP/GAW/CL/BI-31-C testBharat Panda2015-04-101-0/+16
| | | | | | Verify Generic Attribute Profile client behavior when the Write Long Characteristic Descriptor procedure fails due to insufficient encryption key size.
* unit/test-gatt: Add TP/GAW/CL/BI-30-C testBharat Panda2015-04-101-0/+16
| | | | | | Verify Generic Attribute Profile client behavior when the Write Long Characteristic Descriptor procedure fails due to insufficient authentication.
* unit/test-gatt: Add TP/GAW/CL/BI-29-C testGowtham Anandha Babu2015-04-101-0/+16
| | | | | | Verify Generic Attribute Profile client behavior when the Write Long Characteristic Descriptor procedure fails due to insufficient authorization.
* unit/test-gatt: Add TP/GAW/CL/BI-26-C testGowtham Anandha Babu2015-04-101-0/+16
| | | | | | Verify Generic Attribute Profile client behavior when the Write Long Characteristic Descriptor procedure fails due to write not permitted.