Integration tests for the SystemManager class. More...
#include <QCoreApplication>
#include <QSignalSpy>
#include "BatteryController.hpp"
#include "SystemCommandExecutor.hpp"
#include "SystemInfoProvider.hpp"
#include "SystemManager.hpp"
#include <gtest/gtest.h>
Go to the source code of this file.
Data Structures | |
class | SystemManagerTest |
Class to test the integration between the SystemManager and the BatteryController, SystemInfoProvider, and SystemCommandExecutor. More... | |
Functions | |
TEST_F (SystemManagerTest, UpdateTimeSignal) | |
Ensures that the SystemManager initializes successfully. | |
TEST_F (SystemManagerTest, UpdateWifiStatusSignal) | |
Ensures that the SystemManager updates the wifi status. | |
TEST_F (SystemManagerTest, UpdateTemperatureSignal) | |
Ensures that the SystemManager updates the temperature. | |
TEST_F (SystemManagerTest, UpdateBatteryPercentageSignal) | |
Ensures that the SystemManager updates the battery percentage. | |
TEST_F (SystemManagerTest, UpdateIpAddressSignal) | |
Ensures that the SystemManager updates the IP address. | |
TEST_F (SystemManagerTest, ShutdownSystemManager) | |
Ensures that the SystemManager shuts down successfully. | |
Integration tests for the SystemManager class.
Definition in file test_int_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
ShutdownSystemManager | ) |
Ensures that the SystemManager shuts down successfully.
This test verifies that the SystemManager shuts down successfully by deactivating the time timer and status timer.
Definition at line 171 of file test_int_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateBatteryPercentageSignal | ) |
Ensures that the SystemManager updates the battery percentage.
This test verifies that the SystemManager updates the battery percentage by emitting the batteryPercentageUpdated signal.
Definition at line 133 of file test_int_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateIpAddressSignal | ) |
Ensures that the SystemManager updates the IP address.
This test verifies that the SystemManager updates the IP address by emitting the ipAddressUpdated signal.
Definition at line 153 of file test_int_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateTemperatureSignal | ) |
Ensures that the SystemManager updates the temperature.
This test verifies that the SystemManager updates the temperature by emitting the temperatureUpdated signal.
Definition at line 114 of file test_int_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateTimeSignal | ) |
Ensures that the SystemManager initializes successfully.
This test verifies that the SystemManager initializes successfully by emitting the timeUpdated, wifiStatusUpdated, temperatureUpdated, batteryPercentageUpdated, and ipAddressUpdated signals.
Definition at line 76 of file test_int_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateWifiStatusSignal | ) |
Ensures that the SystemManager updates the wifi status.
This test verifies that the SystemManager updates the wifi status by emitting the wifiStatusUpdated signal.
Definition at line 95 of file test_int_SystemManager.cpp.