Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
fe55ca06
Commit
fe55ca06
authored
Dec 18, 2018
by
Jakub Adam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Initialize Windows Sockets where needed
Fixes failing test cases on Windows.
parent
83c5d0fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
tests/test-nomination.c
tests/test-nomination.c
+3
-0
tests/test-socket-is-based-on.c
tests/test-socket-is-based-on.c
+3
-0
tests/test-tcp.c
tests/test-tcp.c
+3
-0
tests/test-udp-turn-fragmentation.c
tests/test-udp-turn-fragmentation.c
+7
-0
No files found.
tests/test-nomination.c
View file @
fe55ca06
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#include <string.h>
#include <string.h>
#include <gio/gio.h>
#include <gio/gio.h>
#include <gio/gnetworking.h>
#include <agent.h>
#include <agent.h>
static
NiceComponentState
global_lagent_state
[
2
]
=
{
NICE_COMPONENT_STATE_LAST
,
NICE_COMPONENT_STATE_LAST
};
static
NiceComponentState
global_lagent_state
[
2
]
=
{
NICE_COMPONENT_STATE_LAST
,
NICE_COMPONENT_STATE_LAST
};
...
@@ -250,6 +251,8 @@ main (int argc, char **argv)
...
@@ -250,6 +251,8 @@ main (int argc, char **argv)
{
{
int
ret
;
int
ret
;
g_networking_init
();
g_test_init
(
&
argc
,
&
argv
,
NULL
);
g_test_init
(
&
argc
,
&
argv
,
NULL
);
g_test_add_func
(
"/nice/nomination/regular"
,
regular
);
g_test_add_func
(
"/nice/nomination/regular"
,
regular
);
...
...
tests/test-socket-is-based-on.c
View file @
fe55ca06
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#endif
#endif
#include <locale.h>
#include <locale.h>
#include <gio/gnetworking.h>
#include "socket.h"
#include "socket.h"
...
@@ -84,6 +85,8 @@ main (int argc, char *argv[])
...
@@ -84,6 +85,8 @@ main (int argc, char *argv[])
NiceAddress
addr
;
NiceAddress
addr
;
g_networking_init
();
setlocale
(
LC_ALL
,
""
);
setlocale
(
LC_ALL
,
""
);
g_test_init
(
&
argc
,
&
argv
,
NULL
);
g_test_init
(
&
argc
,
&
argv
,
NULL
);
...
...
tests/test-tcp.c
View file @
fe55ca06
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <string.h>
#include <string.h>
#include <stdio.h>
#include <stdio.h>
#include <gio/gnetworking.h>
#include "socket.h"
#include "socket.h"
...
@@ -88,6 +89,8 @@ main (void)
...
@@ -88,6 +89,8 @@ main (void)
NiceAddress
active_bind_addr
,
passive_bind_addr
;
NiceAddress
active_bind_addr
,
passive_bind_addr
;
GSource
*
srv_listen_source
,
*
srv_input_source
,
*
cli_input_source
;
GSource
*
srv_listen_source
,
*
srv_input_source
,
*
cli_input_source
;
g_networking_init
();
mainloop
=
g_main_loop_new
(
NULL
,
FALSE
);
mainloop
=
g_main_loop_new
(
NULL
,
FALSE
);
nice_address_init
(
&
active_bind_addr
);
nice_address_init
(
&
active_bind_addr
);
...
...
tests/test-udp-turn-fragmentation.c
View file @
fe55ca06
...
@@ -32,6 +32,11 @@
...
@@ -32,6 +32,11 @@
# include "config.h"
# include "config.h"
#endif
#endif
// With _GNU_SOURCE, enumeration in netinet/tcp.h and PseudoTcpState clash
#undef _GNU_SOURCE
#define _POSIX_SOURCE 1
#include <gio/gnetworking.h>
#include "agent-priv.h"
#include "agent-priv.h"
#include "socket.h"
#include "socket.h"
...
@@ -203,6 +208,8 @@ main (int argc, char *argv[])
...
@@ -203,6 +208,8 @@ main (int argc, char *argv[])
{
{
GMainLoop
*
mainloop
;
GMainLoop
*
mainloop
;
g_networking_init
();
randg
=
g_rand_new
();
randg
=
g_rand_new
();
g_test_init
(
&
argc
,
&
argv
,
NULL
);
g_test_init
(
&
argc
,
&
argv
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment