Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestURIUtilsPaths.cpp File Reference
#include "ServiceBroker.h"
#include "URL.h"
#include "Util.h"
#include "settings/AdvancedSettings.h"
#include "settings/SettingsComponent.h"
#include "utils/URIUtils.h"
#include <array>
#include <string>
#include <string_view>
#include <vector>
#include <gtest/gtest.h>

Functions

 TEST_F (TestURIUtilsPaths, PathHasParent)
 
 TEST_F (TestURIUtilsPaths, GetDirectory)
 
 TEST_F (TestURIUtilsPaths, GetDirectoryIntoItsOwnArgument)
 
 TEST_F (TestURIUtilsPaths, GetExtension)
 
 TEST_F (TestURIUtilsPaths, HasExtension)
 
 TEST_F (TestURIUtilsPaths, RemoveExtension)
 
 TEST_F (TestURIUtilsPaths, ReplaceExtension)
 
 TEST_F (TestURIUtilsPaths, Split)
 
 TEST_F (TestURIUtilsPaths, SplitPath)
 
 TEST_F (TestURIUtilsPaths, SplitPathLocal)
 
 TEST_F (TestURIUtilsPaths, FileNames)
 
 TEST_F (TestURIUtilsPaths, GetCommonPath)
 
 TEST_P (TestParentPath, GetParentPath)
 
 INSTANTIATE_TEST_SUITE_P (ParentPath, TestParentPath, testing::ValuesIn(Paths))
 
 TEST_P (TestBasePath, GetBasePath)
 
 INSTANTIATE_TEST_SUITE_P (BasePath, TestBasePath, testing::ValuesIn(Paths))
 
 TEST_P (GetFileOrFolderNameTester, TestValue)
 
 INSTANTIATE_TEST_SUITE_P (TestURIUtilsPaths, GetFileOrFolderNameTester, testing::ValuesIn(GetFileOrFolderNameTests))
 
 TEST_F (TestURIUtilsPaths, Slashes)
 
 TEST_F (TestURIUtilsPaths, AddFileToFolder)
 
 TEST_F (TestURIUtilsPaths, GetRealPath)
 
 TEST_F (TestURIUtilsPaths, SubstitutePath)
 
 TEST_F (TestURIUtilsPaths, SubstitutePathPreservesExplicitIntent)
 
 TEST_F (TestURIUtilsPaths, SubstitutePathUsesReplacementIntent)
 
 TEST_F (TestURIUtilsPaths, ParentAppendRoundTrip)
 
 TEST_F (TestURIUtilsPaths, IdentifierPathOperationsHaveNoHierarchy)
 
 TEST_F (TestURIUtilsPaths, MagnetMemberNavigationPreservesIdentity)
 
 TEST_F (TestURIUtilsPaths, MagnetMemberAncestryPreservesIdentity)
 
 TEST_F (TestURIUtilsPaths, MagnetMemberAncestryPreservesComponentPresence)
 
 TEST_F (TestURIUtilsPaths, IdentifierPrefixesHaveNoAncestry)
 
 TEST_F (TestURIUtilsPaths, URIComponentsAreNotReparsedAsLocations)
 
 TEST_F (TestURIUtilsPaths, NativeColonFilenameExtensions)
 
 TEST_F (TestURIUtilsPaths, NativeColonPathOperations)
 
 TEST_F (TestURIUtilsPaths, NativeAndLegacyAncestryAndCommonPaths)
 
 TEST_F (TestURIUtilsPaths, CommonMagnetPathPreservesSharedIdentity)
 
 TEST_F (TestURIUtilsPaths, RootlessURIAncestryAndCommonPaths)
 
 TEST_F (TestURIUtilsPaths, ValidatePath)
 
 TEST_F (TestURIUtilsPaths, CustomVFSAndPlaylistNavigation)
 
 TEST_F (TestURIUtilsPaths, LosslessNavigationRetainsEmptyDelimitersAndEscapes)
 

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P() [1/3]

INSTANTIATE_TEST_SUITE_P ( BasePath ,
TestBasePath ,
testing::ValuesIn(Paths)  )

◆ INSTANTIATE_TEST_SUITE_P() [2/3]

INSTANTIATE_TEST_SUITE_P ( ParentPath ,
TestParentPath ,
testing::ValuesIn(Paths)  )

◆ INSTANTIATE_TEST_SUITE_P() [3/3]

INSTANTIATE_TEST_SUITE_P ( TestURIUtilsPaths ,
GetFileOrFolderNameTester ,
testing::ValuesIn(GetFileOrFolderNameTests)  )

◆ TEST_F() [1/33]

TEST_F ( TestURIUtilsPaths ,
AddFileToFolder  )

◆ TEST_F() [2/33]

TEST_F ( TestURIUtilsPaths ,
CommonMagnetPathPreservesSharedIdentity  )

◆ TEST_F() [3/33]

TEST_F ( TestURIUtilsPaths ,
CustomVFSAndPlaylistNavigation  )

◆ TEST_F() [4/33]

TEST_F ( TestURIUtilsPaths ,
FileNames  )

◆ TEST_F() [5/33]

TEST_F ( TestURIUtilsPaths ,
GetCommonPath  )

◆ TEST_F() [6/33]

TEST_F ( TestURIUtilsPaths ,
GetDirectory  )

◆ TEST_F() [7/33]

TEST_F ( TestURIUtilsPaths ,
GetDirectoryIntoItsOwnArgument  )

◆ TEST_F() [8/33]

TEST_F ( TestURIUtilsPaths ,
GetExtension  )

◆ TEST_F() [9/33]

TEST_F ( TestURIUtilsPaths ,
GetRealPath  )

◆ TEST_F() [10/33]

TEST_F ( TestURIUtilsPaths ,
HasExtension  )

◆ TEST_F() [11/33]

TEST_F ( TestURIUtilsPaths ,
IdentifierPathOperationsHaveNoHierarchy  )

◆ TEST_F() [12/33]

TEST_F ( TestURIUtilsPaths ,
IdentifierPrefixesHaveNoAncestry  )

◆ TEST_F() [13/33]

TEST_F ( TestURIUtilsPaths ,
LosslessNavigationRetainsEmptyDelimitersAndEscapes  )

◆ TEST_F() [14/33]

TEST_F ( TestURIUtilsPaths ,
MagnetMemberAncestryPreservesComponentPresence  )

◆ TEST_F() [15/33]

TEST_F ( TestURIUtilsPaths ,
MagnetMemberAncestryPreservesIdentity  )

◆ TEST_F() [16/33]

TEST_F ( TestURIUtilsPaths ,
MagnetMemberNavigationPreservesIdentity  )

◆ TEST_F() [17/33]

TEST_F ( TestURIUtilsPaths ,
NativeAndLegacyAncestryAndCommonPaths  )

◆ TEST_F() [18/33]

TEST_F ( TestURIUtilsPaths ,
NativeColonFilenameExtensions  )

◆ TEST_F() [19/33]

TEST_F ( TestURIUtilsPaths ,
NativeColonPathOperations  )

◆ TEST_F() [20/33]

TEST_F ( TestURIUtilsPaths ,
ParentAppendRoundTrip  )

◆ TEST_F() [21/33]

TEST_F ( TestURIUtilsPaths ,
PathHasParent  )

◆ TEST_F() [22/33]

TEST_F ( TestURIUtilsPaths ,
RemoveExtension  )

◆ TEST_F() [23/33]

TEST_F ( TestURIUtilsPaths ,
ReplaceExtension  )

◆ TEST_F() [24/33]

TEST_F ( TestURIUtilsPaths ,
RootlessURIAncestryAndCommonPaths  )

◆ TEST_F() [25/33]

TEST_F ( TestURIUtilsPaths ,
Slashes  )

◆ TEST_F() [26/33]

TEST_F ( TestURIUtilsPaths ,
Split  )

◆ TEST_F() [27/33]

TEST_F ( TestURIUtilsPaths ,
SplitPath  )

◆ TEST_F() [28/33]

TEST_F ( TestURIUtilsPaths ,
SplitPathLocal  )

◆ TEST_F() [29/33]

TEST_F ( TestURIUtilsPaths ,
SubstitutePath  )

◆ TEST_F() [30/33]

TEST_F ( TestURIUtilsPaths ,
SubstitutePathPreservesExplicitIntent  )

◆ TEST_F() [31/33]

TEST_F ( TestURIUtilsPaths ,
SubstitutePathUsesReplacementIntent  )

◆ TEST_F() [32/33]

TEST_F ( TestURIUtilsPaths ,
URIComponentsAreNotReparsedAsLocations  )

◆ TEST_F() [33/33]

TEST_F ( TestURIUtilsPaths ,
ValidatePath  )

◆ TEST_P() [1/3]

TEST_P ( GetFileOrFolderNameTester ,
TestValue  )

◆ TEST_P() [2/3]

TEST_P ( TestBasePath ,
GetBasePath  )

◆ TEST_P() [3/3]

TEST_P ( TestParentPath ,
GetParentPath  )