~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to tests/mock_librarybackend.h

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
class MockLibraryBackend : public LibraryBackendInterface {
26
26
 public:
 
27
  MOCK_CONST_METHOD0(songs_table, QString());
 
28
 
27
29
  // Get a list of directories in the library.  Emits DirectoriesDiscovered.
28
30
  MOCK_METHOD0(LoadDirectoriesAsync, void());
29
31
 
33
35
  MOCK_METHOD1(FindSongsInDirectory, SongList(int));
34
36
  MOCK_METHOD1(SubdirsInDirectory, SubdirectoryList(int));
35
37
  MOCK_METHOD0(GetAllDirectories, DirectoryList());
36
 
  MOCK_METHOD2(ChangeDirPath, void(int, const QString&));
 
38
  MOCK_METHOD3(ChangeDirPath, void(int, const QString&, const QString&));
37
39
 
38
40
  MOCK_METHOD1(GetAllArtists, QStringList(const QueryOptions&));
39
41
  MOCK_METHOD1(GetAllArtistsWithAlbums, QStringList(const QueryOptions&));
51
53
 
52
54
  MOCK_METHOD1(GetSongById, Song(int));
53
55
 
54
 
  MOCK_METHOD1(GetSongsByFilename, SongList(const QString&));
55
 
  MOCK_METHOD2(GetSongByFilename, Song(const QString&, qint64));
 
56
  MOCK_METHOD1(GetSongsByUrl, SongList(const QUrl&));
 
57
  MOCK_METHOD2(GetSongByUrl, Song(const QUrl&, qint64));
56
58
 
57
59
  MOCK_METHOD1(AddDirectory, void(const QString&));
58
60
  MOCK_METHOD1(RemoveDirectory, void(const Directory&));