Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / components / storage_monitor / test_media_transfer_protocol_manager_linux.h
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.
4
5 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
6 #define COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
7
8 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
9
10 // A dummy MediaTransferProtocolManager implementation.
11 class TestMediaTransferProtocolManagerLinux
12     : public device::MediaTransferProtocolManager {
13  public:
14   TestMediaTransferProtocolManagerLinux();
15   virtual ~TestMediaTransferProtocolManagerLinux();
16
17  private:
18   // device::MediaTransferProtocolManager implementation.
19   virtual void AddObserver(Observer* observer) OVERRIDE;
20   virtual void RemoveObserver(Observer* observer) OVERRIDE;
21   virtual const std::vector<std::string> GetStorages() const OVERRIDE;
22   virtual const MtpStorageInfo* GetStorageInfo(
23       const std::string& storage_name) const OVERRIDE;
24   virtual void OpenStorage(const std::string& storage_name,
25                            const std::string& mode,
26                            const OpenStorageCallback& callback) OVERRIDE;
27   virtual void CloseStorage(const std::string& storage_handle,
28                             const CloseStorageCallback& callback) OVERRIDE;
29   virtual void ReadDirectoryByPath(
30       const std::string& storage_handle,
31       const std::string& path,
32       const ReadDirectoryCallback& callback) OVERRIDE;
33   virtual void ReadDirectoryById(
34       const std::string& storage_handle,
35       uint32 file_id,
36       const ReadDirectoryCallback& callback) OVERRIDE;
37   virtual void ReadFileChunkByPath(const std::string& storage_handle,
38                                    const std::string& path,
39                                    uint32 offset,
40                                    uint32 count,
41                                    const ReadFileCallback& callback) OVERRIDE;
42   virtual void ReadFileChunkById(const std::string& storage_handle,
43                                  uint32 file_id,
44                                  uint32 offset,
45                                  uint32 count,
46                                  const ReadFileCallback& callback) OVERRIDE;
47   virtual void GetFileInfoByPath(const std::string& storage_handle,
48                                  const std::string& path,
49                                  const GetFileInfoCallback& callback) OVERRIDE;
50   virtual void GetFileInfoById(const std::string& storage_handle,
51                                uint32 file_id,
52                                const GetFileInfoCallback& callback) OVERRIDE;
53
54   DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux);
55 };
56
57 #endif  // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_