Marcel Holtmann
66d928aa6e
unit: Always return with g_test_run() return value
2012-12-09 10:35:21 +01:00
Jaganath Kanakkassery
889a1a1400
gobex: Remove g_idle_add to exit main loop in test_stream_put_req_abort()
...
A callback is provided in g_obex_cancel_transfer() which will be called
when abort completes which exists the mail loop as well
2012-12-04 22:22:06 +01:00
Luiz Augusto von Dentz
52b3354422
gobex: Fix unit test for PUT request followed by ABORT
...
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.
2012-12-04 22:22:06 +01:00
Jaganath Kanakkassery
9166ea3ffd
gobex: Add unit test for PUT request followed by ABORT
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
34680daae1
gobex: fix unit test when using SOCK_SEQPACKET
...
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.
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
cd0af353a5
gobex: simplify naming of tests when transfering sequence of packets
...
Before random was used but the number of packets were not really random
so now seq is used instead.
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
ac5aedf446
gobex: add unit test for CONN followed by PUT request with SRM
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
2cc6193673
gobex: add unit test for GET request with SRM and SRMP additional wait
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
fc12e4ca63
gobex: add unit test for GET request with SRM and SRMP wait
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
2951b0d6be
gobex: add unit test for GET response with SRM and SRMP wait
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
d3f6db2a6b
gobex: add unit test for PUT response with SRM and SRMP wait
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
d4395a7e3b
gobex: add unit test for PUT request with SRM and SRMP wait
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
4c305704fd
gobex: add unit test for GET request with SRM
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
f2da5d46b5
gobex: add unit test for PUT response with SRM
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
5dbde0863d
gobex: add unit test for GET response with SRM enable
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
cd3e6c9c61
gobex: add unit test for PUT request with SRM
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
74bb8e1474
gobex: add unit test for GET response with random data
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
80c602ba33
gobex: add unit test for GET request with random data
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
1e5b2ca160
gobex: add unit test for PUT response with random data
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
48497a481e
gobex: add unit test for packet PUT request with random data
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
13564dd509
gobex: remove unused delay on test_put_req_random
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
19359ee369
gobex: fix wrong name of test_get_rsp_eagain
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
37cfa1cc4c
gobex: always set CONNECTION_ID to 1 on unit tests
...
This simplify the creation of new test by not requiring different
variables for every connection response.
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
27249cbd0a
gobex: add unit test for GET response with APPARAM
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
c02e6e5e27
gobex: add unit test for GET request with APPARAM
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
7f604f1818
gobex: add unit test for GET request with delay
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
04bfae5d56
gobex: add unit test for PUT response with delay
2012-12-04 22:22:04 +01:00
Luiz Augusto von Dentz
648e662542
gobex: add unit test for CONNECT followed by PUT request with random data
...
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.
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
75447e6647
gobex: add unit test for CONNECT followed by GET wrong response
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
4c7baae49e
gobex: add unit test for CONNECT followed by PUT response
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
8b6ff020b6
gobex: add unit test for CONNECT followed by PUT request
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
6b1a901678
gobex: add unit test for CONNECT followed by GET response
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
a28a22a707
gobex: add unit test for CONNECT followed by GET request
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
4f64bb1b38
gobex: add unit test for CONNECT response
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
e94ce4ff86
gobex: add unit test for CONNECT request
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
b9794defb8
gobex: Add random put request test
2012-12-04 22:22:02 +01:00
Johan Hedberg
0528bfc1a0
gobex: Add support for returning -EAGAIN from producer callback
2012-12-04 22:22:02 +01:00
Johan Hedberg
234c29546d
gobex: Fix put request handling with final bit value
2012-12-04 22:22:01 +01:00
Johan Hedberg
ddb69649e8
gobex: Merge gobex-transfer.h into gobex.h
2012-12-04 22:22:01 +01:00
Johan Hedberg
815218c7ef
gobex: Make transfer functions take va-args header lists
2012-12-04 22:22:01 +01:00
Johan Hedberg
58cd14d209
gobex: Remove _ID_ from header type definitions
2012-12-04 22:22:01 +01:00
Johan Hedberg
cdcde59687
gobex: Add va-args based packet creation support
2012-12-04 22:22:01 +01:00
Johan Hedberg
25faf4fc79
gobex: Allow calling g_obex_get_rsp later with custom headers
2012-12-04 22:22:01 +01:00
Johan Hedberg
b1d071bd5c
gobex: Refactor common unit test functions to util.c
2012-12-04 22:22:00 +01:00
Johan Hedberg
d1ad690084
gobex: Add unit tests for g_obex_suspend & g_obex_resume
2012-12-04 22:22:00 +01:00
Johan Hedberg
817b488ebc
gobex: Assert correct io_cb count in transfer unit tests
2012-12-04 22:22:00 +01:00
Johan Hedberg
b19d1fbde8
gobex: Refactor transfer unit test IO callbacks
2012-12-04 22:22:00 +01:00
Johan Hedberg
98703e92d1
gobex: Add g_obex_get_rsp
2012-12-04 22:22:00 +01:00
Johan Hedberg
6abdccbf94
gobex: Add g_obex_get_req
2012-12-04 22:22:00 +01:00
Johan Hedberg
3f2536cb1d
gobex: Extend g_obex_put_rsp unit test to have two rounds of requests
2012-12-04 22:22:00 +01:00