refactor: coretool remove getProfileDir
This commit is contained in:
@ -15,16 +15,6 @@
|
||||
|
||||
#include <QDir>
|
||||
|
||||
QString CoreTool::getProfileDir() const
|
||||
{
|
||||
#if defined Q_OS_UNIX
|
||||
ArchFileUnix sysInfo;
|
||||
#elif defined Q_OS_WIN
|
||||
ArchFileWindows sysInfo;
|
||||
#endif
|
||||
return QDir::cleanPath(QString::fromUtf8(sysInfo.getProfileDirectory()));
|
||||
}
|
||||
|
||||
QString CoreTool::getInstalledDir() const
|
||||
{
|
||||
#if defined Q_OS_UNIX
|
||||
|
||||
@ -11,6 +11,5 @@
|
||||
class CoreTool
|
||||
{
|
||||
public:
|
||||
QString getProfileDir() const;
|
||||
QString getInstalledDir() const;
|
||||
};
|
||||
|
||||
@ -9,16 +9,6 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(CoreToolTests, getProfileDir_noMock_returnsNonEmpty)
|
||||
{
|
||||
TestQtCoreApp app;
|
||||
CoreTool coreTool;
|
||||
|
||||
QString profileDir = coreTool.getProfileDir();
|
||||
|
||||
EXPECT_FALSE(profileDir.isEmpty());
|
||||
}
|
||||
|
||||
TEST(CoreToolTests, getInstalledDir_noMock_returnsNonEmpty)
|
||||
{
|
||||
TestQtCoreApp app;
|
||||
|
||||
Reference in New Issue
Block a user