Files
KDDockWidgets/tests/tst_platform.cpp
2022-06-26 00:37:10 +01:00

35 lines
818 B
C++

/*
This file is part of KDDockWidgets.
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
Author: Sérgio Martins <sergio.martins@kdab.com>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
Contact KDAB at <info@kdab.com> for commercial licensing options.
*/
#include "main.h"
#include "private/View_p.h"
#include "Platform.h"
#include <string>
TEST_CASE("Platform::Platform")
{
auto plat = Platform::instance();
REQUIRE(plat);
}
TEST_CASE("Platform::name")
{
// Checks that Platform::name() returns something
auto plat = Platform::instance();
CHECK(!std::string(plat->name()).empty());
}
TEST_CASE("Platform::createDefaultViewFactory")
{
auto plat = Platform::instance();
REQUIRE(plat->createDefaultViewFactory());
}