[gnome-software] dummy: Correctly request the KUDOS refine flags
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] dummy: Correctly request the KUDOS refine flags
- Date: Mon, 8 Oct 2018 14:04:27 +0000 (UTC)
commit 35adb1d06111ef7476a87557d82a4876e640fa9b
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 8 14:47:21 2018 +0100
dummy: Correctly request the KUDOS refine flags
plugins/dummy/gs-self-test.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/dummy/gs-self-test.c b/plugins/dummy/gs-self-test.c
index feb4f0f2..3216a742 100644
--- a/plugins/dummy/gs-self-test.c
+++ b/plugins/dummy/gs-self-test.c
@@ -352,7 +352,6 @@ gs_plugins_dummy_installed_func (GsPluginLoader *plugin_loader)
GsApp *app;
GsApp *addon;
GsAppList *addons;
- guint64 kudos;
g_autofree gchar *menu_path = NULL;
g_autoptr(GError) error = NULL;
g_autoptr(GsAppList) list = NULL;
@@ -363,6 +362,7 @@ gs_plugins_dummy_installed_func (GsPluginLoader *plugin_loader)
"refine-flags", GS_PLUGIN_REFINE_FLAGS_REQUIRE_ORIGIN |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_ADDONS |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_LICENSE |
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_KUDOS |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_MENU_PATH |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON |
GS_PLUGIN_REFINE_FLAGS_REQUIRE_CATEGORIES |
@@ -389,8 +389,7 @@ gs_plugins_dummy_installed_func (GsPluginLoader *plugin_loader)
g_assert (gs_app_get_license_is_free (app));
/* check kudos */
- kudos = gs_app_get_kudos (app);
- g_assert (kudos & GS_APP_KUDO_MY_LANGUAGE);
+ g_assert_true (gs_app_has_kudo (app, GS_APP_KUDO_MY_LANGUAGE));
/* check categories */
g_assert (gs_app_has_category (app, "Player"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]