Chromium Code Reviews| Index: chrome/browser/storage_monitor/test_storage_monitor_win.h |
| diff --git a/chrome/browser/storage_monitor/test_storage_monitor_win.h b/chrome/browser/storage_monitor/test_storage_monitor_win.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7945e75164f9cc531eee934d4bc9b042e5119d0c |
| --- /dev/null |
| +++ b/chrome/browser/storage_monitor/test_storage_monitor_win.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
|
vandebo (ex-Chrome)
2013/03/02 00:23:37
This file is no longer detected as copied. Use th
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| +// |
| +// This file contains a subclass of StorageMonitorWin to |
| +// simulate device changed events for testing. |
|
vandebo (ex-Chrome)
2013/03/02 00:23:37
re-line wrap
|
| + |
| +#ifndef CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ |
| +#define CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ |
| + |
| +#include <windows.h> |
| + |
| +#include "base/memory/ref_counted.h" |
| +#include "chrome/browser/storage_monitor/storage_monitor_win.h" |
| + |
| +namespace chrome { |
| +namespace test { |
| + |
| +class TestPortableDeviceWatcherWin; |
| +class TestVolumeMountWatcherWin; |
| + |
| +class TestStorageMonitorWin: public StorageMonitorWin { |
| + public: |
| + TestStorageMonitorWin( |
| + TestVolumeMountWatcherWin* volume_mount_watcher, |
| + TestPortableDeviceWatcherWin* portable_device_watcher); |
| + |
| + virtual ~TestStorageMonitorWin(); |
| + |
| + void InjectDeviceChange(UINT event_type, DWORD data); |
| + |
| + VolumeMountWatcherWin* volume_mount_watcher(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(TestStorageMonitorWin); |
| +}; |
| + |
| +} // namespace test |
| +} // namespace chrome |
| + |
| +#endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ |