Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
61970dd1
Commit
61970dd1
authored
May 20, 2014
by
Hugo Beauzée-Luyssen
Browse files
Add a duplicate media unit test
parent
d0640747
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Label.cpp
View file @
61970dd1
...
...
@@ -78,8 +78,6 @@ bool Label::createTable(sqlite3* dbConnection)
return
SqliteTools
::
executeRequest
(
dbConnection
,
req
.
c_str
()
);
}
const
std
::
string
&
policy
::
LabelCachePolicy
::
key
(
const
std
::
shared_ptr
<
ILabel
>
self
)
{
return
self
->
name
();
...
...
test/Files.cpp
View file @
61970dd1
...
...
@@ -67,3 +67,15 @@ TEST_F( Files, Delete )
f2
=
ml
->
file
(
"/dev/loutre"
);
ASSERT_EQ
(
f2
,
nullptr
);
}
TEST_F
(
Files
,
Duplicate
)
{
auto
f
=
ml
->
addFile
(
"/dev/moulaf"
);
auto
f2
=
ml
->
addFile
(
"/dev/moulaf"
);
ASSERT_NE
(
f
,
nullptr
);
ASSERT_EQ
(
f2
,
nullptr
);
f2
=
ml
->
file
(
"/dev/moulaf"
);
ASSERT_EQ
(
f
,
f2
);
}
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