test/test_translate_song: remove unused variable "s1"
This commit is contained in:
parent
d8aec4b2dc
commit
83b0871248
|
@ -207,7 +207,6 @@ TEST_F(TranslateSongTest, Insecure)
|
||||||
TEST_F(TranslateSongTest, Secure)
|
TEST_F(TranslateSongTest, Secure)
|
||||||
{
|
{
|
||||||
DetachedSong song1(uri1, MakeTag1b());
|
DetachedSong song1(uri1, MakeTag1b());
|
||||||
auto s1 = ToString(song1);
|
|
||||||
auto se = ToString(DetachedSong(uri1, MakeTag1c()));
|
auto se = ToString(DetachedSong(uri1, MakeTag1c()));
|
||||||
|
|
||||||
const SongLoader loader(nullptr, nullptr);
|
const SongLoader loader(nullptr, nullptr);
|
||||||
|
@ -226,14 +225,12 @@ TEST_F(TranslateSongTest, InDatabase)
|
||||||
loader));
|
loader));
|
||||||
|
|
||||||
DetachedSong song2(uri2, MakeTag2b());
|
DetachedSong song2(uri2, MakeTag2b());
|
||||||
auto s1 = ToString(song2);
|
|
||||||
auto se = ToString(DetachedSong(uri2, MakeTag2c()));
|
auto se = ToString(DetachedSong(uri2, MakeTag2c()));
|
||||||
EXPECT_TRUE(playlist_check_translate_song(song2, nullptr,
|
EXPECT_TRUE(playlist_check_translate_song(song2, nullptr,
|
||||||
loader));
|
loader));
|
||||||
EXPECT_EQ(se, ToString(song2));
|
EXPECT_EQ(se, ToString(song2));
|
||||||
|
|
||||||
DetachedSong song3("/music/foo/bar.ogg", MakeTag2b());
|
DetachedSong song3("/music/foo/bar.ogg", MakeTag2b());
|
||||||
s1 = ToString(song3);
|
|
||||||
se = ToString(DetachedSong(uri2, MakeTag2c()));
|
se = ToString(DetachedSong(uri2, MakeTag2c()));
|
||||||
EXPECT_TRUE(playlist_check_translate_song(song3, nullptr,
|
EXPECT_TRUE(playlist_check_translate_song(song3, nullptr,
|
||||||
loader));
|
loader));
|
||||||
|
@ -249,7 +246,6 @@ TEST_F(TranslateSongTest, Relative)
|
||||||
|
|
||||||
/* map to music_directory */
|
/* map to music_directory */
|
||||||
DetachedSong song1("bar.ogg", MakeTag2b());
|
DetachedSong song1("bar.ogg", MakeTag2b());
|
||||||
auto s1 = ToString(song1);
|
|
||||||
auto se = ToString(DetachedSong(uri2, MakeTag2c()));
|
auto se = ToString(DetachedSong(uri2, MakeTag2c()));
|
||||||
EXPECT_TRUE(playlist_check_translate_song(song1, "/music/foo",
|
EXPECT_TRUE(playlist_check_translate_song(song1, "/music/foo",
|
||||||
insecure_loader));
|
insecure_loader));
|
||||||
|
@ -262,7 +258,6 @@ TEST_F(TranslateSongTest, Relative)
|
||||||
|
|
||||||
/* legal because secure=true */
|
/* legal because secure=true */
|
||||||
DetachedSong song3("bar.ogg", MakeTag1b());
|
DetachedSong song3("bar.ogg", MakeTag1b());
|
||||||
s1 = ToString(song3);
|
|
||||||
se = ToString(DetachedSong(uri1, MakeTag1c()));
|
se = ToString(DetachedSong(uri1, MakeTag1c()));
|
||||||
EXPECT_TRUE(playlist_check_translate_song(song3, "/foo",
|
EXPECT_TRUE(playlist_check_translate_song(song3, "/foo",
|
||||||
secure_loader));
|
secure_loader));
|
||||||
|
@ -270,7 +265,6 @@ TEST_F(TranslateSongTest, Relative)
|
||||||
|
|
||||||
/* relative to http:// */
|
/* relative to http:// */
|
||||||
DetachedSong song4("bar.ogg", MakeTag2a());
|
DetachedSong song4("bar.ogg", MakeTag2a());
|
||||||
s1 = ToString(song4);
|
|
||||||
se = ToString(DetachedSong("http://example.com/foo/bar.ogg", MakeTag2a()));
|
se = ToString(DetachedSong("http://example.com/foo/bar.ogg", MakeTag2a()));
|
||||||
EXPECT_TRUE(playlist_check_translate_song(song4, "http://example.com/foo",
|
EXPECT_TRUE(playlist_check_translate_song(song4, "http://example.com/foo",
|
||||||
insecure_loader));
|
insecure_loader));
|
||||||
|
|
Loading…
Reference in New Issue