Modified:
/trunk/tests/libs/PlaylistParser/PlaylistParserTest.cpp
/trunk/tests/libs/PlaylistParser/PlaylistParserTest.h
/trunk/tests/libs/PlaylistParser/playlists.qrc
=======================================
--- /trunk/tests/libs/PlaylistParser/PlaylistParserTest.cpp Wed Nov 10
09:13:40 2010
+++ /trunk/tests/libs/PlaylistParser/PlaylistParserTest.cpp Tue Feb 15
08:44:25 2011
@@ -77,7 +77,7 @@
<< 0;
//Unsupported Format
- QTest::newRow("Unsupported Format") << ":/TheKMPlayer-2.9.4/test.KPL"
+ QTest::newRow("Unsupported Format") << ":/TheKMPlayer/test.KPL"
<< QList<MediaInfo>()
<< static_cast<int>(PlaylistParser::UnsupportedFormatError)
<< static_cast<int>(QFile::NoError)
@@ -94,187 +94,90 @@
QList<MediaInfo> localM3UPlaylist() {
return QList<MediaInfo>()
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\01-Do
Whats Good For Me.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\02-No
Limit.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\03-Get
Ready For This.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\04-Twilight Zone.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\05-No
One.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\06-Jump
For Joy.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\07-Tribal
Dance.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\08-Magic
Friend.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\09-Workaholic.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\10-Let
The Beat Control Your Body.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\11-Nothing Like The Rain.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\12-Spread
Your Love.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\13-The
Real Thing.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\14-Here I
Go.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\15-Maximum Overdrive.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\16-Faces.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\01 Blondie - Heart Of
Glass.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\02 Blondie - Dreaming.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\03 Blondie - The Tide Is
High.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\04 Blondie - In The Flesh.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\05 Blondie - Sunday Girl.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\06 Blondie - Hanging On The
Telephone.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\07 Blondie - Rapture.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\08 Blondie - One Way Or
Another.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\09 Blondie - (I'm Always
Touched By Your) Presence Dear.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\10 Blondie - Call Me (Theme
From American Gigolo).mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\11 Blondie - Atomic.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\12 Blondie - Rip Her To
Shreds.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\01 Madcon - Beggin'.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\02 Madcon - Back On The Road [With
Paperboys].mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\03 Madcon - Liar.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\04 Madcon - Hard To Read [With Noora].mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\05 Madcon - Life's Too Short.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\06 Madcon - The Way We Do Thangs [With
Timbuktu].mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\07 Madcon - Blessed.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\08 Madcon - Suda Suda [With El Axel].mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\09 Madcon - Let It Be Known.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\10 Madcon - Let's Dance Instead.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\11 Madcon - Dandelion.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\12 Madcon - Pride And Prejudice [With
Sofian].mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\13 Madcon - Me And My Brother.mp3")
- << MediaInfo("C:\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\14 Madcon - Loose [Bonus].mp3");
+ << MediaInfo("C:\\1.mp3")
+ << MediaInfo("C:\\2.mp3")
+ << MediaInfo("C:\\3.mp3")
+ << MediaInfo("C:\\4.mp3")
+ << MediaInfo("C:\\5.mp3");
}
QList<MediaInfo> localM3UPlaylist_NoRoot() {
return QList<MediaInfo>()
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\01-Do
Whats Good For Me.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\02-No
Limit.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\03-Get
Ready For This.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\04-Twilight Zone.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\05-No
One.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\06-Jump
For Joy.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\07-Tribal
Dance.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\08-Magic
Friend.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\09-Workaholic.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\10-Let
The Beat Control Your Body.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\11-Nothing Like The Rain.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\12-Spread
Your Love.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\13-The
Real Thing.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2 Unlimited\\14-Here I
Go.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\15-Maximum Overdrive.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\2 Unlimited - The Very Best Of 2
Unlimited\\16-Faces.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\01 Blondie - Heart Of
Glass.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\02 Blondie - Dreaming.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\03 Blondie - The Tide Is
High.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\04 Blondie - In The Flesh.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\05 Blondie - Sunday Girl.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\06 Blondie - Hanging On The
Telephone.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\07 Blondie - Rapture.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\08 Blondie - One Way Or
Another.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\09 Blondie - (I'm Always
Touched By Your) Presence Dear.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\10 Blondie - Call Me (Theme
From American Gigolo).mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\11 Blondie - Atomic.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Blondie - The Best of\\12 Blondie - Rip Her To
Shreds.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\01 Madcon - Beggin'.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\02 Madcon - Back On The Road [With
Paperboys].mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\03 Madcon - Liar.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\04 Madcon - Hard To Read [With Noora].mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\05 Madcon - Life's Too Short.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\06 Madcon - The Way We Do Thangs [With
Timbuktu].mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\07 Madcon - Blessed.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\08 Madcon - Suda Suda [With El Axel].mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\09 Madcon - Let It Be Known.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\10 Madcon - Let's Dance Instead.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\11 Madcon - Dandelion.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\12 Madcon - Pride And Prejudice [With
Sofian].mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\13 Madcon - Me And My Brother.mp3")
- << MediaInfo("\\Documents and Settings\\tanguy_k\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\14 Madcon - Loose [Bonus].mp3");
+ << MediaInfo("\\1.mp3")
+ << MediaInfo("\\2.mp3")
+ << MediaInfo("\\3.mp3")
+ << MediaInfo("\\4.mp3")
+ << MediaInfo("\\5.mp3");
}
QList<MediaInfo> localM3UPlaylist_Relative() {
return QList<MediaInfo>()
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\01-Do Whats Good For Me.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\02-No Limit.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\03-Get Ready For This.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\04-Twilight Zone.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\05-No One.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\06-Jump For Joy.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\07-Tribal Dance.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\08-Magic Friend.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\09-Workaholic.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\10-Let The Beat Control Your
Body.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\11-Nothing Like The Rain.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\12-Spread Your Love.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\13-The Real Thing.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\14-Here I Go.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\15-Maximum Overdrive.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My Documents\\Downloads\\2
Unlimited - The Very Best Of 2 Unlimited\\16-Faces.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\01 Blondie - Heart Of
Glass.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\02 Blondie - Dreaming.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\03 Blondie - The Tide Is
High.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\04 Blondie - In The Flesh.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\05 Blondie - Sunday Girl.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\06 Blondie - Hanging On The
Telephone.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\07 Blondie - Rapture.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\08 Blondie - One Way Or
Another.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\09 Blondie - (I'm Always
Touched By Your) Presence Dear.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\10 Blondie - Call Me (Theme
From American Gigolo).mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\11 Blondie - Atomic.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Blondie - The Best of\\12 Blondie - Rip Her To
Shreds.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\01 Madcon - Beggin'.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\02 Madcon - Back On The Road [With
Paperboys].mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\03 Madcon - Liar.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\04 Madcon - Hard To Read [With Noora].mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\05 Madcon - Life's Too Short.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\06 Madcon - The Way We Do Thangs [With
Timbuktu].mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\07 Madcon - Blessed.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\08 Madcon - Suda Suda [With El Axel].mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\09 Madcon - Let It Be Known.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\10 Madcon - Let's Dance Instead.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\11 Madcon - Dandelion.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\12 Madcon - Pride And Prejudice [With
Sofian].mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\13 Madcon - Me And My Brother.mp3")
- << MediaInfo("..\\..\\..\\..\\..\\..\\..\\My
Documents\\Downloads\\Madcon-So Dark The Con Of
Man[2008][CD+SkidVid_XviD+Cov]\\14 Madcon - Loose [Bonus].mp3");
+ << MediaInfo("..\\mp3\\1.mp3")
+ << MediaInfo("..\\mp3\\2.mp3")
+ << MediaInfo("..\\mp3\\3.mp3")
+ << MediaInfo("..\\mp3\\4.mp3")
+ << MediaInfo("..\\mp3\\5.mp3");
}
void PlaylistParserTest::loadPlaylistM3U() {
//Foobar
- QTest::newRow("Foobar M3U") << ":/foobar2000-0.9.6.7/test.m3u"
+ QTest::newRow("Foobar M3U") << ":/foobar2000/test.m3u"
<< localM3UPlaylist()
<< static_cast<int>(PlaylistParser::NoError)
<< static_cast<int>(QFile::NoError)
<< 0;
//Foobar
- QTest::newRow("Foobar M3U8") << ":/foobar2000-0.9.6.7/test.m3u8"
+ QTest::newRow("Foobar M3U8") << ":/foobar2000/test.m3u8"
<< localM3UPlaylist()
<< static_cast<int>(PlaylistParser::NoError)
<< static_cast<int>(QFile::NoError)
<< 0;
//TheKMPlayer
- QTest::newRow("TheKMPlayer M3U") << ":/TheKMPlayer-2.9.4/test.M3U"
+ QTest::newRow("TheKMPlayer M3U") << ":/TheKMPlayer/test.M3U"
<< localM3UPlaylist()
<< static_cast<int>(PlaylistParser::NoError)
<< static_cast<int>(QFile::NoError)
<< 0;
//Winamp
- QTest::newRow("Winamp M3U") << ":/Winamp-5.531/test.m3u"
- << localM3UPlaylist_NoRoot()
+ QTest::newRow("Winamp M3U") << ":/Winamp/test.m3u"
+ << localM3UPlaylist()
<< static_cast<int>(PlaylistParser::NoError)
<< static_cast<int>(QFile::NoError)
<< 0;
//Winamp
- QTest::newRow("Winamp M3U8") << ":/Winamp-5.531/test.m3u8"
+ QTest::newRow("Winamp M3U8") << ":/Winamp/test.m3u8"
+ << localM3UPlaylist()
+ << static_cast<int>(PlaylistParser::NoError)
+ << static_cast<int>(QFile::NoError)
+ << 0;
+
+ //Winamp
+ QTest::newRow("Winamp M3U") << ":/Winamp/test-noroot.m3u"
<< localM3UPlaylist_NoRoot()
<< static_cast<int>(PlaylistParser::NoError)
<< static_cast<int>(QFile::NoError)
<< 0;
//WindowsMediaPlayer
- QTest::newRow("WindowsMediaPlayer M3U")
<< ":/WindowsMediaPlayer-9.0/test.m3u"
+ QTest::newRow("WindowsMediaPlayer M3U") << ":/WindowsMediaPlayer/test.m3u"
+ << localM3UPlaylist()
+ << static_cast<int>(PlaylistParser::NoError)
+ << static_cast<int>(QFile::NoError)
+ << 0;
+
+ //WindowsMediaPlayer
+ QTest::newRow("WindowsMediaPlayer M3U")
<< ":/WindowsMediaPlayer/test-relative.m3u"
<< localM3UPlaylist_Relative()
<< static_cast<int>(PlaylistParser::NoError)
<< static_cast<int>(QFile::NoError)
<< 0;
//Europe1
- QTest::newRow("Europe1 M3U")
<< ":/fromInternet/webradio/europe1/europe1.m3u"
+ QTest::newRow("Europe1 M3U") << ":/Internet/webradio/europe1/europe1.m3u"
<< (QList<MediaInfo>()
<< MediaInfo("http://vipicecast.yacast.net/europe1"))
<< static_cast<int>(PlaylistParser::NoError)
@@ -282,7 +185,7 @@
<< 0;
//Live9
- QTest::newRow("Live9 M3U") << ":/fromInternet/webradio/live9/192.m3u"
+ QTest::newRow("Live9 M3U") << ":/Internet/webradio/live9/192.m3u"
<< (QList<MediaInfo>()
<< MediaInfo("http://stream192.live9.fr:8050")
<< MediaInfo("http://stream192.live9.fr:8050")
@@ -294,7 +197,7 @@
<< 0;
//France Inter
- QTest::newRow("France Inter M3U")
<< ":/fromInternet/webradio/franceinter/france_inter_mp3-128k.m3u"
+ QTest::newRow("France Inter M3U")
<< ":/Internet/webradio/franceinter/france_inter_mp3-128k.m3u"
<< (QList<MediaInfo>()
<<
MediaInfo("http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3"))
<< static_cast<int>(PlaylistParser::NoError)
@@ -302,7 +205,7 @@
<< 0;
//Radio Nova
- QTest::newRow("Radio Nova M3U")
<< ":/fromInternet/webradio/radionova/radionova.m3u"
+ QTest::newRow("Radio Nova M3U")
<< ":/Internet/webradio/radionova/radionova.m3u"
<< (QList<MediaInfo>()
<< MediaInfo("http://broadcast.infomaniak.net:80/radionova-high.mp3"))
<< static_cast<int>(PlaylistParser::NoError)
@@ -315,7 +218,7 @@
void PlaylistParserTest::loadPlaylistWPL() {
//WindowsMediaPlayer
- /*QTest::newRow("WindowsMediaPlayer WPL")
<< ":/WindowsMediaPlayer-9.0/test.wpl"
+ /*QTest::newRow("WindowsMediaPlayer WPL")
<< ":/WindowsMediaPlayer/test.wpl"
<< localM3UPlaylist()
<< static_cast<int>(PlaylistParser::NoError)
<< static_cast<int>(QFile::NoError)
@@ -324,7 +227,7 @@
void PlaylistParserTest::loadPlaylistPLS() {
//France Inter
- QTest::newRow("France Inter PLS")
<< ":/fromInternet/webradio/franceinter/france_inter_mp3-128k.pls"
+ QTest::newRow("France Inter PLS")
<< ":/Internet/webradio/franceinter/france_inter_mp3-128k.pls"
<< (QList<MediaInfo>()
<<
MediaInfo("http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3")
<<
MediaInfo("http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3"))
@@ -335,7 +238,7 @@
void PlaylistParserTest::loadPlaylistASX() {
//Live9
- QTest::newRow("Live9 ASX") << ":/fromInternet/webradio/live9/192.asx"
+ QTest::newRow("Live9 ASX") << ":/Internet/webradio/live9/192.asx"
<< (QList<MediaInfo>()
<< MediaInfo("mms://wm.live9.fr/live9live"))
<< static_cast<int>(PlaylistParser::NoError)
@@ -343,7 +246,7 @@
<< 0;
//OUI FM
- QTest::newRow("OUI FM ASX")
<< ":/fromInternet/webradio/ouifm/Ouifm-hautdebit-wmp.asx"
+ QTest::newRow("OUI FM ASX")
<< ":/Internet/webradio/ouifm/Ouifm-hautdebit-wmp.asx"
<< (QList<MediaInfo>()
<< MediaInfo("http://www.ouifm.fr/player/IntroPubOUIFM.mp3")
<< MediaInfo("http://broadcast.infomaniak.net:80/ouifm-high.mp3"))
@@ -352,7 +255,7 @@
<< 0;
//Virgin Radio
- QTest::newRow("Virgin Radio ASX")
<< ":/fromInternet/webradio/virginradio/virgin.asx"
+ QTest::newRow("Virgin Radio ASX")
<< ":/Internet/webradio/virginradio/virgin.asx"
<< (QList<MediaInfo>()
<< MediaInfo("mms://viplagardere.yacast.net/encodereurope2"))
<< static_cast<int>(PlaylistParser::NoError)
@@ -360,7 +263,7 @@
<< 0;
//Europe1
- QTest::newRow("Europe1 ASX")
<< ":/fromInternet/webradio/europe1/europe1.asx"
+ QTest::newRow("Europe1 ASX") << ":/Internet/webradio/europe1/europe1.asx"
<< (QList<MediaInfo>()
<< MediaInfo("mms://viplagardere.yacast.net/encodereurope1"))
<< static_cast<int>(PlaylistParser::NoError)
@@ -471,7 +374,7 @@
return mediaInfoList;
}
-
+/*
void PlaylistParserTest::savePlaylist_data() {
QTest::addColumn<QString>("playlistFileName");
@@ -518,3 +421,4 @@
<< static_cast<int>(QFile::NoError)
<< 0;
}
+*/
=======================================
--- /trunk/tests/libs/PlaylistParser/PlaylistParserTest.h Wed Nov 10
09:13:40 2010
+++ /trunk/tests/libs/PlaylistParser/PlaylistParserTest.h Tue Feb 15
08:44:25 2011
@@ -91,11 +91,11 @@
void finished(PlaylistParser::Error error, int timeElapsed);
-
+/*
void savePlaylist_data();
void savePlaylist();
-
+*/
private:
void loadPlaylistM3U();
@@ -106,7 +106,7 @@
void loadPlaylistXSPF();
void loadPlaylistCUE();
- void savePlaylistM3U();
+ //void savePlaylistM3U();
PlaylistReader * _reader;
=======================================
--- /trunk/tests/libs/PlaylistParser/playlists.qrc Thu Nov 4 03:53:07 2010
+++ /trunk/tests/libs/PlaylistParser/playlists.qrc Tue Feb 15 08:44:25 2011
@@ -1,29 +1,36 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
- <file>foobar2000-0.9.6.7/test.m3u</file>
- <file>foobar2000-0.9.6.7/test.m3u8</file>
- <file>foobar2000-0.9.6.7/test.xspf</file>
-
- <file>TheKMPlayer-2.9.4/test.ASX</file>
- <file>TheKMPlayer-2.9.4/test.KPL</file>
- <file>TheKMPlayer-2.9.4/test.M3U</file>
- <file>TheKMPlayer-2.9.4/test.PLS</file>
-
- <file>Winamp-5.531/test.m3u</file>
- <file>Winamp-5.531/test.m3u8</file>
- <file>Winamp-5.531/test.pls</file>
-
- <file>WindowsMediaPlayer-9.0/test.m3u</file>
- <file>WindowsMediaPlayer-9.0/test.wpl</file>
-
- <file>fromInternet/webradio/europe1/europe1.m3u</file>
- <file>fromInternet/webradio/europe1/europe1.asx</file>
- <file>fromInternet/webradio/franceinter/france_inter_mp3-128k.m3u</file>
- <file>fromInternet/webradio/franceinter/france_inter_mp3-128k.pls</file>
- <file>fromInternet/webradio/radionova/radionova.m3u</file>
- <file>fromInternet/webradio/live9/192.m3u</file>
- <file>fromInternet/webradio/live9/192.asx</file>
- <file>fromInternet/webradio/ouifm/Ouifm-hautdebit-wmp.asx</file>
- <file>fromInternet/webradio/virginradio/virgin.asx</file>
+ <file>foobar2000/test.m3u</file>
+ <file>foobar2000/test.m3u8</file>
+ <file>foobar2000/test.xspf</file>
+
+ <file>TheKMPlayer/test.ASX</file>
+ <file>TheKMPlayer/test.KPL</file>
+ <file>TheKMPlayer/test.M3U</file>
+ <file>TheKMPlayer/test.PLS</file>
+
+ <file>VLC/test.m3u</file>
+ <file>VLC/test.m3u8</file>
+ <file>VLC/test.xspf</file>
+
+ <file>Winamp/test.m3u</file>
+ <file>Winamp/test.m3u8</file>
+ <file>Winamp/test.pls</file>
+ <file>Winamp/test-noroot.m3u</file>
+
+ <file>WindowsMediaPlayer/test.m3u</file>
+ <file>WindowsMediaPlayer/test.wpl</file>
+ <file>WindowsMediaPlayer/test-relative.m3u</file>
+ <file>WindowsMediaPlayer/test-relative.wpl</file>
+
+ <file>Internet/webradio/europe1/europe1.m3u</file>
+ <file>Internet/webradio/europe1/europe1.asx</file>
+ <file>Internet/webradio/franceinter/france_inter_mp3-128k.m3u</file>
+ <file>Internet/webradio/franceinter/france_inter_mp3-128k.pls</file>
+ <file>Internet/webradio/radionova/radionova.m3u</file>
+ <file>Internet/webradio/live9/192.m3u</file>
+ <file>Internet/webradio/live9/192.asx</file>
+ <file>Internet/webradio/ouifm/Ouifm-hautdebit-wmp.asx</file>
+ <file>Internet/webradio/virginradio/virgin.asx</file>
</qresource>
</RCC>