1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 12:28:31 +01:00

Fix some test values

This commit is contained in:
David Sansome 2010-06-17 16:54:23 +00:00
parent 0edc0edc49
commit 91057acd78
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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");