diff options
author | Ted Gould <ted@canonical.com> | 2009-10-08 21:03:30 -0400 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-08 21:03:30 -0400 |
commit | bb7b49ae82deb1f551ec8892511e4a19c881f6cc (patch) | |
tree | ed584ecc8fd8dc3ae10618d0a9a0ae9881612725 /tests/test-loader.c | |
parent | 5144944dbe90e1eaf65bfeedbd6057b858880abc (diff) | |
download | libayatana-indicator-bb7b49ae82deb1f551ec8892511e4a19c881f6cc.tar.gz libayatana-indicator-bb7b49ae82deb1f551ec8892511e4a19c881f6cc.tar.bz2 libayatana-indicator-bb7b49ae82deb1f551ec8892511e4a19c881f6cc.zip |
Testing the accessors
Diffstat (limited to 'tests/test-loader.c')
-rw-r--r-- | tests/test-loader.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test-loader.c b/tests/test-loader.c index 0409a6f..ecbf502 100644 --- a/tests/test-loader.c +++ b/tests/test-loader.c @@ -4,6 +4,21 @@ void destroy_cb (gpointer data, GObject * object); void +test_loader_filename_dummy_simple_accessors (void) +{ + IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so"); + g_assert(object != NULL); + + g_assert(indicator_object_get_label(object) != NULL); + g_assert(indicator_object_get_menu(object) != NULL); + g_assert(indicator_object_get_icon(object) != NULL); + + g_object_unref(object); + + return; +} + +void test_loader_filename_dummy_simple (void) { IndicatorObject * object = indicator_object_new_from_file(BUILD_DIR "/.libs/libdummy-indicator-simple.so"); @@ -64,6 +79,7 @@ test_loader_creation_deletion_suite (void) g_test_add_func ("/libindicator/loader/filename_bad", test_loader_filename_bad); g_test_add_func ("/libindicator/loader/dummy/null_load", test_loader_filename_dummy_null); g_test_add_func ("/libindicator/loader/dummy/simple_load", test_loader_filename_dummy_simple); + g_test_add_func ("/libindicator/loader/dummy/simple_accessors", test_loader_filename_dummy_simple_accessors); return; } |