| 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..314d02da9043c07e992196a578fbf80513973ec6
|
| --- /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 {
|
| +
|
| +// 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_
|
|
|