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

Unified Diff: chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.cc

Issue 14016002: Storage Monitor: Make StorageMonitorLinux own the MediaTransferProtocolManager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browser_tests Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.cc
===================================================================
--- chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.cc (revision 0)
+++ chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.cc (revision 0)
@@ -0,0 +1,90 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.h"
+
+#include "device/media_transfer_protocol/mtp_file_entry.pb.h"
+
+namespace chrome {
+
+TestMediaTransferProtocolManagerLinux::
+TestMediaTransferProtocolManagerLinux() {}
+
+TestMediaTransferProtocolManagerLinux::
+~TestMediaTransferProtocolManagerLinux() {}
+
+void TestMediaTransferProtocolManagerLinux::AddObserver(Observer* observer) {}
+
+void TestMediaTransferProtocolManagerLinux::RemoveObserver(
+ Observer* observer) {}
+
+const std::vector<std::string>
+TestMediaTransferProtocolManagerLinux::GetStorages() const {
+ return std::vector<std::string>();
+}
+const MtpStorageInfo* TestMediaTransferProtocolManagerLinux::GetStorageInfo(
+ const std::string& storage_name) const {
+ return NULL;
+}
+
+void TestMediaTransferProtocolManagerLinux::OpenStorage(
+ const std::string& storage_name,
+ const std::string& mode,
+ const OpenStorageCallback& callback) {
+ callback.Run("", true);
+}
+
+void TestMediaTransferProtocolManagerLinux::CloseStorage(
+ const std::string& storage_handle,
+ const CloseStorageCallback& callback) {
+ callback.Run(true);
+}
+
+void TestMediaTransferProtocolManagerLinux::ReadDirectoryByPath(
+ const std::string& storage_handle,
+ const std::string& path,
+ const ReadDirectoryCallback& callback) {
+ callback.Run(std::vector<MtpFileEntry>(), true);
+}
+
+void TestMediaTransferProtocolManagerLinux::ReadDirectoryById(
+ const std::string& storage_handle,
+ uint32 file_id,
+ const ReadDirectoryCallback& callback) {
+ callback.Run(std::vector<MtpFileEntry>(), true);
+}
+
+void TestMediaTransferProtocolManagerLinux::ReadFileChunkByPath(
+ const std::string& storage_handle,
+ const std::string& path,
+ uint32 offset,
+ uint32 count,
+ const ReadFileCallback& callback) {
+ callback.Run(std::string(), true);
+}
+
+void TestMediaTransferProtocolManagerLinux::ReadFileChunkById(
+ const std::string& storage_handle,
+ uint32 file_id,
+ uint32 offset,
+ uint32 count,
+ const ReadFileCallback& callback) {
+ callback.Run(std::string(), true);
+}
+
+void TestMediaTransferProtocolManagerLinux::GetFileInfoByPath(
+ const std::string& storage_handle,
+ const std::string& path,
+ const GetFileInfoCallback& callback) {
+ callback.Run(MtpFileEntry(), true);
+}
+
+void TestMediaTransferProtocolManagerLinux::GetFileInfoById(
+ const std::string& storage_handle,
+ uint32 file_id,
+ const GetFileInfoCallback& callback) {
+ callback.Run(MtpFileEntry(), true);
+}
+
+} // namespace chrome
Property changes on: chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698