Chromium Code Reviews| 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 { | |
|
vandebo (ex-Chrome)
2013/01/24 19:19:10
I don't often see the use of namespace test, are y
Greg Billock
2013/01/24 20:46:03
All the other test_* files in this package use thi
vandebo (ex-Chrome)
2013/01/24 23:39:01
grep "namespace t" `find chrome/browser -name "tes
Greg Billock
2013/01/25 20:01:21
http://code.google.com/p/chromium/source/search?q=
vandebo (ex-Chrome)
2013/01/26 01:00:21
It's fine, I was just trying to understand best pr
Greg Billock
2013/01/26 01:42:07
no worries. I'm not necessarily claiming it as bes
| |
| 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 }; | |
| 33 #endif | |
| 34 | |
| 35 } // namespace test | |
| 36 } // namespace chrome | |
| 37 | |
| 38 #endif // CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ | |
| OLD | NEW |