44 lines
1.3 KiB
C++
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);
|
|
} |