Files
qt-migration-legatus/qt6-after/qt6-migrated-benchmark/tests/test_migration_stubs.cpp
T

226 lines
4.6 KiB
C++

/**
* @file test_migration_stubs.cpp
* @brief Compilation tests for migrated stub headers (DTCs and enums)
*
* This test file verifies that all migrated stub headers compile correctly
* with Qt6 and C++23. These are forward declaration stubs that would normally
* be generated by DDS DTC tooling.
*/
#include <gtest/gtest.h>
// Test that the test framework is working
TEST(MigrationStubs, TestFrameworkWorks)
{
EXPECT_TRUE(true);
}
// Test that basic Qt6 types are available
TEST(MigrationStubs, Qt6TypesAvailable)
{
QString test = "Qt6 migration";
EXPECT_FALSE(test.isEmpty());
}
// DTC Stub Headers - these are forward declarations only
// Each include verifies the header compiles without errors
// AlarmManagement
#include "AlarmManagement/alm_dtc.h"
TEST(MigrationStubs, AlarmManagementDtcCompiles)
{
// Forward declaration only - verify namespace exists
using namespace AlarmManagement::Interface;
EXPECT_TRUE(true);
}
// AreaEffectSimulation
#include "AreaEffectSimulation/aes_dtc.h"
TEST(MigrationStubs, AreaEffectSimulationDtcCompiles)
{
using namespace AreaEffectSimulation::Interface;
EXPECT_TRUE(true);
}
// AssetManagement
#include "AssetManagement/asm_dtc.h"
TEST(MigrationStubs, AssetManagementDtcCompiles)
{
using namespace AssetManagement::Interface;
EXPECT_TRUE(true);
}
// AudioVideoManagement
#include "AudioVideoManagement/avm_dtc.h"
TEST(MigrationStubs, AudioVideoManagementDtcCompiles)
{
using namespace AudioVideoManagement::Interface;
EXPECT_TRUE(true);
}
// Buildings
#include "Buildings/bld_dtc.h"
TEST(MigrationStubs, BuildingsDtcCompiles)
{
using namespace Buildings::Interface;
EXPECT_TRUE(true);
}
// CentralEffectSimulation
#include "CentralEffectSimulation/ces_dtc.h"
TEST(MigrationStubs, CentralEffectSimulationDtcCompiles)
{
using namespace CentralEffectSimulation::Interface;
EXPECT_TRUE(true);
}
// CodificationManagement
#include "CodificationManagement/cod_dtc.h"
TEST(MigrationStubs, CodificationManagementDtcCompiles)
{
using namespace CodificationManagement::Interface;
EXPECT_TRUE(true);
}
// ComponentMonitor
#include "ComponentMonitor/cmo_dtc.h"
TEST(MigrationStubs, ComponentMonitorDtcCompiles)
{
using namespace ComponentMonitor::Interface;
EXPECT_TRUE(true);
}
// Core
#include "Core/core_dtc.h"
TEST(MigrationStubs, CoreDtcCompiles)
{
using namespace Core::Interface;
EXPECT_TRUE(true);
}
// DDS Core
#include "DDS/Core/core_dtc.h"
TEST(MigrationStubs, DDSCoreDtcCompiles)
{
using namespace DDS::Core::Interface;
EXPECT_TRUE(true);
}
// DDS DTC
#include "DDS/DTC/generic_dtc.h"
TEST(MigrationStubs, DDSDtcCompiles)
{
using namespace DDS::DTC;
EXPECT_TRUE(true);
}
// EffectShowClient
#include "EffectShowClient/esc_dtc.h"
TEST(MigrationStubs, EffectShowClientDtcCompiles)
{
using namespace EffectShowClient::Interface;
EXPECT_TRUE(true);
}
// EffectShowManagement
#include "EffectShowManagement/esm_dtc.h"
TEST(MigrationStubs, EffectShowManagementDtcCompiles)
{
using namespace EffectShowManagement::Interface;
EXPECT_TRUE(true);
}
// Evaluations
#include "Evaluations/evl_dtc.h"
TEST(MigrationStubs, EvaluationsDtcCompiles)
{
using namespace Evaluations::Interface;
EXPECT_TRUE(true);
}
// ExerciseEventManagement
#include "ExerciseEventManagement/eem_dtc.h"
TEST(MigrationStubs, ExerciseEventManagementDtcCompiles)
{
using namespace ExerciseEventManagement::Interface;
EXPECT_TRUE(true);
}
// ExerciseManagement
#include "ExerciseManagement/exm_dtc.h"
TEST(MigrationStubs, ExerciseManagementDtcCompiles)
{
using namespace ExerciseManagement::Interface;
EXPECT_TRUE(true);
}
// FileManagement
#include "FileManagement/flm_dtc.h"
TEST(MigrationStubs, FileManagementDtcCompiles)
{
using namespace FileManagement::Interface;
EXPECT_TRUE(true);
}
// GuezIedManagement
#include "GuezIedManagement/gim_dtc.h"
TEST(MigrationStubs, GuezIedManagementDtcCompiles)
{
using namespace GuezIedManagement::Interface;
EXPECT_TRUE(true);
}
// GuezNasat
#include "GuezNasat/gna_dtc.h"
TEST(MigrationStubs, GuezNasatDtcCompiles)
{
using namespace GuezNasat::Interface;
EXPECT_TRUE(true);
}
// InfrastructureManagement
#include "InfrastructureManagement/ism_dtc.h"
TEST(MigrationStubs, InfrastructureManagementDtcCompiles)
{
using namespace InfrastructureManagement::Interface;
EXPECT_TRUE(true);
}
// Generic DTC
#include "generic_dtc.h"
TEST(MigrationStubs, GenericDtcCompiles)
{
using namespace Generic;
EXPECT_TRUE(true);
}
// AES DTC (root level)
#include "aes_dtc.h"
TEST(MigrationStubs, AesDtcCompiles)
{
using namespace AES;
EXPECT_TRUE(true);
}