Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
test_int_DataManager.cpp File Reference

Integration tests for the DataManager class. More...

#include <QCoreApplication>
#include <QDebug>
#include <QSignalSpy>
#include "DataManager.hpp"
#include <gtest/gtest.h>

Go to the source code of this file.

Data Structures

class  DataManagerTest
 Class to test the integration between the DataManager and the SystemDataManager, VehicleDataManager, and ClusterSettingsManager. More...
 

Functions

 TEST_F (DataManagerTest, ForwardSpeedDataToVehicleDataManager)
 Ensures that the DataManager forwards speed data to the VehicleDataManager.
 
 TEST_F (DataManagerTest, ForwardRpmDataToVehicleDataManager)
 Ensures that the DataManager forwards RPM data to the VehicleDataManager.
 
 TEST_F (DataManagerTest, ForwardSteeringDataToVehicleDataManager)
 Ensures that the DataManager forwards steering data to the VehicleDataManager.
 
 TEST_F (DataManagerTest, ForwardDirectionDataToVehicleDataManager)
 Ensures that the DataManager forwards direction data to the VehicleDataManager.
 
 TEST_F (DataManagerTest, ForwardTimeDataToSystemDataManager)
 Ensures that the DataManager forwards time data to the SystemDataManager.
 
 TEST_F (DataManagerTest, ForwardWifiDataToSystemDataManager)
 Ensures that the DataManager forwards WiFi data to the SystemDataManager.
 
 TEST_F (DataManagerTest, ForwardTemperatureDataToSystemDataManager)
 Ensures that the DataManager forwards temperature data to the SystemDataManager.
 
 TEST_F (DataManagerTest, ForwardIpAddressDataToSystemDataManager)
 Ensures that the DataManager forwards IP address data to the SystemDataManager.
 
 TEST_F (DataManagerTest, ForwardBatteryPercentageToSystemDataManager)
 Ensures that the DataManager forwards battery percentage data to the SystemDataManager.
 
 TEST_F (DataManagerTest, ForwardMileageUpdateToVehicleDataManager)
 Ensures that the DataManager forwards mileage data to the VehicleDataManager.
 
 TEST_F (DataManagerTest, ToggleDrivingMode)
 Ensures that the DataManager toggles the driving mode.
 
 TEST_F (DataManagerTest, ToggleClusterTheme)
 Ensures that the DataManager toggles the cluster theme.
 
 TEST_F (DataManagerTest, ToggleClusterMetrics)
 Ensures that the DataManager toggles the cluster metrics.
 

Detailed Description

Integration tests for the DataManager class.

Version
0.1
Date
2025-02-12
Author
Michel Batista (@MicchelFAB)
FΓ©lix LE BIHAN (@Fle-bihh)
Ricardo Melo (@reomelo)
Tiago Pereira (@t-pereira06)

Definition in file test_int_DataManager.cpp.

Function Documentation

◆ TEST_F() [1/13]

TEST_F ( DataManagerTest ,
ForwardBatteryPercentageToSystemDataManager  )

Ensures that the DataManager forwards battery percentage data to the SystemDataManager.

Test
πŸ”‹ Forward Battery Percentage

This test verifies that the DataManager forwards battery percentage data to the SystemDataManager by emitting the batteryPercentageUpdated signal.

See also
DataManager::batteryPercentageUpdated

Definition at line 217 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [2/13]

TEST_F ( DataManagerTest ,
ForwardDirectionDataToVehicleDataManager  )

Ensures that the DataManager forwards direction data to the VehicleDataManager.

Test
🚦 Forward Direction Data

This test verifies that the DataManager forwards direction data to the VehicleDataManager by emitting the engineDataProcessed signal.

See also
DataManager::engineDataProcessed

Definition at line 119 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [3/13]

TEST_F ( DataManagerTest ,
ForwardIpAddressDataToSystemDataManager  )

Ensures that the DataManager forwards IP address data to the SystemDataManager.

Test
🌍 Forward IP Address Data

This test verifies that the DataManager forwards IP address data to the SystemDataManager by emitting the ipAddressUpdated signal.

See also
DataManager::ipAddressUpdated

Definition at line 198 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [4/13]

TEST_F ( DataManagerTest ,
ForwardMileageUpdateToVehicleDataManager  )

Ensures that the DataManager forwards mileage data to the VehicleDataManager.

Test
🚘 Forward Mileage Update

This test verifies that the DataManager forwards mileage data to the VehicleDataManager by emitting the mileageUpdated signal.

See also
DataManager::mileageUpdated

Definition at line 236 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [5/13]

TEST_F ( DataManagerTest ,
ForwardRpmDataToVehicleDataManager  )

Ensures that the DataManager forwards RPM data to the VehicleDataManager.

Test
πŸ”„ Forward RPM Data

This test verifies that the DataManager forwards RPM data to the VehicleDataManager by emitting the canDataProcessed signal.

See also
DataManager::canDataProcessed

Definition at line 81 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [6/13]

TEST_F ( DataManagerTest ,
ForwardSpeedDataToVehicleDataManager  )

Ensures that the DataManager forwards speed data to the VehicleDataManager.

Test
πŸš— Forward Speed Data

This test verifies that the DataManager forwards speed data to the VehicleDataManager by emitting the canDataProcessed signal.

See also
DataManager::canDataProcessed

Definition at line 62 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [7/13]

TEST_F ( DataManagerTest ,
ForwardSteeringDataToVehicleDataManager  )

Ensures that the DataManager forwards steering data to the VehicleDataManager.

Test
🏎️ Forward Steering Data

This test verifies that the DataManager forwards steering data to the VehicleDataManager by emitting the engineDataProcessed signal.

See also
DataManager::engineDataProcessed

Definition at line 100 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [8/13]

TEST_F ( DataManagerTest ,
ForwardTemperatureDataToSystemDataManager  )

Ensures that the DataManager forwards temperature data to the SystemDataManager.

Test
🌑 Forward Temperature Data

This test verifies that the DataManager forwards temperature data to the SystemDataManager by emitting the systemTemperatureUpdated signal.

See also
DataManager::systemTemperatureUpdated

Definition at line 179 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [9/13]

TEST_F ( DataManagerTest ,
ForwardTimeDataToSystemDataManager  )

Ensures that the DataManager forwards time data to the SystemDataManager.

Test
πŸ“… Forward Time Data

This test verifies that the DataManager forwards time data to the SystemDataManager by emitting the systemTimeUpdated signal.

See also
DataManager::systemTimeUpdated

Definition at line 138 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [10/13]

TEST_F ( DataManagerTest ,
ForwardWifiDataToSystemDataManager  )

Ensures that the DataManager forwards WiFi data to the SystemDataManager.

Test
πŸ“‘ Forward WiFi Data

This test verifies that the DataManager forwards WiFi data to the SystemDataManager by emitting the systemWifiUpdated signal.

See also
DataManager::systemWifiUpdated

Definition at line 159 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [11/13]

TEST_F ( DataManagerTest ,
ToggleClusterMetrics  )

Ensures that the DataManager toggles the cluster metrics.

Test
πŸ“Š Toggle Cluster Metrics

This test verifies that the DataManager toggles the cluster metrics by emitting the clusterMetricsUpdated signal.

See also
DataManager::clusterMetricsUpdated

Definition at line 289 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [12/13]

TEST_F ( DataManagerTest ,
ToggleClusterTheme  )

Ensures that the DataManager toggles the cluster theme.

Test
🎨 Toggle Cluster Theme

This test verifies that the DataManager toggles the cluster theme by emitting the clusterThemeUpdated signal.

See also
DataManager::clusterThemeUpdated

Definition at line 272 of file test_int_DataManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [13/13]

TEST_F ( DataManagerTest ,
ToggleDrivingMode  )

Ensures that the DataManager toggles the driving mode.

Test
πŸŽ› Toggle Driving Mode

This test verifies that the DataManager toggles the driving mode by emitting the drivingModeUpdated signal.

See also
DataManager::drivingModeUpdated

Definition at line 255 of file test_int_DataManager.cpp.

Here is the call graph for this function: