|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include "ServiceBroker.h"#include "settings/AdvancedSettings.h"#include "settings/SettingsComponent.h"#include "utils/CPUInfo.h"#include "utils/Temperature.h"#include "utils/XTimeUtils.h"#include <gtest/gtest.h>Classes | |
| struct | TestCPUInfo |
Functions | |
| TEST_F (TestCPUInfo, GetUsedPercentage) | |
| TEST_F (TestCPUInfo, GetCPUCount) | |
| TEST_F (TestCPUInfo, GetCPUFrequency) | |
| EXPECT_TRUE (CServiceBroker::GetCPUInfo() ->GetTemperature(t)) | |
| EXPECT_TRUE (t.IsValid()) | |
| EXPECT_EQ (t.ToCelsius(), 50) | |
| TEST_F (TestCPUInfo, CoreInfo) | |
| TEST_F (TestCPUInfo, GetCoresUsageString) | |
| TEST_F (TestCPUInfo, GetCPUFeatures) | |
Variables | |
| CTemperature | t |
| EXPECT_EQ | ( | t. | ToCelsius(), |
| 50 | |||
| ) |
| EXPECT_TRUE | ( | CServiceBroker::GetCPUInfo() ->GetTemperature(t) | ) |
| EXPECT_TRUE | ( | t. | IsValid() | ) |
| TEST_F | ( | TestCPUInfo | , |
| CoreInfo | |||
| ) |
| TEST_F | ( | TestCPUInfo | , |
| GetCoresUsageString | |||
| ) |
| TEST_F | ( | TestCPUInfo | , |
| GetCPUCount | |||
| ) |
| TEST_F | ( | TestCPUInfo | , |
| GetCPUFeatures | |||
| ) |
| TEST_F | ( | TestCPUInfo | , |
| GetCPUFrequency | |||
| ) |
| TEST_F | ( | TestCPUInfo | , |
| GetUsedPercentage | |||
| ) |