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

Unit tests for the ClusterSettingsManager class. More...

#include <QSignalSpy>
#include "ClusterSettingsManager.hpp"
#include <gtest/gtest.h>

Go to the source code of this file.

Data Structures

class  ClusterSettingsManagerTest
 Test fixture for testing the ClusterSettingsManager class. More...
 

Functions

 TEST_F (ClusterSettingsManagerTest, ToggleDrivingModeEmitsSignal)
 Ensures that the driving mode can be toggled between Manual and Automatic.
 
 TEST_F (ClusterSettingsManagerTest, ToggleClusterThemeEmitsSignal)
 Ensures that the cluster theme can be toggled between Dark and Light.
 
 TEST_F (ClusterSettingsManagerTest, ToggleClusterMetricsEmitsSignal)
 Ensures that the cluster metrics can be toggled between Kilometers and Miles.
 

Detailed Description

Unit tests for the ClusterSettingsManager class.

Version
0.1
Date
2025-02-12

This file contains unit tests for the ClusterSettingsManager class, using Google Test and Google Mock frameworks.

Author
Félix LE BIHAN (@Fle-bihh)
Tiago Pereira (@t-pereira06)
Ricardo Melo (@reomelo)
Michel Batista (@MicchelFAB)

Definition in file test_ClusterSettingsManager.cpp.

Function Documentation

◆ TEST_F() [1/3]

TEST_F ( ClusterSettingsManagerTest ,
ToggleClusterMetricsEmitsSignal  )

Ensures that the cluster metrics can be toggled between Kilometers and Miles.

Test
Tests if the cluster metrics can be toggled.

This test verifies that the cluster metrics can be toggled between Kilometers and Miles.

See also
ClusterSettingsManager::toggleClusterMetrics

Definition at line 94 of file test_ClusterSettingsManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [2/3]

TEST_F ( ClusterSettingsManagerTest ,
ToggleClusterThemeEmitsSignal  )

Ensures that the cluster theme can be toggled between Dark and Light.

Test
Tests if the cluster theme can be toggled.

This test verifies that the cluster theme can be toggled between Dark and Light.

See also
ClusterSettingsManager::toggleClusterTheme

Definition at line 70 of file test_ClusterSettingsManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [3/3]

TEST_F ( ClusterSettingsManagerTest ,
ToggleDrivingModeEmitsSignal  )

Ensures that the driving mode can be toggled between Manual and Automatic.

Test
Tests if the driving mode can be toggled.

This test verifies that the driving mode can be toggled between Manual and Automatic.

See also
ClusterSettingsManager::toggleDrivingMode

Definition at line 46 of file test_ClusterSettingsManager.cpp.

Here is the call graph for this function: