Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
83b08712
Commit
83b08712
authored
Jul 29, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/test_translate_song: remove unused variable "s1"
parent
d8aec4b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
test_translate_song.cxx
test/test_translate_song.cxx
+0
-6
No files found.
test/test_translate_song.cxx
View file @
83b08712
...
...
@@ -207,7 +207,6 @@ TEST_F(TranslateSongTest, Insecure)
TEST_F
(
TranslateSongTest
,
Secure
)
{
DetachedSong
song1
(
uri1
,
MakeTag1b
());
auto
s1
=
ToString
(
song1
);
auto
se
=
ToString
(
DetachedSong
(
uri1
,
MakeTag1c
()));
const
SongLoader
loader
(
nullptr
,
nullptr
);
...
...
@@ -226,14 +225,12 @@ TEST_F(TranslateSongTest, InDatabase)
loader
));
DetachedSong
song2
(
uri2
,
MakeTag2b
());
auto
s1
=
ToString
(
song2
);
auto
se
=
ToString
(
DetachedSong
(
uri2
,
MakeTag2c
()));
EXPECT_TRUE
(
playlist_check_translate_song
(
song2
,
nullptr
,
loader
));
EXPECT_EQ
(
se
,
ToString
(
song2
));
DetachedSong
song3
(
"/music/foo/bar.ogg"
,
MakeTag2b
());
s1
=
ToString
(
song3
);
se
=
ToString
(
DetachedSong
(
uri2
,
MakeTag2c
()));
EXPECT_TRUE
(
playlist_check_translate_song
(
song3
,
nullptr
,
loader
));
...
...
@@ -249,7 +246,6 @@ TEST_F(TranslateSongTest, Relative)
/* map to music_directory */
DetachedSong
song1
(
"bar.ogg"
,
MakeTag2b
());
auto
s1
=
ToString
(
song1
);
auto
se
=
ToString
(
DetachedSong
(
uri2
,
MakeTag2c
()));
EXPECT_TRUE
(
playlist_check_translate_song
(
song1
,
"/music/foo"
,
insecure_loader
));
...
...
@@ -262,7 +258,6 @@ TEST_F(TranslateSongTest, Relative)
/* legal because secure=true */
DetachedSong
song3
(
"bar.ogg"
,
MakeTag1b
());
s1
=
ToString
(
song3
);
se
=
ToString
(
DetachedSong
(
uri1
,
MakeTag1c
()));
EXPECT_TRUE
(
playlist_check_translate_song
(
song3
,
"/foo"
,
secure_loader
));
...
...
@@ -270,7 +265,6 @@ TEST_F(TranslateSongTest, Relative)
/* relative to http:// */
DetachedSong
song4
(
"bar.ogg"
,
MakeTag2a
());
s1
=
ToString
(
song4
);
se
=
ToString
(
DetachedSong
(
"http://example.com/foo/bar.ogg"
,
MakeTag2a
()));
EXPECT_TRUE
(
playlist_check_translate_song
(
song4
,
"http://example.com/foo"
,
insecure_loader
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment