1 // Copyright (c) 2013 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 #include "chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.h"
7 #include "device/media_transfer_protocol/mtp_file_entry.pb.h"
9 TestMediaTransferProtocolManagerLinux::
10 TestMediaTransferProtocolManagerLinux() {}
12 TestMediaTransferProtocolManagerLinux::
13 ~TestMediaTransferProtocolManagerLinux() {}
15 void TestMediaTransferProtocolManagerLinux::AddObserver(Observer* observer) {}
17 void TestMediaTransferProtocolManagerLinux::RemoveObserver(
18 Observer* observer) {}
20 const std::vector<std::string>
21 TestMediaTransferProtocolManagerLinux::GetStorages() const {
22 return std::vector<std::string>();
24 const MtpStorageInfo* TestMediaTransferProtocolManagerLinux::GetStorageInfo(
25 const std::string& storage_name) const {
29 void TestMediaTransferProtocolManagerLinux::OpenStorage(
30 const std::string& storage_name,
31 const std::string& mode,
32 const OpenStorageCallback& callback) {
33 callback.Run("", true);
36 void TestMediaTransferProtocolManagerLinux::CloseStorage(
37 const std::string& storage_handle,
38 const CloseStorageCallback& callback) {
42 void TestMediaTransferProtocolManagerLinux::ReadDirectoryByPath(
43 const std::string& storage_handle,
44 const std::string& path,
45 const ReadDirectoryCallback& callback) {
46 callback.Run(std::vector<MtpFileEntry>(), true);
49 void TestMediaTransferProtocolManagerLinux::ReadDirectoryById(
50 const std::string& storage_handle,
52 const ReadDirectoryCallback& callback) {
53 callback.Run(std::vector<MtpFileEntry>(), true);
56 void TestMediaTransferProtocolManagerLinux::ReadFileChunkByPath(
57 const std::string& storage_handle,
58 const std::string& path,
61 const ReadFileCallback& callback) {
62 callback.Run(std::string(), true);
65 void TestMediaTransferProtocolManagerLinux::ReadFileChunkById(
66 const std::string& storage_handle,
70 const ReadFileCallback& callback) {
71 callback.Run(std::string(), true);
74 void TestMediaTransferProtocolManagerLinux::GetFileInfoByPath(
75 const std::string& storage_handle,
76 const std::string& path,
77 const GetFileInfoCallback& callback) {
78 callback.Run(MtpFileEntry(), true);
81 void TestMediaTransferProtocolManagerLinux::GetFileInfoById(
82 const std::string& storage_handle,
84 const GetFileInfoCallback& callback) {
85 callback.Run(MtpFileEntry(), true);