fixing tests

This commit is contained in:
Paweł Bara 2011-03-19 10:43:50 +00:00
parent 3db00fc339
commit 41f659ff4b
2 changed files with 3 additions and 1 deletions

View File

@ -203,7 +203,8 @@ class Playlist : public QAbstractListModel {
// song will be reloaded to even out the situation because obviously something has changed.
// This returns true if this playlist had current item when the method was invoked.
bool ApplyValidityOnCurrentSong(const QUrl& url, bool valid);
// Grays out and reloads all deleted songs in this playlist.
// Grays out and reloads all deleted songs in all playlists. Also, "ungreys" those songs
// which were once deleted but now got restored somehow.
void InvalidateDeletedSongs();
void StopAfter(int row);

View File

@ -32,6 +32,7 @@ public:
MOCK_CONST_METHOD0(active, Playlist*());
MOCK_CONST_METHOD0(GetAllPlaylists, QList<Playlist*>());
MOCK_METHOD0(InvalidateDeletedSongs, void());
MOCK_CONST_METHOD1(selection, const QItemSelection&(int));
MOCK_CONST_METHOD0(current_selection, const QItemSelection&());