diff options
author | Allan LeSage <allanlesage@gmail.com> | 2012-03-16 16:11:07 -0500 |
---|---|---|
committer | Allan LeSage <allanlesage@gmail.com> | 2012-03-16 16:11:07 -0500 |
commit | a5695b6ae268abc5c446a734ea8dbbcc30bc47fb (patch) | |
tree | 47ee4693c6dd9c5c0094c047174bf2643026b4de /test/test-gtest.cpp | |
parent | bacad6ee225001ec39b6263ceb4aa99d55a67ba6 (diff) | |
download | ayatana-indicator-messages-a5695b6ae268abc5c446a734ea8dbbcc30bc47fb.tar.gz ayatana-indicator-messages-a5695b6ae268abc5c446a734ea8dbbcc30bc47fb.tar.bz2 ayatana-indicator-messages-a5695b6ae268abc5c446a734ea8dbbcc30bc47fb.zip |
Experimental Makefile.am changes to support GTest.
Diffstat (limited to 'test/test-gtest.cpp')
-rw-r--r-- | test/test-gtest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test-gtest.cpp b/test/test-gtest.cpp index 87edeab..bb9943d 100644 --- a/test/test-gtest.cpp +++ b/test/test-gtest.cpp @@ -6,11 +6,11 @@ extern "C" { #include "launcher-menu-item.h" } -TEST(LauncherMenuItem, EmptyAtStart) { - gboolean result; - // FIXME - //LauncherMenuItem * test_li = ???; - gboolean test_eclipsed; - //result = launcher_menu_item_set_eclipsed(test_li, test_eclipsed); - EXPECT_TRUE(false); +TEST(LauncherMenuItem, NameInitialized) { + g_type_init(); + //const gchar * expected = "foo"; + //LauncherMenuItem * test_li = launcher_menu_item_new ("foo"); + //gchar * result = launcher_menu_item_get_name(test_li); + //EXPECT_EQ(0, strcmp("foo", result)); + EXPECT_TRUE(true); } |