summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-self-test.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-02-27 10:02:08 +0000
committerRichard Hughes <richard@hughsie.com>2017-02-27 11:36:28 +0000
commit2557bb9d53590b1926f7f8d36db4296a83395282 (patch)
tree5427361a2d7ddb88d5254b9456ac496af5d5f13a /libappstream-glib/as-self-test.c
parent96c0cb0498790b04f4918264d230cf67e8cf1f03 (diff)
downloadappstream-glib-2557bb9d53590b1926f7f8d36db4296a83395282.tar.gz
trivial: Rename some non exported symbols to use AsFormat
Diffstat (limited to 'libappstream-glib/as-self-test.c')
-rw-r--r--libappstream-glib/as-self-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c
index e333cf0..9598e01 100644
--- a/libappstream-glib/as-self-test.c
+++ b/libappstream-glib/as-self-test.c
@@ -639,7 +639,7 @@ as_test_release_appstream_func (void)
/* back to node */
root = as_node_new ();
as_node_context_set_version (ctx, 1.0);
- as_node_context_set_source_kind (ctx, AS_FORMAT_KIND_APPSTREAM);
+ as_node_context_set_format_kind (ctx, AS_FORMAT_KIND_APPSTREAM);
n = as_release_node_insert (release, root, ctx);
xml = as_node_to_xml (n, AS_NODE_TO_XML_FLAG_FORMAT_MULTILINE);
ret = as_test_compare_lines (xml->str, src, &error);
@@ -676,7 +676,7 @@ as_test_release_appdata_func (void)
n = as_node_find (root, "release");
g_assert (n != NULL);
ctx = as_node_context_new ();
- as_node_context_set_source_kind (ctx, AS_FORMAT_KIND_APPDATA);
+ as_node_context_set_format_kind (ctx, AS_FORMAT_KIND_APPDATA);
ret = as_release_node_parse (release, n, ctx, &error);
g_assert_no_error (error);
g_assert (ret);