- BUILD_RTI conditional compilation für RTI Connext DDS dependencies - Namespace fixes in core_dtc.h (Core:: → DDS::Core::) - CMakeLists.txt: BUILD_RTI option und conditional dependencies - Handler minelayer: namespace closing mit BUILD_RTI guard - Build erfolgreich mit BUILD_RTI=OFF validiert Signed-off-by: Torsten Wierschin <torsten.wierschin@life-maps.com>
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
/**
|
|
* @file test_asm_dtc.cpp
|
|
* @brief Tests for AssetManagement Dtc stub header compilation
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
#include "AssetManagement/asm_dtc.h"
|
|
|
|
// Test that the header compiles and provides expected forward declarations
|
|
TEST(AsmDtcTest, HeaderCompilesSuccessfully)
|
|
{
|
|
// This test verifies that asm_dtc.h compiles without errors
|
|
// The header provides forward declarations for DDS-generated Dtc/Ftc classes
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
TEST(AsmDtcTest, NamespaceStructureExists)
|
|
{
|
|
// Verify that the AssetManagement namespace exists
|
|
using namespace AssetManagement;
|
|
|
|
// Verify that the Interface namespace exists within AssetManagement
|
|
using namespace AssetManagement::Interface;
|
|
|
|
// Forward declaration should be available (pointer type should compile)
|
|
Dtc* dtc_ptr = nullptr;
|
|
Ftc* ftc_ptr = nullptr;
|
|
|
|
EXPECT_EQ(dtc_ptr, nullptr);
|
|
EXPECT_EQ(ftc_ptr, nullptr);
|
|
}
|
|
|
|
TEST(AsmDtcTest, ForwardDeclarationsAreUsable)
|
|
{
|
|
// Test that forward-declared types can be used in function signatures
|
|
auto use_dtc = [](AssetManagement::Interface::Dtc* ptr) { return ptr != nullptr; };
|
|
auto use_ftc = [](AssetManagement::Interface::Ftc* ptr) { return ptr != nullptr; };
|
|
|
|
EXPECT_FALSE(use_dtc(nullptr));
|
|
EXPECT_FALSE(use_ftc(nullptr));
|
|
} |