Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: components/storage_monitor/test_media_transfer_protocol_manager_linux.cc

Issue 378263002: Devices: Remove MTP functions that use file paths. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/storage_monitor/test_media_transfer_protocol_manager_linux. h" 5 #include "components/storage_monitor/test_media_transfer_protocol_manager_linux. h"
6 6
7 #include "device/media_transfer_protocol/mtp_file_entry.pb.h" 7 #include "device/media_transfer_protocol/mtp_file_entry.pb.h"
8 8
9 namespace storage_monitor { 9 namespace storage_monitor {
10 10
(...skipping 23 matching lines...) Expand all
34 const OpenStorageCallback& callback) { 34 const OpenStorageCallback& callback) {
35 callback.Run("", true); 35 callback.Run("", true);
36 } 36 }
37 37
38 void TestMediaTransferProtocolManagerLinux::CloseStorage( 38 void TestMediaTransferProtocolManagerLinux::CloseStorage(
39 const std::string& storage_handle, 39 const std::string& storage_handle,
40 const CloseStorageCallback& callback) { 40 const CloseStorageCallback& callback) {
41 callback.Run(true); 41 callback.Run(true);
42 } 42 }
43 43
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);
49 }
50
51 void TestMediaTransferProtocolManagerLinux::ReadDirectoryById( 44 void TestMediaTransferProtocolManagerLinux::ReadDirectoryById(
52 const std::string& storage_handle, 45 const std::string& storage_handle,
53 uint32 file_id, 46 uint32 file_id,
54 const ReadDirectoryCallback& callback) { 47 const ReadDirectoryCallback& callback) {
55 callback.Run(std::vector<MtpFileEntry>(), true); 48 callback.Run(std::vector<MtpFileEntry>(), true);
56 } 49 }
57 50
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);
65 }
66
67 void TestMediaTransferProtocolManagerLinux::ReadFileChunkById( 51 void TestMediaTransferProtocolManagerLinux::ReadFileChunkById(
68 const std::string& storage_handle, 52 const std::string& storage_handle,
69 uint32 file_id, 53 uint32 file_id,
70 uint32 offset, 54 uint32 offset,
71 uint32 count, 55 uint32 count,
72 const ReadFileCallback& callback) { 56 const ReadFileCallback& callback) {
73 callback.Run(std::string(), true); 57 callback.Run(std::string(), true);
74 } 58 }
75 59
76 void TestMediaTransferProtocolManagerLinux::GetFileInfoByPath(
77 const std::string& storage_handle,
78 const std::string& path,
79 const GetFileInfoCallback& callback) {
80 callback.Run(MtpFileEntry(), true);
81 }
82
83 void TestMediaTransferProtocolManagerLinux::GetFileInfoById( 60 void TestMediaTransferProtocolManagerLinux::GetFileInfoById(
84 const std::string& storage_handle, 61 const std::string& storage_handle,
85 uint32 file_id, 62 uint32 file_id,
86 const GetFileInfoCallback& callback) { 63 const GetFileInfoCallback& callback) {
87 callback.Run(MtpFileEntry(), true); 64 callback.Run(MtpFileEntry(), true);
88 } 65 }
89 66
90 } // namespace storage_monitor 67 } // namespace storage_monitor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698