Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestLibrary.h File Reference
#include "FileItem.h"
#include "dbwrappers/test/DatabaseTestUtils.h"
#include "music/MusicDatabase.h"
#include "utils/Artwork.h"
#include "utils/StringUtils.h"
#include "utils/URIUtils.h"
#include "video/VideoDatabase.h"
#include "video/VideoInfoTag.h"
#include <string>
#include <vector>
#include <gtest/gtest.h>

Classes

class  CTestLibrary
 A music and a video library of their own for a test, which code that opens the libraries itself then reads. More...
 

Namespaces

namespace  KODI
 
namespace  KODI::TEST
 

Functions

CVideoInfoTag KODI::TEST::VideoTag (CVideoDatabase &db, const std::string &fileAndPath, const std::string &title="")
 The details of the video at fileAndPath as a scan gives them, its paths added to db as a scan adds them. It is titled title, or with its file name.
 
int KODI::TEST::AddMovie (CVideoDatabase &db, const std::string &fileAndPath, const std::string &title="", const std::string &set="")
 
int KODI::TEST::AddTvShow (CVideoDatabase &db, const std::string &title, const std::vector< std::string > &folders, CVideoInfoTag details={})
 
int KODI::TEST::AddEpisode (CVideoDatabase &db, int idShow, const std::string &fileAndPath, int episode, const std::string &title="")