Unit tests for the SystemManager class. More...
#include <QSignalSpy>
#include "MockBatteryController.hpp"
#include "MockSystemInfoProvider.hpp"
#include "SystemManager.hpp"
#include <gmock/gmock.h>
#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, UpdateTime_EmitsCorrectSignal) | |
Ensures that the time is correctly updated. | |
TEST_F (SystemManagerTest, UpdateSystemStatus_EmitsWifiStatus) | |
Ensures that the system status is correctly updated. | |
TEST_F (SystemManagerTest, UpdateSystemStatus_EmitsTemperature) | |
Ensures that the system status is correctly updated. | |
TEST_F (SystemManagerTest, UpdateSystemStatus_EmitsBatteryPercentage) | |
Ensures that the system status is correctly updated. | |
TEST_F (SystemManagerTest, UpdateSystemStatus_EmitsIpAddress) | |
Ensures that the system status is correctly updated. | |
Unit tests for the SystemManager class.
This file contains unit tests for the SystemManager class, using Google Test and Google Mock frameworks.
Definition in file test_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateSystemStatus_EmitsBatteryPercentage | ) |
Ensures that the system status is correctly updated.
This test verifies that the system status is correctly updated.
Definition at line 125 of file test_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateSystemStatus_EmitsIpAddress | ) |
Ensures that the system status is correctly updated.
This test verifies that the system status is correctly updated.
Definition at line 145 of file test_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateSystemStatus_EmitsTemperature | ) |
Ensures that the system status is correctly updated.
This test verifies that the system status is correctly updated.
Definition at line 105 of file test_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateSystemStatus_EmitsWifiStatus | ) |
Ensures that the system status is correctly updated.
This test verifies that the system status is correctly updated.
Definition at line 78 of file test_SystemManager.cpp.
TEST_F | ( | SystemManagerTest | , |
UpdateTime_EmitsCorrectSignal | ) |
Ensures that the time is correctly updated.
This test verifies that the time is correctly updated.
Definition at line 57 of file test_SystemManager.cpp.