summaryrefslogtreecommitdiff
path: root/tests/auth-test.c
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-11-05 15:02:05 -0600
committerPatrick Griffis <pgriffis@igalia.com>2020-11-05 15:02:05 -0600
commitd9bd561c341726d0128db191caba4dbacbe83c2c (patch)
tree34a4fc6a85fdfab52555929c45a6d13e0139c78c /tests/auth-test.c
parentfa676791ba19c9584cf13f6acabb60a615e300b2 (diff)
downloadlibsoup-pgriffis/remove-property-functions.tar.gz
Remove properties that behave as functionspgriffis/remove-property-functions
This goes against all convention and isn't binding friendly.
Diffstat (limited to 'tests/auth-test.c')
-rw-r--r--tests/auth-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auth-test.c b/tests/auth-test.c
index 44b94b43..d5e27b23 100644
--- a/tests/auth-test.c
+++ b/tests/auth-test.c
@@ -900,16 +900,16 @@ do_select_auth_test (void)
basic_auth_domain = soup_auth_domain_basic_new (
"realm", "auth-test",
- "add-path", "/",
"auth-callback", server_basic_auth_callback,
NULL);
+ soup_auth_domain_add_path (basic_auth_domain, "/");
soup_server_add_auth_domain (server, basic_auth_domain);
digest_auth_domain = soup_auth_domain_digest_new (
"realm", "auth-test",
- "add-path", "/",
"auth-callback", server_digest_auth_callback,
NULL);
+ soup_auth_domain_add_path (digest_auth_domain, "/");
soup_server_add_auth_domain (server, digest_auth_domain);
debug_printf (1, " Testing with no auth\n");
@@ -1051,9 +1051,9 @@ do_auth_close_test (void)
basic_auth_domain = soup_auth_domain_basic_new (
"realm", "auth-test",
- "add-path", "/",
"auth-callback", server_basic_auth_callback,
NULL);
+ soup_auth_domain_add_path (basic_auth_domain, "/");
soup_server_add_auth_domain (server, basic_auth_domain);
g_object_unref (basic_auth_domain);
@@ -1178,9 +1178,9 @@ do_disappearing_auth_test (void)
auth_domain = soup_auth_domain_basic_new (
"realm", "auth-test",
- "add-path", "/",
"auth-callback", server_basic_auth_callback,
NULL);
+ soup_auth_domain_add_path (auth_domain, "/");
soup_server_add_auth_domain (server, auth_domain);
g_signal_connect (server, "request-read",
G_CALLBACK (disappear_request_read), NULL);