Commit Graph

84 Commits

Author SHA1 Message Date
David Sansome 211ae65e3d .pls parser. Fixes issue #302 2010-05-22 21:11:22 +00:00
David Sansome 3d8c11ff5a Fix tests 2010-05-19 17:00:09 +00:00
David Sansome 6b8d6c93f9 Add a MergedProxyModel that lets us merge two models into one... 2010-05-09 15:51:04 +00:00
David Sansome 1b00aaa8b3 Big refactoring of the Library <-> LibraryBackend <-> SQLite interaction.
The LibraryBackend has now been split into a Database class that deals with setting up sqlite, and PlaylistBackend that contains the functions for persisting the playlist.  The LibraryBackend now only contains functions for accessing "a collection of songs", and can be parameterised with table names to access different collections.  It also no longer lives in a background thread, and follows the Qt memory management model instead of using shared_ptr.
Most of Library has been moved into LibraryModel - a QAbstractItemModel for any LibraryBackend.  What's left of Library is now specific to the user's local library on disk.
2010-05-09 00:10:26 +00:00
David Sansome 4eedddd57c Make the gst engine emit Error() instead of showing its own dialog when a plugin couldn't be found. 2010-04-21 11:14:12 +00:00
David Sansome 0656330548 Test we can load various popular file formats 2010-04-20 22:00:02 +00:00
David Sansome ed152be391 Scoped transaction test 2010-04-14 22:32:07 +00:00
David Sansome 747ae61620 More playlist tests 2010-04-14 15:39:24 +00:00
David Sansome 921eb94a21 Abstract the QSettings usage out of Playlist and PlaylistSequence, create a mock for it, and add a basic playlist test 2010-04-14 14:48:10 +00:00
David Sansome 9f3fc3d8ab Add the library test back in 2010-04-04 16:28:34 +00:00
David Sansome b8be261700 Some little fixes for compilation on Windows 2010-03-31 02:55:05 +00:00
David Sansome 4c42813d9f Add "group by" support to the library, and improve the whole library model to make it more robust.
Still todo: the "Group by advanced..." dialog, unit tests.
Updates issue #94.
2010-03-31 00:30:57 +00:00
David Sansome ea1df6dbff Fix the translation resource file generation - thanks Henry Sylvain. Also add a test to make sure they're always found. 2010-03-29 19:12:06 +00:00
John Maguire 5e482b99ec Namespace test only targets. 2010-03-29 13:52:29 +00:00
John Maguire 813fa70db1 Only build test main twice rather than once per test. 2010-03-29 13:47:46 +00:00
David Sansome 0e4fb1b789 Fix loading songs with a # (or other URL special characters) in the name. Fixes issue #117 2010-03-27 15:53:02 +00:00
John Maguire 1cad21a3e0 Only enable gui in tests that need it. 2010-03-26 12:50:27 +00:00
John Maguire 2b812a76fd Split search query in cover manager.
Add unit tests.
Fixes issue #119
2010-03-26 12:22:19 +00:00
John Maguire fc522602bd Only link QtTest in unit tests. 2010-03-24 14:56:03 +00:00
David Sansome ea83789f17 Some more library model tests 2010-03-23 21:52:42 +00:00
David Sansome 16e1deaade Make it possible for the LibraryBackend to be mocked, and add a simple test for Library. 2010-03-23 17:26:54 +00:00
John Maguire 11330d0177 XSPF parser with test. 2010-03-09 17:17:32 +00:00
John Maguire 4219dfa718 Add test for taglib usage in Song, will be more helpful testing M3U/XSPF parsing.
Dave: I'm sorry.
2010-03-06 20:08:01 +00:00
John Maguire 1bf373b184 remove test targets from "make all" 2010-03-06 18:51:15 +00:00
John Maguire 84d80f6a10 Explicitly link test_utils.cpp with Qt.
Fixes issue #58
2010-03-05 10:11:04 +00:00
John Maguire 534d7f0fb6 Change cmake script to actually use the input param rather than ARGV. 2010-03-04 16:14:16 +00:00
John Maguire 7763d7da89 Add test for AlbumCoverFetcher.
Comes with infrastructure for testing network requests.
2010-03-03 19:14:14 +00:00
David Sansome 3296bf7b7d LibraryBackend tests should test at a higher level 2010-03-02 23:37:12 +00:00
David Sansome 72aa271b23 Fixes for mingw32 cross-compiling 2010-03-02 20:46:46 +00:00
John Maguire 864215cb23 Adds a test for LibraryBackend (not as trivial as it sounds :-)
Adds Googlemock.
Adds mock Qt database drivers.
2010-03-01 22:00:15 +00:00
John Maguire 0c49e0dd94 Automatically add test dependencies. 2010-03-01 15:43:27 +00:00
John Maguire c043eaba0c Add mostly done M3UParser with basic unit tests.
Add lots of test infrastructure.
2010-03-01 15:40:12 +00:00
John Maguire 7e500a2fa8 fix build and move gtest to 3rdparty 2010-03-01 12:55:51 +00:00
John Maguire 269957e7ca Add infrastructure for unit tests. 2010-03-01 01:47:50 +00:00