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
126e1b73
Commit
126e1b73
authored
Dec 29, 2015
by
Hugo Beauzée-Luyssen
Browse files
tests: Devices: Properly mark the device as removable
parent
b9475e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/unittest/DeviceTests.cpp
View file @
126e1b73
...
...
@@ -47,7 +47,8 @@ protected:
fsMock
.
reset
(
new
mock
::
FileSystemFactory
);
cbMock
.
reset
(
new
mock
::
WaitForDiscoveryComplete
);
fsMock
->
addFolder
(
"/a/mnt/"
);
fsMock
->
addDevice
(
RemovableDeviceMountpoint
,
RemovableDeviceUuid
);
auto
device
=
std
::
static_pointer_cast
<
mock
::
Device
>
(
fsMock
->
addDevice
(
RemovableDeviceMountpoint
,
RemovableDeviceUuid
)
);
device
->
setRemovable
(
true
);
fsMock
->
addFile
(
RemovableDeviceMountpoint
+
"removablefile.mp3"
);
fsMock
->
addFile
(
RemovableDeviceMountpoint
+
"removablefile2.mp3"
);
Reload
();
...
...
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