Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestArtUtils.cpp File Reference
#include "FileItem.h"
#include "ServiceBroker.h"
#include "URL.h"
#include "filesystem/Directory.h"
#include "platform/Filesystem.h"
#include "settings/AdvancedSettings.h"
#include "settings/Settings.h"
#include "settings/SettingsComponent.h"
#include "settings/lib/SettingsManager.h"
#include "utils/ArtUtils.h"
#include "utils/FileUtils.h"
#include "utils/StringUtils.h"
#include "utils/URIUtils.h"
#include "video/VideoInfoTag.h"
#include <array>
#include <fstream>
#include <random>
#include <fmt/format.h>
#include <gtest/gtest.h>

Functions

 TEST_P (FillInDefaultIconTest, FillInDefaultIcon)
 
 INSTANTIATE_TEST_SUITE_P (TestArtUtils, FillInDefaultIconTest, testing::ValuesIn(icon_tests))
 
 TEST_P (FolderThumbTest, GetFolderThumb)
 
 INSTANTIATE_TEST_SUITE_P (TestArtUtils, FolderThumbTest, testing::ValuesIn(folder_thumb_tests))
 
 TEST_P (TestLocalArt, GetLocalArt)
 
 INSTANTIATE_TEST_SUITE_P (TestArtUtils, TestLocalArt, testing::ValuesIn(local_art_tests))
 
 TEST_P (GetLocalArtBaseFilenameTest, GetLocalArtBaseFilename)
 
 INSTANTIATE_TEST_SUITE_P (TestArtUtils, GetLocalArtBaseFilenameTest, testing::ValuesIn(local_art_filename_tests))
 
 TEST_P (GetLocalFanartTest, GetLocalFanart)
 
 INSTANTIATE_TEST_SUITE_P (TestArtUtils, GetLocalFanartTest, testing::ValuesIn(local_fanart_tests))
 
 TEST_P (GetTbnTest, TbnTest)
 
 INSTANTIATE_TEST_SUITE_P (TestArtUtils, GetTbnTest, testing::ValuesIn(tbn_tests))
 
 TEST (TestArtUtils, GetTbnStack)
 

Variables

const auto tbn_tests
 

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P() [1/6]

INSTANTIATE_TEST_SUITE_P ( TestArtUtils ,
FillInDefaultIconTest ,
testing::ValuesIn(icon_tests)  )

◆ INSTANTIATE_TEST_SUITE_P() [2/6]

INSTANTIATE_TEST_SUITE_P ( TestArtUtils ,
FolderThumbTest ,
testing::ValuesIn(folder_thumb_tests)  )

◆ INSTANTIATE_TEST_SUITE_P() [3/6]

INSTANTIATE_TEST_SUITE_P ( TestArtUtils ,
GetLocalArtBaseFilenameTest ,
testing::ValuesIn(local_art_filename_tests)  )

◆ INSTANTIATE_TEST_SUITE_P() [4/6]

INSTANTIATE_TEST_SUITE_P ( TestArtUtils ,
GetLocalFanartTest ,
testing::ValuesIn(local_fanart_tests)  )

◆ INSTANTIATE_TEST_SUITE_P() [5/6]

INSTANTIATE_TEST_SUITE_P ( TestArtUtils ,
GetTbnTest ,
testing::ValuesIn(tbn_tests)  )

◆ INSTANTIATE_TEST_SUITE_P() [6/6]

INSTANTIATE_TEST_SUITE_P ( TestArtUtils ,
TestLocalArt ,
testing::ValuesIn(local_art_tests)  )

◆ TEST()

TEST ( TestArtUtils ,
GetTbnStack  )

◆ TEST_P() [1/6]

TEST_P ( FillInDefaultIconTest ,
FillInDefaultIcon  )

◆ TEST_P() [2/6]

TEST_P ( FolderThumbTest ,
GetFolderThumb  )

◆ TEST_P() [3/6]

TEST_P ( GetLocalArtBaseFilenameTest ,
GetLocalArtBaseFilename  )

◆ TEST_P() [4/6]

TEST_P ( GetLocalFanartTest ,
GetLocalFanart  )

◆ TEST_P() [5/6]

TEST_P ( GetTbnTest ,
TbnTest  )

◆ TEST_P() [6/6]

TEST_P ( TestLocalArt ,
GetLocalArt  )

Variable Documentation

◆ tbn_tests

const auto tbn_tests
Initial value:
= std::array{
TbnTest{"/home/user/video.avi", "/home/user/video.tbn"},
TbnTest{"/home/user/video/", "/home/user/video.tbn", true},
TbnTest{"/home/user/bar.xbt", "/home/user/bar.tbn", true},
TbnTest{"zip://%2fhome%2fuser%2fbar.zip/foo.avi", "/home/user/foo.tbn"},
TbnTest{"stack:///home/user/foo-cd1.avi , /home/user/foo-cd2.avi", "/home/user/foo.tbn"}}