mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 04:19:55 +01:00
Fix some test values
This commit is contained in:
parent
0edc0edc49
commit
91057acd78
@ -44,9 +44,9 @@ class LibraryBackendTest : public ::testing::Test {
|
||||
Song ret;
|
||||
ret.set_directory_id(directory_id);
|
||||
ret.set_filename("foo.mp3");
|
||||
ret.set_mtime(0);
|
||||
ret.set_ctime(0);
|
||||
ret.set_filesize(0);
|
||||
ret.set_mtime(1);
|
||||
ret.set_ctime(1);
|
||||
ret.set_filesize(1);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -49,10 +49,10 @@ class LibraryModelTest : public ::testing::Test {
|
||||
|
||||
Song AddSong(Song& song) {
|
||||
song.set_directory_id(1);
|
||||
if (song.mtime() == -1) song.set_mtime(0);
|
||||
if (song.ctime() == -1) song.set_ctime(0);
|
||||
if (song.mtime() == -1) song.set_mtime(1);
|
||||
if (song.ctime() == -1) song.set_ctime(1);
|
||||
if (song.filename().isNull()) song.set_filename("/test/foo");
|
||||
if (song.filesize() == -1) song.set_filesize(0);
|
||||
if (song.filesize() == -1) song.set_filesize(1);
|
||||
|
||||
if (!added_dir_) {
|
||||
backend_->AddDirectory("/test");
|
||||
|
Loading…
Reference in New Issue
Block a user