Adapts shared tests and common code to generated rtiddsgen API
Updates test suites and Lts/Common consumers to plain member access.
This commit is contained in:
41 files changed
+1076
-235
No files matched your search
@@ -1,13 +1,27 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
// Stub test for lts_coord_vector.cpp migration validation
|
||||
// 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>
|
||||
|
||||
namespace Lts
|
||||
{
|
||||
namespace Common
|
||||
{
|
||||
} // namespace Common
|
||||
} // namespace Lts
|
||||
#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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user