summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-06-02 00:48:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-06-02 00:48:30 +0100
commit209838a4e9e5b5b1d4da44f35a1c8ff029b807e5 (patch)
tree2b1f79818154d7f2b2e814a267a39a6a398f231d
parentAdd missing drop table (diff)
downloadgentoobrowse-api-209838a4e9e5b5b1d4da44f35a1c8ff029b807e5.tar.bz2
gentoobrowse-api-209838a4e9e5b5b1d4da44f35a1c8ff029b807e5.tar.xz
gentoobrowse-api-209838a4e9e5b5b1d4da44f35a1c8ff029b807e5.zip
No need to expose stuff publically for testing if we just compile them into the test
-rw-r--r--gentoobrowse-api/service/depend.h3
-rw-r--r--gentoobrowse-api/service/news.h3
-rw-r--r--gentoobrowse-api/unittests/Jamfile.jam4
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 <visibility.h>
#include <istream>
#include <vector>
#include <portage-models.h>
@@ -15,7 +14,7 @@ namespace Portage {
Gentoo::StringList when;
public:
- DLL_PUBLIC static std::vector<Gentoo::DependencyPtr> parse(const std::string &);
+ static std::vector<Gentoo::DependencyPtr> parse(const std::string &);
std::vector<Gentoo::DependencyPtr> 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 <visibility.h>
#include <istream>
#include <vector>
#include <portage-models.h>
@@ -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
: : :
<define>BOOST_TEST_DYN_LINK
<library>testCommon
: testDepend ;
run
- testNews.cpp ../service/utils/fileUtils.cpp
+ testNews.cpp ../service/utils/fileUtils.cpp ../service/news.cpp ../service/utils/lexer.cpp
: : :
<define>BOOST_TEST_DYN_LINK
<library>testCommon