diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-02 16:11:17 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-02 16:11:17 +0100 |
commit | 3c5e4e2788c7dcfa9d29c383c77396f9a3ffd4fa (patch) | |
tree | 849cf54a3627f8dcf36eecc30f9ca4324df2e534 /test/test_translate_song.cxx | |
parent | 3f4f7b0a53c00df5768f07fef5e444b60ad1a217 (diff) |
storage/Plugin: return std::unique_ptr<Storage>
Diffstat (limited to 'test/test_translate_song.cxx')
-rw-r--r-- | test/test_translate_song.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx index a2144b50a..0526f761f 100644 --- a/test/test_translate_song.cxx +++ b/test/test_translate_song.cxx @@ -14,6 +14,7 @@ #include "ls.hxx" #include "Log.hxx" #include "db/DatabaseSong.hxx" +#include "storage/StorageInterface.hxx" #include "storage/plugins/LocalStorage.hxx" #include "Mapper.hxx" #include "util/ChronoUtil.hxx" @@ -309,7 +310,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION(TranslateSongTest); int main(gcc_unused int argc, gcc_unused char **argv) { - storage = CreateLocalStorage(Path::FromFS(music_directory)); + auto _storage = CreateLocalStorage(Path::FromFS(music_directory)); + storage = _storage.get(); CppUnit::TextUi::TestRunner runner; auto ®istry = CppUnit::TestFactoryRegistry::getRegistry(); |