diff options
author | Rico Tzschichholz <ricotz@t-online.de> | 2013-02-18 19:10:49 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2013-02-18 19:10:49 +0100 |
commit | 00e14cc75040be29fabdb4ffb8e76cb24fae47f9 (patch) | |
tree | e4b440a6e0978d3f47670d54cf1ee3b83eef6623 /test | |
parent | 7869a57ce0f04469e3fdc5e42af1549aa79efd61 (diff) | |
download | zeitgeist-00e14cc75040be29fabdb4ffb8e76cb24fae47f9.tar.gz |
event: Fix API change of set_actor_from_app_info
Diffstat (limited to 'test')
-rw-r--r-- | test/c/test-event.c | 6 | ||||
-rw-r--r-- | test/direct/event-test.vala | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/c/test-event.c b/test/c/test-event.c index 2537fcd6..746de3de 100644 --- a/test/c/test-event.c +++ b/test/c/test-event.c @@ -120,7 +120,7 @@ test_create_full (Fixture *fix, gconstpointer data) } static void -test_actor_from_info (Fixture *fix, gconstpointer data) +test_actor_from_app_info (Fixture *fix, gconstpointer data) { ZeitgeistEvent *ev; GAppInfo *appinfo; @@ -129,7 +129,7 @@ test_actor_from_info (Fixture *fix, gconstpointer data) g_assert (G_IS_APP_INFO (appinfo)); ev = zeitgeist_event_new (); - zeitgeist_event_set_actor_from_info (ev, appinfo); + zeitgeist_event_set_actor_from_app_info (ev, appinfo); g_assert_cmpstr ("application://test.desktop", ==, zeitgeist_event_get_actor (ev)); } @@ -431,7 +431,7 @@ main (int argc, g_test_add ("/Zeitgeist/Event/CreateFull", Fixture, NULL, setup, test_create_full, teardown); g_test_add ("/Zeitgeist/Event/ActorFromInfo", Fixture, NULL, - setup, test_actor_from_info, teardown); + setup, test_actor_from_app_info, teardown); g_test_add ("/Zeitgeist/Event/FromVariant", Fixture, NULL, setup, test_from_variant, teardown); g_test_add ("/Zeitgeist/Event/FromVariantWithNewFields", Fixture, NULL, diff --git a/test/direct/event-test.vala b/test/direct/event-test.vala index 25a3de13..7189057d 100644 --- a/test/direct/event-test.vala +++ b/test/direct/event-test.vala @@ -89,7 +89,7 @@ void actor_from_app_info_test () assert (appinfo is AppInfo); var ev = new Event (); - ev.set_actor_from_info (appinfo); + ev.set_actor_from_app_info (appinfo); assert_cmpstr (ev.actor, OperatorType.EQUAL, "application://test.desktop"); } |