Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / storage_monitor / test_media_transfer_protocol_manager_linux.h
blob0a2bb4f8d216485e285a83c32b4bcb4296e712aa
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 {
15 public:
16 TestMediaTransferProtocolManagerLinux();
17 ~TestMediaTransferProtocolManagerLinux() override;
19 private:
20 // device::MediaTransferProtocolManager implementation.
21 void AddObserver(Observer* observer) override;
22 void RemoveObserver(Observer* observer) override;
23 const std::vector<std::string> GetStorages() const override;
24 const MtpStorageInfo* GetStorageInfo(
25 const std::string& storage_name) const override;
26 void GetStorageInfoFromDevice(
27 const std::string& storage_name,
28 const GetStorageInfoFromDeviceCallback& callback) override;
29 void OpenStorage(const std::string& storage_name,
30 const std::string& mode,
31 const OpenStorageCallback& callback) override;
32 void CloseStorage(const std::string& storage_handle,
33 const CloseStorageCallback& callback) override;
34 void CreateDirectory(const std::string& storage_handle,
35 const uint32 parent_id,
36 const std::string& directory_name,
37 const CreateDirectoryCallback& callback) override;
38 void ReadDirectory(const std::string& storage_handle,
39 const uint32 file_id,
40 const size_t max_size,
41 const ReadDirectoryCallback& callback) override;
42 void ReadFileChunk(const std::string& storage_handle,
43 uint32 file_id,
44 uint32 offset,
45 uint32 count,
46 const ReadFileCallback& callback) override;
47 void GetFileInfo(const std::string& storage_handle,
48 uint32 file_id,
49 const GetFileInfoCallback& callback) override;
50 void RenameObject(const std::string& storage_handle,
51 const uint32 object_id,
52 const std::string& new_name,
53 const RenameObjectCallback& callback) override;
54 void CopyFileFromLocal(const std::string& storage_handle,
55 const int source_file_descriptor,
56 const uint32 parent_id,
57 const std::string& file_name,
58 const CopyFileFromLocalCallback& callback) override;
59 void DeleteObject(const std::string& storage_handle,
60 const uint32 object_id,
61 const DeleteObjectCallback& callback) override;
63 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux);
66 } // namespace storage_monitor
68 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_