summaryrefslogtreecommitdiff
path: root/unit/test-gobex-transfer.c
Commit message (Collapse)AuthorAgeFilesLines
* unit/gobex: remove timer only when it's not removed yetArchie Pusaka2021-05-061-190/+263
| | | | | | | | | There are instances where timer is removed because timeout has occurred, yet we still remove it again by the end of the test. This causes double removal and prints ugly messages which obscures the real culprit. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* 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
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-1/+1
|
* unit: Fix includes for gobex.h headerMarcel Holtmann2015-03-011-1/+1
|
* unit/test-gobex-transfer: Add /gobex/test_packet_get_req_suspend_resumeLuiz Augusto von Dentz2014-02-201-4/+77
| | | | | This adds a test to call g_obex_suspend and latter g_obex_resume while SRM is enabled.
* unit/test-gobex-transfer: Add /gobex/test_packet_put_req_suspend_resumeLuiz Augusto von Dentz2014-02-201-0/+74
| | | | | This adds a test to call g_obex_suspend and latter g_obex_resume while SRM is enabled.
* unit: Fix memory leaks in gobex testsAnderson Lizardo2014-02-121-0/+2
|
* unit: Fix test failures with glib 2.39.0Colin Watson2014-01-061-2/+4
| | | | | | | | | | | | | glib 2.39.0 made this change: - g_source_remove() will now throw a critical in the case that you try to remove a non-existent source. We expect that there is some code in the wild that will fall afoul of this new critical but considering that we now reuse source IDs, this code is already broken and should probably be fixed. This patch fixes the test suite to keep better track of whether sources have already been removed and avoid double-removals.
* unit: Fix gobex GPL version referenceJohan Hedberg2013-02-151-2/+3
| | | | | These files (like everything else in the tree) should be GPL 2 or later instead of GPL 2 only.
* unit: Fix missing config.h includesCristian Rodríguez2012-12-231-0/+4
|
* unit: Always return with g_test_run() return valueMarcel Holtmann2012-12-091-3/+1
|
* gobex: Remove g_idle_add to exit main loop in test_stream_put_req_abort()Jaganath Kanakkassery2012-12-041-7/+3
| | | | | A callback is provided in g_obex_cancel_transfer() which will be called when abort completes which exists the mail loop as well
* gobex: Fix unit test for PUT request followed by ABORTLuiz Augusto von Dentz2012-12-041-5/+64
| | | | | | | gobex was actually used to respond not to request so the test is renamed to test_stream_put_rsp_abort and a new test is created using g_obex_put_req to initiate the request and g_obex_cancel_transfer to abort it.
* gobex: Add unit test for PUT request followed by ABORTJaganath Kanakkassery2012-12-041-0/+50
|
* gobex: fix unit test when using SOCK_SEQPACKETLuiz Augusto von Dentz2012-12-041-265/+48
| | | | | | | | | Now that SRM is automatically configured when the transport type is SOCK_SEQPACKET all tests that uses this transport are already testing SRM so there is no need to keep adding the headers manually. In addition to that remove the tests for SRM using SOCK_STREAM since those are currently not supported without including the headers.
* gobex: simplify naming of tests when transfering sequence of packetsLuiz Augusto von Dentz2012-12-041-186/+178
| | | | | Before random was used but the number of packets were not really random so now seq is used instead.
* gobex: add unit test for CONN followed by PUT request with SRMLuiz Augusto von Dentz2012-12-041-0/+74
|
* gobex: add unit test for GET request with SRM and SRMP additional waitLuiz Augusto von Dentz2012-12-041-0/+72
|
* gobex: add unit test for GET request with SRM and SRMP waitLuiz Augusto von Dentz2012-12-041-0/+70
|
* gobex: add unit test for GET response with SRM and SRMP waitLuiz Augusto von Dentz2012-12-041-0/+84
|
* gobex: add unit test for PUT response with SRM and SRMP waitLuiz Augusto von Dentz2012-12-041-1/+86
|
* gobex: add unit test for PUT request with SRM and SRMP waitLuiz Augusto von Dentz2012-12-041-0/+66
|
* gobex: add unit test for GET request with SRMLuiz Augusto von Dentz2012-12-041-0/+65
|
* gobex: add unit test for PUT response with SRMLuiz Augusto von Dentz2012-12-041-0/+93
|
* gobex: add unit test for GET response with SRM enableLuiz Augusto von Dentz2012-12-041-0/+90
|
* gobex: add unit test for PUT request with SRMLuiz Augusto von Dentz2012-12-041-2/+67
|
* gobex: add unit test for GET response with random dataLuiz Augusto von Dentz2012-12-041-0/+80
|
* gobex: add unit test for GET request with random dataLuiz Augusto von Dentz2012-12-041-0/+62
|
* gobex: add unit test for PUT response with random dataLuiz Augusto von Dentz2012-12-041-0/+89
|
* gobex: add unit test for packet PUT request with random dataLuiz Augusto von Dentz2012-12-041-3/+16
|
* gobex: remove unused delay on test_put_req_randomLuiz Augusto von Dentz2012-12-041-1/+0
|
* gobex: fix wrong name of test_get_rsp_eagainLuiz Augusto von Dentz2012-12-041-1/+1
|
* gobex: always set CONNECTION_ID to 1 on unit testsLuiz Augusto von Dentz2012-12-041-29/+12
| | | | | This simplify the creation of new test by not requiring different variables for every connection response.
* gobex: add unit test for GET response with APPARAMLuiz Augusto von Dentz2012-12-041-0/+68
|
* gobex: add unit test for GET request with APPARAMLuiz Augusto von Dentz2012-12-041-0/+58
|
* gobex: add unit test for GET request with delayLuiz Augusto von Dentz2012-12-041-0/+44
|
* gobex: add unit test for PUT response with delayLuiz Augusto von Dentz2012-12-041-0/+86
|
* gobex: add unit test for CONNECT followed by PUT request with random dataLuiz Augusto von Dentz2012-12-041-0/+63
| | | | | | Note that in order to work the buffer had to be increased to OBEX maximum MTU otherwise test_io_cb would be sending responses for each fragment it has read which may not constitute a full packet.
* gobex: add unit test for CONNECT followed by GET wrong responseLuiz Augusto von Dentz2012-12-041-0/+52
|
* gobex: add unit test for CONNECT followed by PUT responseLuiz Augusto von Dentz2012-12-041-0/+61
|
* gobex: add unit test for CONNECT followed by PUT requestLuiz Augusto von Dentz2012-12-041-1/+75
|
* gobex: add unit test for CONNECT followed by GET responseLuiz Augusto von Dentz2012-12-041-0/+59
|
* gobex: add unit test for CONNECT followed by GET requestLuiz Augusto von Dentz2012-12-041-0/+67
|
* gobex: add unit test for CONNECT responseLuiz Augusto von Dentz2012-12-041-0/+60
|
* gobex: add unit test for CONNECT requestLuiz Augusto von Dentz2012-12-041-0/+57
|
* gobex: Add random put request testLuiz Augusto von Dentz2012-12-041-14/+88
|
* gobex: Add support for returning -EAGAIN from producer callbackJohan Hedberg2012-12-041-0/+135
|
* gobex: Fix put request handling with final bit valueJohan Hedberg2012-12-041-1/+1
|
* gobex: Merge gobex-transfer.h into gobex.hJohan Hedberg2012-12-041-1/+0
|
* gobex: Make transfer functions take va-args header listsJohan Hedberg2012-12-041-8/+15
|