OLD | NEW |
---|---|
(Empty) | |
1 // 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
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 // | |
5 // This file contains a subclass of StorageMonitorWin to | |
6 // simulate device changed events for testing. | |
vandebo (ex-Chrome)
2013/03/02 00:23:37
re-line wrap
| |
7 | |
8 #ifndef CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ | |
9 #define CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ | |
10 | |
11 #include <windows.h> | |
12 | |
13 #include "base/memory/ref_counted.h" | |
14 #include "chrome/browser/storage_monitor/storage_monitor_win.h" | |
15 | |
16 namespace chrome { | |
17 namespace test { | |
18 | |
19 class TestPortableDeviceWatcherWin; | |
20 class TestVolumeMountWatcherWin; | |
21 | |
22 class TestStorageMonitorWin: public StorageMonitorWin { | |
23 public: | |
24 TestStorageMonitorWin( | |
25 TestVolumeMountWatcherWin* volume_mount_watcher, | |
26 TestPortableDeviceWatcherWin* portable_device_watcher); | |
27 | |
28 virtual ~TestStorageMonitorWin(); | |
29 | |
30 void InjectDeviceChange(UINT event_type, DWORD data); | |
31 | |
32 VolumeMountWatcherWin* volume_mount_watcher(); | |
33 | |
34 private: | |
35 DISALLOW_COPY_AND_ASSIGN(TestStorageMonitorWin); | |
36 }; | |
37 | |
38 } // namespace test | |
39 } // namespace chrome | |
40 | |
41 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ | |
OLD | NEW |