summaryrefslogtreecommitdiff
path: root/unit/test-avctp.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Replace use of g_memdup with util_memdupLuiz Augusto von Dentz2022-01-061-2/+2
| | | | | | | | | | | This replaces the uses of g_memdup with util_memdup since the former has been deprecated: warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations] g_memdup2 requires bumping glib version which would likely have its own problems thus why util_memdup was introduced.
* unit: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- GPL-2.0-or-later : 25 LGPL-2.1-or-later : 1 GPL-2.0-only : 2 BSD-2-Clause : 1 License: GPL-2.0-or-later unit/test-hog.c unit/test-eir.c unit/test-gobex-header.c unit/test-crc.c unit/test-avrcp.c unit/test-ringbuf.c unit/test-gobex-apparam.c unit/test-gobex.c unit/test-hfp.c unit/test-textfile.c unit/test-avdtp.c unit/test-sdp.c unit/test-gatt.c unit/test-avctp.c unit/test-gattrib.c unit/test-queue.c unit/test-gobex-packet.c unit/test-uuid.c unit/test-crypto.c unit/test-uhid.c unit/test-gdbus-client.c unit/test-midi.c unit/test-lib.c unit/test-mgmt.c unit/test-gobex-transfer.c License: LGPL-2.1-or-later unit/test-mesh-crypto.c License: GPL-2.0-only unit/util.h unit/util.c License: BSD-2-Clause unit/test-ecc.c
* unit: Fix fsanitize-address-use-after-scope with GCC 9Luiz Augusto von Dentz2019-01-141-2/+7
| | | | | | | Raw data payload must be copied since the declaration goes out of scope: Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=202213
* unit: Make use of tester_monitor to print input/output PDUsLuiz Augusto von Dentz2018-10-081-9/+2
| | | | | | | | | | | | | | | | | | | | | | | tester_monitor will forward the data to btmon when -m/--monitor is enabled which will attempt to decode the PDUs: = test-gatt: /robustness/unkown-command - init 11:44:53.464325 = test-gatt: /robustness/unkown-command - setup = test-gatt: /robustness/unkown-command - setup complete = test-gatt: /robustness/unkown-command - run < test-gatt: User Data TX ATT: Exchange MTU Request (0x02) len 2 Client RX MTU: 23 > test-gatt: User Data RX ATT: Exchange MTU Response (0x03) len 2 Server RX MTU: 512 < test-gatt: User Data TX ATT: Unknown (0xff) len 1 00 . = test-gatt: /robustness/unkown-command - test passed = test-gatt: /robustness/unkown-command - teardown = test-gatt: /robustness/unkown-command - teardown complete = test-gatt: /robustness/unkown-command - done
* unit: Replace use of g_malloc+memcpy with gmemdupLuiz Augusto von Dentz2015-03-271-2/+1
| | | | | This seems to fix problems of make check not working in 32 bit systems with gcc 5.0.
* unit/test-avctp: Remove DBG callsLuiz Augusto von Dentz2015-03-271-7/+0
|
* unit/test-avctp: Use tester frameworkLuiz Augusto von Dentz2015-03-261-40/+23
| | | | Our tester framework actually produces much better output.
* android/avctp: Make avctp_send_vendor_req to take struct iovecLuiz Augusto von Dentz2014-04-151-1/+1
| | | | This makes it possible to pass data without copying.
* android/avctp: Make handler return ssize_tLuiz Augusto von Dentz2014-03-041-1/+1
| | | | | This makes possible to return errors such as -EAGAIN to indicate the request would block and a response will be sent asynchronously.
* unit/avctp: Cleanup code, remove fragmentation supportAndrei Emeltchenko2014-02-111-14/+1
|
* unit/avctp: Use pre-defined values instead of magic numbersAndrei Emeltchenko2014-02-111-4/+4
|
* unit/avctp: Add TP/NFR/BV-04-C testAndrei Emeltchenko2014-02-051-9/+31
| | | | Add test TP/NFR/BV-04-C for AVCTP.
* unit/AVCTP: Add test TP/NFR/BV-03-CAndrei Emeltchenko2014-02-041-0/+31
| | | | | The test verifies that IUT (TG) correctly reports the parameters of the incoming command in the handler callback.
* unit/AVCTP: Add connection establishment dummy testsAndrei Emeltchenko2014-02-041-3/+27
| | | | | Add some tests checking that L2CAP connection is established, so they are basically dummy tests.
* unit/avctp: Add TP/NFR/BI-01-C testAndrei Emeltchenko2014-01-291-0/+4
| | | | | | To verify that the IUT (TG) reports to the test system (CT) the reception of a control message intended for an invalid PID (PID not registered for reception of messages).
* unit/avctp: Add TP/NFR/BV-02-C testAndrei Emeltchenko2014-01-291-0/+13
| | | | | | | | To verify that the IUT (TG) formats correctly the following fields of the AVCTP response message: “transaction label”, "message type(R)", PID, “packet type”, IPID and “message information”. Check that AVCTP send response packet along with other information. Payload is out of scope of this test (AVC_CTYPE_REJECTED is OK).
* unit/avctp: Add AVCTP unit test skeleton and first testAndrei Emeltchenko2014-01-291-0/+258
Adds test TP/NFR/BV-01-C. To verify that the IUT (CT) formats correctly the following fields of the AVCTP command message: “transaction label”, "message type(C)", PID, “packet type”, IPID and “message information”.