fixing tests
This commit is contained in:
parent
3db00fc339
commit
41f659ff4b
|
@ -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);
|
||||
|
|
|
@ -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&());
|
||||
|
|
Loading…
Reference in New Issue