summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-13 03:48:56 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-13 03:48:56 +0300
commitb5cb8b8ed49f80ebbb82cacb55c16a03318db30b (patch)
tree0a2d308fdf870a8b0564b585087abaea867457ec /src/resources/db
parent0d9761f9a6b375f6018a16b21cf2fbbb01155c08 (diff)
downloadmv-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.gz
mv-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.bz2
mv-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.xz
mv-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.zip
Fix unit tests after latest changes.
Diffstat (limited to 'src/resources/db')
-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