Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/tests/test_alm_dtc.cpp
berrux-dev e8d07af320 Adapts shared tests and common code to generated rtiddsgen API
Updates test suites and Lts/Common consumers to plain member access.
2026-09-21 02:44:07 +02:00

44 lines
1.3 KiB
C++

/**
* @file test_alm_dtc.cpp
* @brief Minimal test for the generated AlarmManagement Dtc/Ftc headers
*
* This test verifies that the headers generated by CODEGEN_CLIENT_TOPICS_IFC
* from alm_service.xml (build-tree alm_dtc.h/alm_ftc.h) compile without errors.
*/
#include <gtest/gtest.h>
#include "AlarmManagement/alm_dtc.h"
#include "AlarmManagement/alm_ftc.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);
}