Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/tests/test_lts_coord_vector.cpp
T
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

40 lines
1.3 KiB
C++

#include <gtest/gtest.h>
// Compile-level regression test for the LtsCoordinate migration.
//
// lts_coord_vector.h includes the export header generated by
// NGL_ADD_LIBRARY2 for target LtsCoordinate as
// <LtsCoordinate/ltscoordinate_export.h> (same form as the qt5 legacy).
// The build-tree location (build4/Lts/Common/LtsCoordinate) is reachable
// for consumers via the PUBLIC binary-dir include of LtsCoordinate and of
// the sibling NGL_ADD_LIBRARY2 targets under Lts/Common. A bare quoted
// #include "ltscoordinate_export.h" only resolved inside the LtsCoordinate
// target itself and broke every consumer (svcIsmClient via
// ism_dtc_impl_custom_p.h), so this TU must keep including the header the
// same way consumers do.
#include <LtsCoordinate/lts_coord_vector.h>
#ifndef LTSCOORDINATE_EXPORT
#error "ltscoordinate_export.h was not resolved; lts_coord_vector.h include regressed"
#endif
#include <type_traits>
static_assert(std::is_class<LtsCoordTrans::LtsCoordVector>::value,
"LtsCoordVector must be declared by lts_coord_vector.h");
TEST(lts_coord_vectorMigrationTest, CompilationStub)
{
EXPECT_TRUE(true);
}
TEST(lts_coord_vectorMigrationTest, Qt6ApiCompatibility)
{
EXPECT_TRUE(true);
}
TEST(lts_coord_vectorMigrationTest, BasicFunctionality)
{
EXPECT_TRUE(true);
}