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
fd79092c
Commit
fd79092c
authored
Dec 10, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add proxy settings to test-fullmode and test the setter/getters on them
parent
7c043a27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
agent/test-fullmode.c
agent/test-fullmode.c
+23
-0
No files found.
agent/test-fullmode.c
View file @
fd79092c
...
...
@@ -48,6 +48,13 @@
#define USE_LOOPBACK 1
#define TEST_GOOGLE 0
#define PROXY_IP "127.0.0.1"
#define PROXY_PORT 1080
#define PROXY_TYPE NICE_PROXY_TYPE_SOCKS5
#define PROXY_USERNAME NULL
#define PROXY_PASSWORD NULL
#if TEST_GOOGLE
#define NICE_COMPATIBILITY NICE_COMPATIBILITY_GOOGLE
...
...
@@ -968,6 +975,17 @@ int main (void)
g_object_set
(
G_OBJECT
(
ragent
),
"stun-server-port"
,
atoi
(
stun_server_port
),
NULL
);
}
g_object_set
(
G_OBJECT
(
lagent
),
"proxy-ip"
,
PROXY_IP
,
NULL
);
g_object_set
(
G_OBJECT
(
lagent
),
"proxy-port"
,
PROXY_PORT
,
NULL
);
g_object_set
(
G_OBJECT
(
lagent
),
"proxy-type"
,
PROXY_TYPE
,
NULL
);
g_object_set
(
G_OBJECT
(
lagent
),
"proxy-username"
,
PROXY_USERNAME
,
NULL
);
g_object_set
(
G_OBJECT
(
lagent
),
"proxy-password"
,
PROXY_PASSWORD
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"proxy-ip"
,
PROXY_IP
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"proxy-port"
,
PROXY_PORT
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"proxy-type"
,
PROXY_TYPE
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"proxy-username"
,
PROXY_USERNAME
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"proxy-password"
,
PROXY_PASSWORD
,
NULL
);
/* step: test setter/getter functions for properties */
{
guint
max_checks
=
0
;
...
...
@@ -979,6 +997,11 @@ int main (void)
g_free
(
string
);
g_object_get
(
G_OBJECT
(
lagent
),
"stun-server-port"
,
&
port
,
NULL
);
g_assert
(
stun_server_port
==
NULL
||
port
==
(
guint
)
atoi
(
stun_server_port
));
g_object_get
(
G_OBJECT
(
lagent
),
"proxy-ip"
,
&
string
,
NULL
);
g_assert
(
strcmp
(
string
,
PROXY_IP
)
==
0
);
g_free
(
string
);
g_object_get
(
G_OBJECT
(
lagent
),
"proxy-port"
,
&
port
,
NULL
);
g_assert
(
port
==
PROXY_PORT
);
g_object_get
(
G_OBJECT
(
lagent
),
"controlling-mode"
,
&
mode
,
NULL
);
g_assert
(
mode
==
TRUE
);
g_object_set
(
G_OBJECT
(
lagent
),
"max-connectivity-checks"
,
300
,
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