"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/utils/test/TestCPUInfo.cpp" between
xbmc-18.7.1-Leia.tar.gz and xbmc-18.8-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

TestCPUInfo.cpp  (xbmc-18.7.1-Leia):TestCPUInfo.cpp  (xbmc-18.8-Leia)
skipping to change at line 76 skipping to change at line 76
#ifndef TARGET_WINDOWS #ifndef TARGET_WINDOWS
TEST(TestCPUInfo, getTemperature) TEST(TestCPUInfo, getTemperature)
{ {
TemporarySetting command(CServiceBroker::GetSettingsComponent()->GetAdvancedSe ttings()->m_cpuTempCmd, "echo '50 c'"); TemporarySetting command(CServiceBroker::GetSettingsComponent()->GetAdvancedSe ttings()->m_cpuTempCmd, "echo '50 c'");
CTemperature t; CTemperature t;
EXPECT_TRUE(g_cpuInfo.getTemperature(t)); EXPECT_TRUE(g_cpuInfo.getTemperature(t));
EXPECT_TRUE(t.IsValid()); EXPECT_TRUE(t.IsValid());
} }
#endif #endif
TEST(TestCPUInfo, getCPUModel)
{
std::string s = g_cpuInfo.getCPUModel();
EXPECT_STRNE("", s.c_str());
}
TEST(TestCPUInfo, getCPUBogoMips)
{
std::string s = g_cpuInfo.getCPUBogoMips();
EXPECT_STRNE("", s.c_str());
}
TEST(TestCPUInfo, getCPUHardware)
{
std::string s = g_cpuInfo.getCPUHardware();
EXPECT_STRNE("", s.c_str());
}
TEST(TestCPUInfo, getCPURevision)
{
std::string s = g_cpuInfo.getCPURevision();
EXPECT_STRNE("", s.c_str());
}
TEST(TestCPUInfo, getCPUSerial)
{
std::string s = g_cpuInfo.getCPUSerial();
EXPECT_STRNE("", s.c_str());
}
TEST(TestCPUInfo, CoreInfo) TEST(TestCPUInfo, CoreInfo)
{ {
ASSERT_TRUE(g_cpuInfo.HasCoreId(0)); ASSERT_TRUE(g_cpuInfo.HasCoreId(0));
const CoreInfo c = g_cpuInfo.GetCoreInfo(0); const CoreInfo c = g_cpuInfo.GetCoreInfo(0);
EXPECT_FALSE(c.m_strModel.empty()); EXPECT_FALSE(c.m_strModel.empty());
} }
TEST(TestCPUInfo, GetCoresUsageString) TEST(TestCPUInfo, GetCoresUsageString)
{ {
EXPECT_STRNE("", g_cpuInfo.GetCoresUsageString().c_str()); EXPECT_STRNE("", g_cpuInfo.GetCoresUsageString().c_str());
 End of changes. 1 change blocks. 
30 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)