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. | |
Integration tests for the DataManager class.
Definition in file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardBatteryPercentageToSystemDataManager | ) |
Ensures that the DataManager forwards battery percentage data to the SystemDataManager.
This test verifies that the DataManager forwards battery percentage data to the SystemDataManager by emitting the batteryPercentageUpdated signal.
Definition at line 217 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardDirectionDataToVehicleDataManager | ) |
Ensures that the DataManager forwards direction data to the VehicleDataManager.
This test verifies that the DataManager forwards direction data to the VehicleDataManager by emitting the engineDataProcessed signal.
Definition at line 119 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardIpAddressDataToSystemDataManager | ) |
Ensures that the DataManager forwards IP address data to the SystemDataManager.
This test verifies that the DataManager forwards IP address data to the SystemDataManager by emitting the ipAddressUpdated signal.
Definition at line 198 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardMileageUpdateToVehicleDataManager | ) |
Ensures that the DataManager forwards mileage data to the VehicleDataManager.
This test verifies that the DataManager forwards mileage data to the VehicleDataManager by emitting the mileageUpdated signal.
Definition at line 236 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardRpmDataToVehicleDataManager | ) |
Ensures that the DataManager forwards RPM data to the VehicleDataManager.
This test verifies that the DataManager forwards RPM data to the VehicleDataManager by emitting the canDataProcessed signal.
Definition at line 81 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardSpeedDataToVehicleDataManager | ) |
Ensures that the DataManager forwards speed data to the VehicleDataManager.
This test verifies that the DataManager forwards speed data to the VehicleDataManager by emitting the canDataProcessed signal.
Definition at line 62 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardSteeringDataToVehicleDataManager | ) |
Ensures that the DataManager forwards steering data to the VehicleDataManager.
This test verifies that the DataManager forwards steering data to the VehicleDataManager by emitting the engineDataProcessed signal.
Definition at line 100 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardTemperatureDataToSystemDataManager | ) |
Ensures that the DataManager forwards temperature data to the SystemDataManager.
This test verifies that the DataManager forwards temperature data to the SystemDataManager by emitting the systemTemperatureUpdated signal.
Definition at line 179 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardTimeDataToSystemDataManager | ) |
Ensures that the DataManager forwards time data to the SystemDataManager.
This test verifies that the DataManager forwards time data to the SystemDataManager by emitting the systemTimeUpdated signal.
Definition at line 138 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ForwardWifiDataToSystemDataManager | ) |
Ensures that the DataManager forwards WiFi data to the SystemDataManager.
This test verifies that the DataManager forwards WiFi data to the SystemDataManager by emitting the systemWifiUpdated signal.
Definition at line 159 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ToggleClusterMetrics | ) |
Ensures that the DataManager toggles the cluster metrics.
This test verifies that the DataManager toggles the cluster metrics by emitting the clusterMetricsUpdated signal.
Definition at line 289 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ToggleClusterTheme | ) |
Ensures that the DataManager toggles the cluster theme.
This test verifies that the DataManager toggles the cluster theme by emitting the clusterThemeUpdated signal.
Definition at line 272 of file test_int_DataManager.cpp.
TEST_F | ( | DataManagerTest | , |
ToggleDrivingMode | ) |
Ensures that the DataManager toggles the driving mode.
This test verifies that the DataManager toggles the driving mode by emitting the drivingModeUpdated signal.
Definition at line 255 of file test_int_DataManager.cpp.