From 91057acd781fad15270833883d34a286827c9cc9 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Thu, 17 Jun 2010 16:54:23 +0000 Subject: [PATCH] Fix some test values --- tests/librarybackend_test.cpp | 6 +++--- tests/librarymodel_test.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/librarybackend_test.cpp b/tests/librarybackend_test.cpp index 4ba9b433d..f8d987d3b 100644 --- a/tests/librarybackend_test.cpp +++ b/tests/librarybackend_test.cpp @@ -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; } diff --git a/tests/librarymodel_test.cpp b/tests/librarymodel_test.cpp index 92779a53c..296b66d2a 100644 --- a/tests/librarymodel_test.cpp +++ b/tests/librarymodel_test.cpp @@ -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");