Chromium Code Reviews| Index: chrome/browser/system_monitor/test_removable_storage_notifications.h |
| diff --git a/chrome/browser/system_monitor/test_removable_storage_notifications.h b/chrome/browser/system_monitor/test_removable_storage_notifications.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bb8c0b8ef985c4b45b0c5e28a169d62e1153fb07 |
| --- /dev/null |
| +++ b/chrome/browser/system_monitor/test_removable_storage_notifications.h |
| @@ -0,0 +1,38 @@ |
| +// 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_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ |
| +#define CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ |
| + |
| +#include "chrome/browser/system_monitor/removable_storage_notifications.h" |
| + |
| +namespace chrome { |
| +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
|
| + |
| +// Needed to set up the RemovableStorageNotifications singleton (done in |
| +// the base class). |
| +class TestRemovableStorageNotifications |
| + : public chrome::RemovableStorageNotifications { |
| + public: |
| + TestRemovableStorageNotifications(); |
| + virtual ~TestRemovableStorageNotifications(); |
| + |
| + virtual bool GetDeviceInfoForPath( |
| + const FilePath& path, |
| + StorageInfo* device_info) const OVERRIDE; |
| + |
| + virtual uint64 GetStorageSize(const std::string& location) const OVERRIDE; |
| + |
| +#if defined(OS_WIN) |
| + virtual bool GetMTPStorageInfoFromDeviceId( |
| + const std::string& storage_device_id, |
| + string16* device_location, |
| + string16* storage_object_id) const OVERRIDE; |
| +}; |
| +#endif |
| + |
| +} // namespace test |
| +} // namespace chrome |
| + |
| +#endif // CHROME_BROWSER_SYSTEM_MONITOR_TEST_REMOVABLE_STORAGE_NOTIFICATIONS_H_ |