Make sure webrtc::VideoSource is released when WebRtcVideoTrackAdapter is destroyed.
[chromium-blink-merge.git] / components / storage_monitor / test_media_transfer_protocol_manager_linux.cc
blob2763d30c8b6d129c531016e413ee9d21643cb024
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 #include "components/storage_monitor/test_media_transfer_protocol_manager_linux.h"
7 #include "device/media_transfer_protocol/mtp_file_entry.pb.h"
9 namespace storage_monitor {
11 TestMediaTransferProtocolManagerLinux::
12 TestMediaTransferProtocolManagerLinux() {}
14 TestMediaTransferProtocolManagerLinux::
15 ~TestMediaTransferProtocolManagerLinux() {}
17 void TestMediaTransferProtocolManagerLinux::AddObserver(Observer* observer) {}
19 void TestMediaTransferProtocolManagerLinux::RemoveObserver(
20 Observer* observer) {}
22 const std::vector<std::string>
23 TestMediaTransferProtocolManagerLinux::GetStorages() const {
24 return std::vector<std::string>();
26 const MtpStorageInfo* TestMediaTransferProtocolManagerLinux::GetStorageInfo(
27 const std::string& storage_name) const {
28 return NULL;
31 void TestMediaTransferProtocolManagerLinux::OpenStorage(
32 const std::string& storage_name,
33 const std::string& mode,
34 const OpenStorageCallback& callback) {
35 callback.Run("", true);
38 void TestMediaTransferProtocolManagerLinux::CloseStorage(
39 const std::string& storage_handle,
40 const CloseStorageCallback& callback) {
41 callback.Run(true);
44 void TestMediaTransferProtocolManagerLinux::ReadDirectoryByPath(
45 const std::string& storage_handle,
46 const std::string& path,
47 const ReadDirectoryCallback& callback) {
48 callback.Run(std::vector<MtpFileEntry>(), true);
51 void TestMediaTransferProtocolManagerLinux::ReadDirectoryById(
52 const std::string& storage_handle,
53 uint32 file_id,
54 const ReadDirectoryCallback& callback) {
55 callback.Run(std::vector<MtpFileEntry>(), true);
58 void TestMediaTransferProtocolManagerLinux::ReadFileChunkByPath(
59 const std::string& storage_handle,
60 const std::string& path,
61 uint32 offset,
62 uint32 count,
63 const ReadFileCallback& callback) {
64 callback.Run(std::string(), true);
67 void TestMediaTransferProtocolManagerLinux::ReadFileChunkById(
68 const std::string& storage_handle,
69 uint32 file_id,
70 uint32 offset,
71 uint32 count,
72 const ReadFileCallback& callback) {
73 callback.Run(std::string(), true);
76 void TestMediaTransferProtocolManagerLinux::GetFileInfoByPath(
77 const std::string& storage_handle,
78 const std::string& path,
79 const GetFileInfoCallback& callback) {
80 callback.Run(MtpFileEntry(), true);
83 void TestMediaTransferProtocolManagerLinux::GetFileInfoById(
84 const std::string& storage_handle,
85 uint32 file_id,
86 const GetFileInfoCallback& callback) {
87 callback.Run(MtpFileEntry(), true);
90 } // namespace storage_monitor