| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ |
| 6 #define CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ |
| 7 |
| 8 #include "chrome/browser/system_monitor/removable_storage_notifications.h" |
| 9 |
| 10 namespace chrome { |
| 11 namespace test { |
| 12 |
| 13 // Needed to set up the RemovableStorageNotifications singleton (done in |
| 14 // the base class). |
| 15 class TestRemovableStorageNotifications |
| 16 : public chrome::RemovableStorageNotifications { |
| 17 public: |
| 18 TestRemovableStorageNotifications(); |
| 19 virtual ~TestRemovableStorageNotifications(); |
| 20 |
| 21 virtual bool GetDeviceInfoForPath( |
| 22 const FilePath& path, |
| 23 StorageInfo* device_info) const OVERRIDE; |
| 24 |
| 25 virtual uint64 GetStorageSize(const std::string& location) const OVERRIDE; |
| 26 |
| 27 #if defined(OS_WIN) |
| 28 virtual bool GetMTPStorageInfoFromDeviceId( |
| 29 const std::string& storage_device_id, |
| 30 string16* device_location, |
| 31 string16* storage_object_id) const OVERRIDE; |
| 32 #endif |
| 33 }; |
| 34 |
| 35 } // namespace test |
| 36 } // namespace chrome |
| 37 |
| 38 #endif // CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ |
| OLD | NEW |