Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestTagLoaderTagLib.cpp File Reference
#include "music/tags/MusicInfoTag.h"
#include "music/tags/TagLoaderTagLib.h"
#include <gtest/gtest.h>
#include <taglib/apetag.h>
#include <taglib/asftag.h>
#include <taglib/id3v1genres.h>
#include <taglib/id3v1tag.h>
#include <taglib/id3v2tag.h>
#include <taglib/mp4tag.h>
#include <taglib/tpropertymap.h>
#include <taglib/xiphcomment.h>

Classes

class  TestTagParser< T >
 
class  EmptyTagParser< T >
 
class  TestTagLoaderTagLib
 

Typedefs

typedef ::testing::Types< ID3v2::Tag, ID3v1::Tag, ASF::Tag, APE::Tag, Ogg::XiphComment, MP4::Tag > TagTypes
 
typedef ::testing::Types< ID3v2::Tag, ID3v1::Tag, ASF::Tag, APE::Tag, Ogg::XiphComment > EmptyPropertiesTagTypes
 

Functions

 TYPED_TEST_SUITE (TestTagParser, TagTypes)
 
 TYPED_TEST (TestTagParser, ParsesBasicTag)
 
 TYPED_TEST (TestTagParser, HandleNullTag)
 
template<typename T , size_t N>
T * end (T(&ra)[N])
 
 TYPED_TEST_SUITE (EmptyTagParser, EmptyPropertiesTagTypes)
 
 TYPED_TEST (EmptyTagParser, EmptyProperties)
 
 TYPED_TEST (TestTagParser, FooProperties)
 
 TEST_F (TestTagLoaderTagLib, SetGenre)
 
 TEST_F (TestTagLoaderTagLib, SplitMBID)
 

Variables

const char * tags []
 

Typedef Documentation

◆ EmptyPropertiesTagTypes

typedef ::testing::Types<ID3v2::Tag, ID3v1::Tag, ASF::Tag, APE::Tag, Ogg::XiphComment> EmptyPropertiesTagTypes

◆ TagTypes

typedef ::testing::Types<ID3v2::Tag, ID3v1::Tag, ASF::Tag, APE::Tag, Ogg::XiphComment, MP4::Tag> TagTypes

Function Documentation

◆ end()

template<typename T , size_t N>
T * end ( T(&) ra[N])

◆ TEST_F() [1/2]

TEST_F ( TestTagLoaderTagLib ,
SetGenre  )

◆ TEST_F() [2/2]

TEST_F ( TestTagLoaderTagLib ,
SplitMBID  )

◆ TYPED_TEST() [1/4]

TYPED_TEST ( EmptyTagParser ,
EmptyProperties  )

◆ TYPED_TEST() [2/4]

TYPED_TEST ( TestTagParser ,
FooProperties  )

◆ TYPED_TEST() [3/4]

TYPED_TEST ( TestTagParser ,
HandleNullTag  )

◆ TYPED_TEST() [4/4]

TYPED_TEST ( TestTagParser ,
ParsesBasicTag  )

◆ TYPED_TEST_SUITE() [1/2]

TYPED_TEST_SUITE ( EmptyTagParser ,
EmptyPropertiesTagTypes  )

◆ TYPED_TEST_SUITE() [2/2]

TYPED_TEST_SUITE ( TestTagParser ,
TagTypes  )

Variable Documentation

◆ tags

const char* tags[]
Initial value:
= { "APIC", "ASPI", "COMM", "COMR", "ENCR", "EQU2",
"ETCO", "GEOB", "GRID", "LINK", "MCDI", "MLLT", "OWNE", "PRIV", "PCNT",
"POPM", "POSS", "RBUF", "RVA2", "RVRB", "SEEK", "SIGN", "SYLT",
"SYTC", "TALB", "TBPM", "TCOM", "TCON", "TCOP", "TDEN", "TDLY", "TDOR",
"TDRC", "TDRL", "TDTG", "TENC", "TEXT", "TFLT", "TIPL", "TIT1", "TIT2",
"TIT3", "TKEY", "TLAN", "TLEN", "TMCL", "TMED", "TMOO", "TOAL", "TOFN",
"TOLY", "TOPE", "TOWN", "TPE1", "TPE2", "TPE3", "TPE4", "TPOS", "TPRO",
"TPUB", "TRCK", "TRSN", "TRSO", "TSOA", "TSOP", "TSOT", "TSRC", "TSSE",
"TSST", "TXXX", "UFID", "USER", "USLT", "WCOM", "WCOP", "WOAF", "WOAR",
"WOAS", "WORS", "WPAY", "WPUB", "WXXX", "ARTIST", "ARTISTS",
"ALBUMARTIST" , "ALBUM ARTIST", "ALBUMARTISTS" , "ALBUM ARTISTS", "ALBUM",
"TITLE", "TRACKNUMBER" "TRACK", "DISCNUMBER" "DISC", "YEAR", "GENRE",
"COMMENT", "CUESHEET", "ENCODEDBY", "COMPILATION", "LYRICS",
"REPLAYGAIN_TRACK_GAIN", "REPLAYGAIN_ALBUM_GAIN", "REPLAYGAIN_TRACK_PEAK",
"REPLAYGAIN_ALBUM_PEAK", "MUSICBRAINZ_ARTISTID",
"MUSICBRAINZ_ALBUMARTISTID", "RATING", "MUSICBRAINZ_ALBUMARTIST",
"MUSICBRAINZ_ALBUMID", "MUSICBRAINZ_TRACKID", "METADATA_BLOCK_PICTURE",
"COVERART"
}