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