mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +01:00
Fix test compilation
This commit is contained in:
parent
6e19e777d8
commit
531fa90cbd
@ -34,8 +34,9 @@ class LibraryBackendTest : public ::testing::Test {
|
|||||||
protected:
|
protected:
|
||||||
virtual void SetUp() {
|
virtual void SetUp() {
|
||||||
database_.reset(new MemoryDatabase);
|
database_.reset(new MemoryDatabase);
|
||||||
backend_.reset(new LibraryBackend(database_.get(), Library::kSongsTable,
|
backend_.reset(new LibraryBackend);
|
||||||
Library::kDirsTable, Library::kSubdirsTable));
|
backend_->Init(database_, Library::kSongsTable,
|
||||||
|
Library::kDirsTable, Library::kSubdirsTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
Song MakeDummySong(int directory_id) {
|
Song MakeDummySong(int directory_id) {
|
||||||
@ -49,7 +50,7 @@ class LibraryBackendTest : public ::testing::Test {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::scoped_ptr<Database> database_;
|
boost::shared_ptr<Database> database_;
|
||||||
boost::scoped_ptr<LibraryBackend> backend_;
|
boost::scoped_ptr<LibraryBackend> backend_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -33,8 +33,9 @@ class LibraryModelTest : public ::testing::Test {
|
|||||||
protected:
|
protected:
|
||||||
void SetUp() {
|
void SetUp() {
|
||||||
database_.reset(new MemoryDatabase);
|
database_.reset(new MemoryDatabase);
|
||||||
backend_.reset(new LibraryBackend(database_.get(), Library::kSongsTable,
|
backend_.reset(new LibraryBackend());
|
||||||
Library::kDirsTable, Library::kSubdirsTable));
|
backend_->Init(database_, Library::kSongsTable,
|
||||||
|
Library::kDirsTable, Library::kSubdirsTable);
|
||||||
model_.reset(new LibraryModel(backend_.get()));
|
model_.reset(new LibraryModel(backend_.get()));
|
||||||
|
|
||||||
added_dir_ = false;
|
added_dir_ = false;
|
||||||
@ -68,7 +69,7 @@ class LibraryModelTest : public ::testing::Test {
|
|||||||
return AddSong(song);
|
return AddSong(song);
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::scoped_ptr<Database> database_;
|
boost::shared_ptr<Database> database_;
|
||||||
boost::scoped_ptr<LibraryBackend> backend_;
|
boost::scoped_ptr<LibraryBackend> backend_;
|
||||||
boost::scoped_ptr<LibraryModel> model_;
|
boost::scoped_ptr<LibraryModel> model_;
|
||||||
boost::scoped_ptr<QSortFilterProxyModel> model_sorted_;
|
boost::scoped_ptr<QSortFilterProxyModel> model_sorted_;
|
||||||
|
Loading…
Reference in New Issue
Block a user