Files
qt-migration-legatus/qt6-after/qt6-migrated-benchmark/tests/test_alm_dtc.cpp
T

44 lines
1.3 KiB
C++

/**
* @file test_alm_dtc.cpp
* @brief Minimal test for AlarmManagement/alm_dtc.h header inclusion
*
* This test verifies that the stub header can be included without errors.
* The actual Dtc/Ftc classes are generated by ddsdtc tool.
*/
#include <gtest/gtest.h>
// Include the stub header - this test ensures it compiles
#include "AlarmManagement/alm_dtc.h"
TEST(AlarmManagementDtc, HeaderCompiles)
{
// Verify that the namespace and forward declarations exist
// This test ensures the stub header is syntactically correct
EXPECT_TRUE(true);
}
TEST(AlarmManagementDtc, ForwardDeclarationsExist)
{
// Verify forward declarations are present (compile-time check)
// If these lines compile, the forward declarations exist
AlarmManagement::Interface::Dtc* dtc_ptr = nullptr;
AlarmManagement::Interface::Ftc* ftc_ptr = nullptr;
EXPECT_EQ(dtc_ptr, nullptr);
EXPECT_EQ(ftc_ptr, nullptr);
}
TEST(AlarmManagementDtc, NamespaceStructure)
{
// Verify namespace structure exists
// This is a compile-time verification
using DtcType = AlarmManagement::Interface::Dtc;
using FtcType = AlarmManagement::Interface::Ftc;
// Suppress unused type alias warnings
(void)sizeof(DtcType*);
(void)sizeof(FtcType*);
EXPECT_TRUE(true);
}