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

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

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.h
===================================================================
--- chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.h (revision 0)
+++ chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.h (revision 0)
@@ -0,0 +1,61 @@
+// 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.
+
+#ifndef CHROME_BROWSER_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
+#define CHROME_BROWSER_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
+
+#include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
+
+namespace chrome {
+
+// A dummy MediaTransferProtocolManager implementation.
+class TestMediaTransferProtocolManagerLinux
+ : public device::MediaTransferProtocolManager {
+ public:
+ TestMediaTransferProtocolManagerLinux();
+ virtual ~TestMediaTransferProtocolManagerLinux();
+
+ private:
+ // device::MediaTransferProtocolManager implementation.
+ virtual void AddObserver(Observer* observer) OVERRIDE;
+ virtual void RemoveObserver(Observer* observer) OVERRIDE;
+ virtual const std::vector<std::string> GetStorages() const OVERRIDE;
+ virtual const MtpStorageInfo* GetStorageInfo(
+ const std::string& storage_name) const OVERRIDE;
+ virtual void OpenStorage(const std::string& storage_name,
+ const std::string& mode,
+ const OpenStorageCallback& callback) OVERRIDE;
+ virtual void CloseStorage(const std::string& storage_handle,
+ const CloseStorageCallback& callback) OVERRIDE;
+ virtual void ReadDirectoryByPath(
+ const std::string& storage_handle,
+ const std::string& path,
+ const ReadDirectoryCallback& callback) OVERRIDE;
+ virtual void ReadDirectoryById(
+ const std::string& storage_handle,
+ uint32 file_id,
+ const ReadDirectoryCallback& callback) OVERRIDE;
+ virtual void ReadFileChunkByPath(const std::string& storage_handle,
+ const std::string& path,
+ uint32 offset,
+ uint32 count,
+ const ReadFileCallback& callback) OVERRIDE;
+ virtual void ReadFileChunkById(const std::string& storage_handle,
+ uint32 file_id,
+ uint32 offset,
+ uint32 count,
+ const ReadFileCallback& callback) OVERRIDE;
+ virtual void GetFileInfoByPath(const std::string& storage_handle,
+ const std::string& path,
+ const GetFileInfoCallback& callback) OVERRIDE;
+ virtual void GetFileInfoById(const std::string& storage_handle,
+ uint32 file_id,
+ const GetFileInfoCallback& callback) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux);
+};
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
Property changes on: chrome/browser/storage_monitor/test_media_transfer_protocol_manager_linux.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698