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

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

Issue 1007173003: Implement MoveFileLocal (with rename operation). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 callback.Run(std::string(), true); 60 callback.Run(std::string(), true);
61 } 61 }
62 62
63 void TestMediaTransferProtocolManagerLinux::GetFileInfo( 63 void TestMediaTransferProtocolManagerLinux::GetFileInfo(
64 const std::string& storage_handle, 64 const std::string& storage_handle,
65 uint32 file_id, 65 uint32 file_id,
66 const GetFileInfoCallback& callback) { 66 const GetFileInfoCallback& callback) {
67 callback.Run(MtpFileEntry(), true); 67 callback.Run(MtpFileEntry(), true);
68 } 68 }
69 69
70 void TestMediaTransferProtocolManagerLinux::RenameObject(
71 const std::string& storage_handle,
72 const uint32 object_id,
73 const std::string& new_name,
74 const RenameObjectCallback& callback) {
75 callback.Run(true /* error */);
76 }
77
70 void TestMediaTransferProtocolManagerLinux::CopyFileFromLocal( 78 void TestMediaTransferProtocolManagerLinux::CopyFileFromLocal(
71 const std::string& storage_handle, 79 const std::string& storage_handle,
72 const int source_file_descriptor, 80 const int source_file_descriptor,
73 const uint32 parent_id, 81 const uint32 parent_id,
74 const std::string& file_name, 82 const std::string& file_name,
75 const CopyFileFromLocalCallback& callback) { 83 const CopyFileFromLocalCallback& callback) {
76 callback.Run(true /* error */); 84 callback.Run(true /* error */);
77 } 85 }
78 86
79 void TestMediaTransferProtocolManagerLinux::DeleteObject( 87 void TestMediaTransferProtocolManagerLinux::DeleteObject(
80 const std::string& storage_handle, 88 const std::string& storage_handle,
81 const uint32 object_id, 89 const uint32 object_id,
82 const DeleteObjectCallback& callback) { 90 const DeleteObjectCallback& callback) {
83 callback.Run(true /* error */); 91 callback.Run(true /* error */);
84 } 92 }
85 93
86 } // namespace storage_monitor 94 } // namespace storage_monitor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698