1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
6 #define COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
8 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
10 namespace storage_monitor
{
12 // A dummy MediaTransferProtocolManager implementation.
13 class TestMediaTransferProtocolManagerLinux
14 : public device::MediaTransferProtocolManager
{
16 TestMediaTransferProtocolManagerLinux();
17 virtual ~TestMediaTransferProtocolManagerLinux();
20 // device::MediaTransferProtocolManager implementation.
21 virtual void AddObserver(Observer
* observer
) OVERRIDE
;
22 virtual void RemoveObserver(Observer
* observer
) OVERRIDE
;
23 virtual const std::vector
<std::string
> GetStorages() const OVERRIDE
;
24 virtual const MtpStorageInfo
* GetStorageInfo(
25 const std::string
& storage_name
) const OVERRIDE
;
26 virtual void OpenStorage(const std::string
& storage_name
,
27 const std::string
& mode
,
28 const OpenStorageCallback
& callback
) OVERRIDE
;
29 virtual void CloseStorage(const std::string
& storage_handle
,
30 const CloseStorageCallback
& callback
) OVERRIDE
;
31 virtual void ReadDirectory(const std::string
& storage_handle
,
33 const ReadDirectoryCallback
& callback
) OVERRIDE
;
34 virtual void ReadFileChunk(const std::string
& storage_handle
,
38 const ReadFileCallback
& callback
) OVERRIDE
;
39 virtual void GetFileInfo(const std::string
& storage_handle
,
41 const GetFileInfoCallback
& callback
) OVERRIDE
;
43 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux
);
46 } // namespace storage_monitor
48 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_