- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / storage_monitor / test_media_transfer_protocol_manager_linux.cc
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.
4
5 #include "chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.h"
6
7 #include "device/media_transfer_protocol/mtp_file_entry.pb.h"
8
9 TestMediaTransferProtocolManagerLinux::
10 TestMediaTransferProtocolManagerLinux() {}
11
12 TestMediaTransferProtocolManagerLinux::
13 ~TestMediaTransferProtocolManagerLinux() {}
14
15 void TestMediaTransferProtocolManagerLinux::AddObserver(Observer* observer) {}
16
17 void TestMediaTransferProtocolManagerLinux::RemoveObserver(
18     Observer* observer) {}
19
20 const std::vector<std::string>
21 TestMediaTransferProtocolManagerLinux::GetStorages() const {
22     return std::vector<std::string>();
23 }
24 const MtpStorageInfo* TestMediaTransferProtocolManagerLinux::GetStorageInfo(
25     const std::string& storage_name) const {
26   return NULL;
27 }
28
29 void TestMediaTransferProtocolManagerLinux::OpenStorage(
30     const std::string& storage_name,
31     const std::string& mode,
32     const OpenStorageCallback& callback) {
33   callback.Run("", true);
34 }
35
36 void TestMediaTransferProtocolManagerLinux::CloseStorage(
37     const std::string& storage_handle,
38     const CloseStorageCallback& callback) {
39   callback.Run(true);
40 }
41
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);
47 }
48
49 void TestMediaTransferProtocolManagerLinux::ReadDirectoryById(
50     const std::string& storage_handle,
51     uint32 file_id,
52     const ReadDirectoryCallback& callback) {
53   callback.Run(std::vector<MtpFileEntry>(), true);
54 }
55
56 void TestMediaTransferProtocolManagerLinux::ReadFileChunkByPath(
57     const std::string& storage_handle,
58     const std::string& path,
59     uint32 offset,
60     uint32 count,
61     const ReadFileCallback& callback) {
62   callback.Run(std::string(), true);
63 }
64
65 void TestMediaTransferProtocolManagerLinux::ReadFileChunkById(
66     const std::string& storage_handle,
67     uint32 file_id,
68     uint32 offset,
69     uint32 count,
70     const ReadFileCallback& callback) {
71   callback.Run(std::string(), true);
72 }
73
74 void TestMediaTransferProtocolManagerLinux::GetFileInfoByPath(
75     const std::string& storage_handle,
76     const std::string& path,
77     const GetFileInfoCallback& callback) {
78   callback.Run(MtpFileEntry(), true);
79 }
80
81 void TestMediaTransferProtocolManagerLinux::GetFileInfoById(
82     const std::string& storage_handle,
83     uint32 file_id,
84     const GetFileInfoCallback& callback) {
85   callback.Run(MtpFileEntry(), true);
86 }