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

A fixture holding a private video database in special://temp/. More...

#include <VideoDatabaseTestBase.h>

Inheritance diagram for VideoDatabaseTestBase:
TestVideoDatabaseContentGeometry TestVideoDatabaseDeclaredAspect VideoDatabaseGetResultTest

Protected Member Functions

 VideoDatabaseTestBase (std::string namePrefix, std::string pathPrefix)
 
void SetUp () override
 
void TearDown () override
 
int AddTestFile (const std::string &name)
 

Protected Attributes

CVideoDatabase m_db
 

Detailed Description

A fixture holding a private video database in special://temp/.

Connect() rather than Open(), so this brings up the video schema alone rather than every database Kodi has by way of CDatabaseManager. Each test gets a database of its own, named after it, so no test reads another's rows.

Constructor & Destructor Documentation

◆ VideoDatabaseTestBase()

VideoDatabaseTestBase::VideoDatabaseTestBase ( std::string namePrefix,
std::string pathPrefix )
inlineprotected

Member Function Documentation

◆ AddTestFile()

int VideoDatabaseTestBase::AddTestFile ( const std::string & name)
inlineprotected

◆ SetUp()

void VideoDatabaseTestBase::SetUp ( )
inlineoverrideprotected

◆ TearDown()

void VideoDatabaseTestBase::TearDown ( )
inlineoverrideprotected

Member Data Documentation

◆ m_db

CVideoDatabase VideoDatabaseTestBase::m_db
protected

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