Commit Graph

67 Commits

Author SHA1 Message Date
Lucas De Marchi
0f2f27611c unit: Get rid of gchar
Use plain char instead of gchar.
2013-05-02 09:04:21 +03:00
Lucas De Marchi
4a20451782 unit: Get rid of gint
Use plain int instead of gint. In glib gint is always a typedef to int,
so it's safe to use it even for callbacks with glib.
2013-05-01 09:08:57 +03:00
Johan Hedberg
c2e5d1ff16 unit: Fix gobex GPL version reference
These files (like everything else in the tree) should be GPL 2 or later
instead of GPL 2 only.
2013-02-15 16:19:54 +02:00
Cristian Rodríguez
b6268e1350 unit: Fix missing config.h includes 2012-12-23 18:58:11 -08:00
Marcel Holtmann
66d928aa6e unit: Always return with g_test_run() return value 2012-12-09 10:35:21 +01:00
Bartosz Szatkowski
b8cc54f1b9 gobex: Add "cd ../dir" handling in setpath 2012-12-04 22:22:04 +01:00
Johan Hedberg
d21fef52df gobex: Add unit tests for Action command functions 2012-12-04 22:22:02 +01:00
Johan Hedberg
c869ca28b8 gobex: Make use of va-args headers in higher level functions 2012-12-04 22:22:01 +01:00
Johan Hedberg
508cb6f8c2 gobex: Fix minor memory leak in unit test 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
7f5cb418d3 gobex: Ignore unexpected responses (which can occur when aborting) 2012-12-04 22:22:01 +01:00
Johan Hedberg
1760e5f5f5 gobex: Add g_obex_delete 2012-12-04 22:22:01 +01:00
Johan Hedberg
8554bc2a89 gobex: Add g_obex_mkdir 2012-12-04 22:22:01 +01:00
Johan Hedberg
15402c02c1 gobex: Add unit test for SetPath("..") 2012-12-04 22:22:01 +01:00
Johan Hedberg
f4baf99a5e gobex: Use proper response code in connect response 2012-12-04 22:22:01 +01:00
Johan Hedberg
1b609bec8e gobex: Add g_obex_setpath 2012-12-04 22:22:00 +01:00
Johan Hedberg
60fd958c20 gobex: Add unit test for g_obex_connect 2012-12-04 22:22:00 +01:00
Johan Hedberg
b1d071bd5c gobex: Refactor common unit test functions to util.c 2012-12-04 22:22:00 +01:00
Johan Hedberg
5ea9277204 gobex: Use zero timeout to make timeout unit tests run faster 2012-12-04 22:22:00 +01:00
Johan Hedberg
33324a068a gobex: Move more unit test helpers to util.c 2012-12-04 22:22:00 +01:00
Johan Hedberg
bd5957292f gobex: Add unit test for unexpected data 2012-12-04 22:22:00 +01:00
Johan Hedberg
7fee9ce693 gobex: Remove g_obex_set_request_function 2012-12-04 22:21:59 +01:00
Johan Hedberg
b50f20a501 gobex: Use GObexDataProducer type instead of (custom) GObexPacketDataFunc 2012-12-04 22:21:59 +01:00
Johan Hedberg
0a4824ddb1 gobex: Make on-demand body headers a GObexPacket feature 2012-12-04 22:21:59 +01:00
Johan Hedberg
714abdfc72 gobex: Make on-demand header callbacks able to fail cleanly 2012-12-04 22:21:59 +01:00
Johan Hedberg
a470646232 gobex: Add convenience response sending function 2012-12-04 22:21:58 +01:00
Johan Hedberg
7afc5a6f90 gobex: g_obex_new should create its own GIOChannel ref 2012-12-04 22:21:58 +01:00
Johan Hedberg
57478308af gobex: Add (transport) MTU parameters to g_obex_new 2012-12-04 22:21:58 +01:00
Johan Hedberg
680e9abc4b gobex: Split ev_func into req_func and disconn_func 2012-12-04 22:21:58 +01:00
Johan Hedberg
ad811dd51e gobex: Add support for on-demand headers 2012-12-04 22:21:58 +01:00
Johan Hedberg
a14e52b471 gobex: Add packet transport support 2012-12-04 22:21:58 +01:00
Johan Hedberg
13d42a0945 gobex: Add request cancellation support 2012-12-04 22:21:57 +01:00
Johan Hedberg
371bd8adf6 gobex: Remove disconn callback in favor of generic event callback 2012-12-04 22:21:57 +01:00
Johan Hedberg
9292a83d92 gobex: Add per-request timeouts 2012-12-04 22:21:57 +01:00
Johan Hedberg
bab1892b28 gobex: Add invalid connect response test 2012-12-04 22:21:57 +01:00
Johan Hedberg
dfae4177b7 gobex: Refactor response sending in tests 2012-12-04 22:21:57 +01:00
Johan Hedberg
0f10ac2b8c gobex: Add proper error returns to packet sending functions 2012-12-04 22:21:57 +01:00
Johan Hedberg
31ebc74e69 gobex: Add disconnect callback support 2012-12-04 22:21:57 +01:00
Johan Hedberg
d455694af2 gobex: Split unit tests into separate modules 2012-12-04 22:21:57 +01:00
Johan Hedberg
b105277b97 gobex: Split gobex.c into multiple modules 2012-12-04 22:21:57 +01:00
Johan Hedberg
d3558f1c0b gobex: Make Action ID test data less predictable 2012-12-04 22:21:57 +01:00
Johan Hedberg
0302f86230 gobex: Add functions for fetching data from packets 2012-12-04 22:21:56 +01:00
Johan Hedberg
55b393abb0 gobex: Name header creation functions more intuitively 2012-12-04 22:21:56 +01:00
Johan Hedberg
b76d71e5b2 gobex: Refactor reading/writing to allow packet based transport 2012-12-04 22:21:56 +01:00
Johan Hedberg
fd01c40449 gobex: Add basic response handling 2012-12-04 22:21:56 +01:00
Johan Hedberg
0b92685e8b gobex: Refactor test endpoint creation into create_endpoints() 2012-12-04 22:21:56 +01:00
Johan Hedberg
57e8d5af63 gobex: Fix minor leak in test_recv_connect_stream 2012-12-04 22:21:56 +01:00
Johan Hedberg
8005be3b8a gobex: Add basic packet sending support 2012-12-04 22:21:56 +01:00
Johan Hedberg
aafd18d9d3 gobex: Rename transfer tests to accomodate for new ones 2012-12-04 22:21:56 +01:00