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 | |
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.
-rw-r--r-- | test/Makefile.am | 6 | ||||
-rw-r--r-- | test/test-gtest.cpp | 14 |
2 files changed, 11 insertions, 9 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 7b59f54..e262bae 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -18,10 +18,12 @@ libgtest_a_CXXFLAGS = \ TESTS += test-gtest test_gtest_SOURCES = \ + $(top_srcdir)/src/launcher-menu-item.c \ + $(top_srcdir)/src/default-applications.c \ + $(top_srcdir)/src/seen-db.c \ test-gtest.cpp test_gtest_CPPFLAGS = \ - $(APPLET_CFLAGS) \ - -I$(top_srcdir)/src + $(APPLET_CFLAGS) test_gtest_LDFLAGS = -pthread test_gtest_LDADD = \ $(APPLET_LIBS) \ 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); } |