Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
c4c80b74
Commit
c4c80b74
authored
Jan 25, 2016
by
Hugo Beauzée-Luyssen
Browse files
tests: devices: Ensure remounting a device is functionnal
parent
0f2184aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/unittest/DeviceTests.cpp
View file @
c4c80b74
...
...
@@ -158,6 +158,19 @@ TEST_F( DeviceFs, UnmountDisk )
media
=
ml
->
media
(
RemovableDeviceMountpoint
+
"removablefile.mp3"
);
ASSERT_EQ
(
nullptr
,
media
);
fsMock
->
remountDevice
(
RemovableDeviceUuid
);
cbMock
->
prepareForReload
();
Reload
();
reloaded
=
cbMock
->
waitForReload
();
ASSERT_TRUE
(
reloaded
);
files
=
ml
->
files
();
ASSERT_EQ
(
5u
,
files
.
size
()
);
media
=
ml
->
media
(
RemovableDeviceMountpoint
+
"removablefile.mp3"
);
ASSERT_NE
(
nullptr
,
media
);
}
TEST_F
(
DeviceFs
,
ReplugDisk
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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