2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2017-10-18 13:03:21 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-04-24 14:07:39 +02:00
|
|
|
#include <utils/hostosinfo.h>
|
2017-10-18 13:03:21 +02:00
|
|
|
#include <utils/smallstring.h>
|
2018-12-03 17:44:38 +01:00
|
|
|
#include <utils/temporarydirectory.h>
|
2017-10-18 13:03:21 +02:00
|
|
|
|
2018-09-06 11:57:36 +02:00
|
|
|
inline
|
|
|
|
|
bool operator==(const QString &first, const char *second)
|
|
|
|
|
{
|
|
|
|
|
return first == QString::fromUtf8(second, int(std::strlen(second)));
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-18 13:03:21 +02:00
|
|
|
namespace UnitTest {
|
|
|
|
|
|
|
|
|
|
inline
|
|
|
|
|
Utils::PathString temporaryDirPath()
|
|
|
|
|
{
|
2018-12-03 17:44:38 +01:00
|
|
|
return Utils::PathString::fromQString(Utils::TemporaryDirectory::masterDirectoryPath());
|
2017-10-18 13:03:21 +02:00
|
|
|
}
|
2019-04-24 14:07:39 +02:00
|
|
|
|
2017-10-18 13:03:21 +02:00
|
|
|
} // namespace UnitTest
|