Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestScreenshotTaking Class Reference

Takes screenshots with the test standing in for the render loop. More...

Inheritance diagram for TestScreenshotTaking:
TestScreenshotDeletion

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
bool Deliver (CaptureContent content)
 Draw one frame of the given content for the request on top, once there is one.
 
bool Deliver (CaptureContent content, bool readable)
 readable false delivers a frame whose pixels cannot be locked, so nothing is written
 
bool WaitForFile (const std::string &name, int attempts) const
 Wait up to attempts x 5ms for a file to appear, read from the disk.
 
- Protected Member Functions inherited from TestScreenshotDeletion
void SetUp () override
 
void TearDown () override
 
void Write (const std::string &name, const std::string &content="")
 
std::string Read (const std::string &name) const
 
bool Exists (const std::string &name) const
 
int FileCount () const
 

Static Protected Member Functions

static bool WaitForJoinedCalls (int calls)
 Wait until calls calls are waiting for another call's screenshot.
 

Protected Attributes

std::shared_ptr< CCaptureService > m_service
 
- Protected Attributes inherited from TestScreenshotDeletion
std::string m_dir
 
std::optional< CScopedSetting > m_screenshotPath
 

Detailed Description

Takes screenshots with the test standing in for the render loop.

Member Function Documentation

◆ Deliver() [1/2]

bool TestScreenshotTaking::Deliver ( CaptureContent content)
inlineprotected

Draw one frame of the given content for the request on top, once there is one.

◆ Deliver() [2/2]

bool TestScreenshotTaking::Deliver ( CaptureContent content,
bool readable )
inlineprotected

readable false delivers a frame whose pixels cannot be locked, so nothing is written

◆ SetUp()

void TestScreenshotTaking::SetUp ( )
inlineoverrideprotected

◆ TearDown()

void TestScreenshotTaking::TearDown ( )
inlineoverrideprotected

◆ WaitForFile()

bool TestScreenshotTaking::WaitForFile ( const std::string & name,
int attempts ) const
inlineprotected

Wait up to attempts x 5ms for a file to appear, read from the disk.

◆ WaitForJoinedCalls()

static bool TestScreenshotTaking::WaitForJoinedCalls ( int calls)
inlinestaticprotected

Wait until calls calls are waiting for another call's screenshot.

Member Data Documentation

◆ m_service

std::shared_ptr<CCaptureService> TestScreenshotTaking::m_service
protected

The documentation for this class was generated from the following file: