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

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

Issue 947943002: Implement CopyFileFromLocal of MTPDeviceAsyncDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 callback.Run(std::string(), true); 59 callback.Run(std::string(), true);
60 } 60 }
61 61
62 void TestMediaTransferProtocolManagerLinux::GetFileInfo( 62 void TestMediaTransferProtocolManagerLinux::GetFileInfo(
63 const std::string& storage_handle, 63 const std::string& storage_handle,
64 uint32 file_id, 64 uint32 file_id,
65 const GetFileInfoCallback& callback) { 65 const GetFileInfoCallback& callback) {
66 callback.Run(MtpFileEntry(), true); 66 callback.Run(MtpFileEntry(), true);
67 } 67 }
68 68
69 void TestMediaTransferProtocolManagerLinux::CopyFileFromLocal(
70 const std::string& storage_handle,
71 const int source_file_descriptor,
72 const uint32 parent_id,
73 const std::string& file_name,
74 const CopyFileFromLocalCallback& callback) {
75 callback.Run(true /* error */);
76 }
77
69 } // namespace storage_monitor 78 } // namespace storage_monitor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698