Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
DatabaseTestUtils.h File Reference
#include "DatabaseManager.h"
#include "ServiceBroker.h"
#include "dbwrappers/Database.h"
#include "filesystem/File.h"
#include "filesystem/SpecialProtocol.h"
#include "settings/AdvancedSettings.h"
#include "settings/SettingsComponent.h"
#include <string>
#include <gtest/gtest.h>

Classes

class  CConnectedTestDatabase< DATABASE >
 An empty database named name of a test's own, connected for the life of the guard and deleted after it. Connect() rather than Open(), so CDatabaseManager plays no part. More...
 
class  CScopedTestDatabase< DATABASE >
 Points a database slot of the advanced settings, which Open() connects to, at an empty test database for the life of the guard, so code that opens the library itself can be tested. More...
 

Functions

DatabaseSettings TestDatabaseSettings ()
 Where a test database lives: an sqlite file in special://temp/.
 

Function Documentation

◆ TestDatabaseSettings()

DatabaseSettings TestDatabaseSettings ( )
inline

Where a test database lives: an sqlite file in special://temp/.