Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestGPUInfo.cpp File Reference
#include "ServiceBroker.h"
#include "settings/AdvancedSettings.h"
#include "settings/SettingsComponent.h"
#include "utils/GpuInfo.h"
#include <memory>
#include <gtest/gtest.h>

Classes

class  TestGPUInfo
 

Functions

 EXPECT_NE (gpuInfo, nullptr)
 
 EXPECT_TRUE (success)
 
 EXPECT_TRUE (t.IsValid())
 
 EXPECT_EQ (t.ToCelsius(), 50)
 

Variables

std::unique_ptr< CGPUInfogpuInfo = CGPUInfo::GetGPUInfo()
 
CTemperature t
 
bool success = gpuInfo->GetTemperature(t)
 

Function Documentation

◆ EXPECT_EQ()

EXPECT_EQ ( t. ToCelsius(),
50  )

◆ EXPECT_NE()

EXPECT_NE ( gpuInfo ,
nullptr  )

◆ EXPECT_TRUE() [1/2]

EXPECT_TRUE ( success )

◆ EXPECT_TRUE() [2/2]

EXPECT_TRUE ( t. IsValid())

Variable Documentation

◆ gpuInfo

std::unique_ptr<CGPUInfo> gpuInfo = CGPUInfo::GetGPUInfo()

◆ success

bool success = gpuInfo->GetTemperature(t)

◆ t