summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/groupdb.cpp7
-rw-r--r--src/resources/db/groupdb.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/db/groupdb.cpp b/src/resources/db/groupdb.cpp
index ab9a2958d..4b25e94bd 100644
--- a/src/resources/db/groupdb.cpp
+++ b/src/resources/db/groupdb.cpp
@@ -127,3 +127,10 @@ const std::string &GroupDb::getLongName(const int id)
}
return (*it).second.longName;
}
+
+#ifdef UNITTESTS
+GroupDb::GroupInfos &GroupDb::getGroups()
+{
+ return mGroups;
+}
+#endif // UNITTESTS
diff --git a/src/resources/db/groupdb.h b/src/resources/db/groupdb.h
index 60667b3d8..f2c027120 100644
--- a/src/resources/db/groupdb.h
+++ b/src/resources/db/groupdb.h
@@ -42,6 +42,10 @@ namespace GroupDb
const std::string &getLongName(const int id);
typedef std::map<int, GroupInfo> GroupInfos;
+
+#ifdef UNITTESTS
+ GroupDb::GroupInfos &getGroups();
+#endif // UNITTESTS
} // namespace GroupDb
#endif // RESOURCES_DB_GROUPDB_H