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

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

Issue 982283002: Implement DeleteFile and DeleteDirectory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit_tests. 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 void TestMediaTransferProtocolManagerLinux::CopyFileFromLocal( 69 void TestMediaTransferProtocolManagerLinux::CopyFileFromLocal(
70 const std::string& storage_handle, 70 const std::string& storage_handle,
71 const int source_file_descriptor, 71 const int source_file_descriptor,
72 const uint32 parent_id, 72 const uint32 parent_id,
73 const std::string& file_name, 73 const std::string& file_name,
74 const CopyFileFromLocalCallback& callback) { 74 const CopyFileFromLocalCallback& callback) {
75 callback.Run(true /* error */); 75 callback.Run(true /* error */);
76 } 76 }
77 77
78 void TestMediaTransferProtocolManagerLinux::ReadDirectoryEntryIds(
79 const std::string& storage_handle,
80 const uint32 file_id,
81 const ReadDirectoryEntryIdsCallback& callback) {
82 callback.Run(std::vector<uint32>(), true /* error */);
83 }
84
85 void TestMediaTransferProtocolManagerLinux::DeleteObject(
86 const std::string& storage_handle,
87 const uint32 object_id,
88 const DeleteObjectCallback& callback) {
89 callback.Run(true /* error */);
90 }
91
78 } // namespace storage_monitor 92 } // namespace storage_monitor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698