summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix a minor bug in the dribble mode testRohan Garg2012-09-201-0/+15
| | | | | | If for some reason the opening of the socket is delayed, or simply takes too much time, the test will fail. This patch ensures that the test will only proceed once the socket is open.
* Also free the GCond and the GMutexRohan Garg2012-06-301-0/+4
|
* Allocate memory to stun_mutex_ptr and stun_signal_ptrRohan Garg2012-06-221-0/+2
|
* Multiple fixes for new testRohan Garg2012-05-081-27/+42
| | | | | | | | | | * Make STUN thread drop STUN packets using a global variable * Completely refactor the way the STUN thread exits - Now exit by setting exit_stun_thread as TRUE and sending dummy data - Remove the old signal mechanism * Don't set unnecessary socket options * Lock stun_mutex_ptr before signalling STUN response
* Fixes to dribble mode test as per suggestionsRohan Garg2012-05-041-25/+24
| | | | | | | | - Use LEFT_AGENT and RIGHT_AGENT instead of calling GINT_TO_POINTER everytime - Add padding (0's in our case) before the actual payload and make sure the reciever checks for this padding. This ensures no STUN packets got through - Free GSList's properly in cb_agent_new_candidate - Use proper calls to g_signal_handlers_disconnect_by_func
* Minor bug fixes and enhancements to the testRohan Garg2012-05-031-55/+71
|
* Fix test-dribbleRohan Garg2012-05-011-1/+1
| | | | The ragent state can be either NICE_COMPONENT_CONNECTED or NICE_COMPONENT_READY
* Added new tests for dribble mode in libniceRohan Garg2012-05-012-1/+676
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 4 tests in total : * Common to all : - Gather lagent and ragent candidates - Delay STUN response for lagent - Make sure connchecks succeed and data is sent across to lagent * standard_test : - Set remote candidates for lagent while lagent is still gathering it's own candidates * bad_credentials_test : - Set incorrect credentials for both lagent and ragent - Make sure connchecks fail - Signal STUN response and set correct credentials * bad_candidate_test : - Set a bad remote candidate for lagent - Make sure connchecks fail - Signal STUN response and set correct remote candidates * new_candidate_test : - As soon as a new local candidate is found set it as the remote candidate for the other agent
* Properly ifdef windows headers in order to get compiles working on linux againRohan Garg2012-03-122-0/+4
|
* unistd.h is not present on Visual Studio. Replaced usleep with g_usleep to ↵Filippo Della Betta2012-03-051-2/+10
| | | | support win32 platform as well. Added WSAStartup/WSACleanup on win32
* Fixed mingw/msys compilation. Definition for intptr_t was missing. Added ↵Filippo Della Betta2012-03-051-1/+9
| | | | WSAStartup/WSACleanup on win32
* Fixed mingw/msys compilation. Definition for intptr_t was missing. Added ↵Filippo Della Betta2012-03-051-1/+9
| | | | WSAStartup/WSACleanup on win32
* Added WSAStartup/WSACleanup on win32Filippo Della Betta2012-03-051-1/+7
|
* Fix test-bsd by calling g_type_initYouness Alaoui2012-03-011-1/+1
|
* Remove redundant code from testsRohan Garg2012-02-201-8/+0
|
* WSAStartup/WSACleanup added on WIN32 platformFilippo Della Betta2012-02-203-1/+26
|
* Replaced __func__ macro with G_STRFUNC in the unit testsFilippo Della Betta2012-02-155-17/+17
|
* Fix missing semicolon from previous commit in test-restartYouness Alaoui2012-02-021-1/+1
|
* Fix builds for systems using glib 2.3.81 and aboveRohan Garg2012-01-168-8/+39
|
* test-fullmode: if upnp is disabled, then disable it in both agentsYouness Alaoui2012-01-121-0/+1
|
* Add support for windows's compilation through MinGWNader Morshed2011-11-301-2/+0
|
* Fix a (possible) memory leak in nice_turn_socket_new and in a testTimothy Redaelli2011-03-311-1/+3
|
* Use #!/bin/sh instead of #!/bin/bashTimothy Redaelli2011-03-311-1/+1
|
* Remove some "set but not used" variables since GCC 4.6 emit a warning about thatTimothy Redaelli2011-03-311-2/+1
|
* test-fullmode: add some debug output to track down a weird bug..Youness Alaoui2011-03-231-2/+10
|
* Add some testing for the nice_agent_set_port_range APIYouness Alaoui2011-01-201-2/+55
|
* test-fullmode: disable checking for the expected selected-pair signal when ↵Youness Alaoui2011-01-131-2/+26
| | | | using TURN because that value is unpredictable
* test-fullmode: better support for TURN testing, some tests can't work with ↵Youness Alaoui2011-01-131-25/+24
| | | | turn by nature
* test-fullmode: Add a USE_RELIABLE option to enable/disable reliable modeYouness Alaoui2010-12-231-4/+15
|
* test-fullmode: Clean the credentials exchange by using a single functionYouness Alaoui2010-12-221-69/+20
|
* test-fullmode: remove the old code that sets candidates from one agent to ↵Youness Alaoui2010-12-221-209/+38
| | | | another and do it properly
* Add a USE_UPNP option to test-fullmodeYouness Alaoui2010-12-221-0/+2
|
* Add a USE_PROXY option to test-fullmodeYouness Alaoui2010-12-221-1/+6
|
* Revert changes to fullmode testMarcus Lundblad2010-12-141-7/+5
|
* Remaining changes for RFC 5766Marcus Lundblad2010-12-141-5/+7
|
* Change the compatibility modes from DRAFT19 to RFC5245Youness Alaoui2010-05-196-8/+8
|
* remove some warnings from test-threadYouness Alaoui2010-02-161-3/+0
|
* return FALSE on g_error timers because new gcc refuses to compile without a ↵Youness Alaoui2010-02-163-0/+6
| | | | return value from these functions
* Get rid of NiceSocket from the candidate, and make it into an obscure ↵Youness Alaoui2010-02-161-0/+1
| | | | gpointer.. then cast it (only twice) inside the code. This allows us to get rid of all those socket layer .h files from installation which were not needed to be public
* enable debug message for test-pseudotcpYouness Alaoui2010-02-161-0/+3
|
* Fix copyright headers for all filesYouness Alaoui2010-02-161-1/+0
|
* Fix test-pseudotcp to not fail randomly, use strncmp instead of strcmpYouness Alaoui2010-02-161-1/+2
|
* Make test-fullmode do the test over the pseudotcp reliable transportYouness Alaoui2010-02-161-6/+41
|
* Add pseudotcp docs and fix a bit the API and testYouness Alaoui2010-02-161-3/+13
|
* Adding test suite for pseudotcpYouness Alaoui2010-02-163-1/+277
|
* Use GPOINTER_TO_UINT and GUINT_TO_POINTER to avoid an error when casting on ↵Youness Alaoui2009-12-041-8/+8
| | | | kfreebsd
* Add a SOFTWARE attribute in test-fullmode testYouness Alaoui2009-11-041-0/+2
|
* properly set remote candidates for delayed answer test, also include the ↵Youness Alaoui2009-06-021-10/+13
| | | | delayed answer test in the google mode testing
* if USE_LOOPBACK=0 do not add a fixed ip in test-fullmodeYouness Alaoui2009-04-241-5/+0
|
* Add UPnP support to libniceYouness Alaoui2009-04-242-1/+4
|