From 56273b4a56877705c4ea47a42972dc0d9221c00e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 2 Jun 2016 00:48:30 +0100 Subject: No need to expose stuff publically for testing if we just compile them into the test --- gentoobrowse-api/service/depend.h | 3 +-- gentoobrowse-api/service/news.h | 3 +-- gentoobrowse-api/unittests/Jamfile.jam | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gentoobrowse-api/service/depend.h b/gentoobrowse-api/service/depend.h index 3acae7f..487c6da 100644 --- a/gentoobrowse-api/service/depend.h +++ b/gentoobrowse-api/service/depend.h @@ -1,7 +1,6 @@ #ifndef GENTOOBROWSE_SERVICE_DEPEND_H #define GENTOOBROWSE_SERVICE_DEPEND_H -#include #include #include #include @@ -15,7 +14,7 @@ namespace Portage { Gentoo::StringList when; public: - DLL_PUBLIC static std::vector parse(const std::string &); + static std::vector parse(const std::string &); std::vector ds; }; } diff --git a/gentoobrowse-api/service/news.h b/gentoobrowse-api/service/news.h index ae82bb7..2887b5d 100644 --- a/gentoobrowse-api/service/news.h +++ b/gentoobrowse-api/service/news.h @@ -1,7 +1,6 @@ #ifndef GENTOOBROWSE_SERVICE_DEPEND_H #define GENTOOBROWSE_SERVICE_DEPEND_H -#include #include #include #include @@ -15,7 +14,7 @@ namespace Portage { public: Gentoo::NewsItemPtr news; - DLL_PUBLIC static Gentoo::NewsItemPtr parse(const gchar * string, size_t length); + static Gentoo::NewsItemPtr parse(const gchar * string, size_t length); }; } } diff --git a/gentoobrowse-api/unittests/Jamfile.jam b/gentoobrowse-api/unittests/Jamfile.jam index c8a440f..e41a194 100644 --- a/gentoobrowse-api/unittests/Jamfile.jam +++ b/gentoobrowse-api/unittests/Jamfile.jam @@ -43,14 +43,14 @@ lib testCommon : ; run - testDepend.cpp + testDepend.cpp ../service/depend.cpp ../service/utils/lexer.cpp : : : BOOST_TEST_DYN_LINK testCommon : testDepend ; run - testNews.cpp ../service/utils/fileUtils.cpp + testNews.cpp ../service/utils/fileUtils.cpp ../service/news.cpp ../service/utils/lexer.cpp : : : BOOST_TEST_DYN_LINK testCommon -- cgit v1.2.3