Files.app: Re-enable the cloud import status column.
[chromium-blink-merge.git] / components / storage_monitor / test_media_transfer_protocol_manager_linux.h
blobadd96df87a29c0e55e52ae56bd8da4f492e10418
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 OpenStorage(const std::string& storage_name,
27 const std::string& mode,
28 const OpenStorageCallback& callback) override;
29 void CloseStorage(const std::string& storage_handle,
30 const CloseStorageCallback& callback) override;
31 void ReadDirectory(const std::string& storage_handle,
32 const uint32 file_id,
33 const size_t max_size,
34 const ReadDirectoryCallback& callback) override;
35 void ReadFileChunk(const std::string& storage_handle,
36 uint32 file_id,
37 uint32 offset,
38 uint32 count,
39 const ReadFileCallback& callback) override;
40 void GetFileInfo(const std::string& storage_handle,
41 uint32 file_id,
42 const GetFileInfoCallback& callback) override;
43 void RenameObject(const std::string& storage_handle,
44 const uint32 object_id,
45 const std::string& new_name,
46 const RenameObjectCallback& callback) override;
47 void CopyFileFromLocal(const std::string& storage_handle,
48 const int source_file_descriptor,
49 const uint32 parent_id,
50 const std::string& file_name,
51 const CopyFileFromLocalCallback& callback) override;
52 void DeleteObject(const std::string& storage_handle,
53 const uint32 object_id,
54 const DeleteObjectCallback& callback) override;
56 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux);
59 } // namespace storage_monitor
61 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_