summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-03-13 19:58:36 +0100
committerMax Kellermann <max@musicpd.org>2020-03-13 19:58:36 +0100
commitcefc773992bcb87feb2874ea4b7a94ba8117ba44 (patch)
treee3946010bb5b06465f6100cf3e7b258c01ecff59 /test
parenta885bdba4ce2c3a077bc5e6c9654793dbe70bf3c (diff)
playlist/PlaylistSong: pass std::string_view
Diffstat (limited to 'test')
-rw-r--r--test/test_translate_song.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx
index 7b4b6b777..c1f0feaa5 100644
--- a/test/test_translate_song.cxx
+++ b/test/test_translate_song.cxx
@@ -200,7 +200,7 @@ TEST_F(TranslateSongTest, Insecure)
/* illegal because secure=false */
DetachedSong song1 (uri1);
const SongLoader loader(*reinterpret_cast<const Client *>(1));
- EXPECT_FALSE(playlist_check_translate_song(song1, nullptr,
+ EXPECT_FALSE(playlist_check_translate_song(song1, {},
loader));
}
@@ -221,18 +221,18 @@ TEST_F(TranslateSongTest, InDatabase)
storage);
DetachedSong song1("doesntexist");
- EXPECT_FALSE(playlist_check_translate_song(song1, nullptr,
+ EXPECT_FALSE(playlist_check_translate_song(song1, {},
loader));
DetachedSong song2(uri2, MakeTag2b());
auto se = ToString(DetachedSong(uri2, MakeTag2c()));
- EXPECT_TRUE(playlist_check_translate_song(song2, nullptr,
+ EXPECT_TRUE(playlist_check_translate_song(song2, {},
loader));
EXPECT_EQ(se, ToString(song2));
DetachedSong song3("/music/foo/bar.ogg", MakeTag2b());
se = ToString(DetachedSong(uri2, MakeTag2c()));
- EXPECT_TRUE(playlist_check_translate_song(song3, nullptr,
+ EXPECT_TRUE(playlist_check_translate_song(song3, {},
loader));
EXPECT_EQ(se, ToString(song3));
}
@@ -281,12 +281,12 @@ TEST_F(TranslateSongTest, Backslash)
/* on Windows, all backslashes are converted to slashes in
relative paths from playlists */
auto se = ToString(DetachedSong(uri2, MakeTag2c()));
- EXPECT_TRUE(playlist_check_translate_song(song1, nullptr,
+ EXPECT_TRUE(playlist_check_translate_song(song1, {},
loader));
EXPECT_EQ(se, ToString(song1));
#else
/* backslash only supported on Windows */
- EXPECT_FALSE(playlist_check_translate_song(song1, nullptr,
+ EXPECT_FALSE(playlist_check_translate_song(song1, {},
loader));
#endif
}