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 // This file contains a subclass of RemovableDeviceNotificationsWindowWin to | |
6 // simulate device changed events for testing. | |
7 | |
8 #ifndef CHROME_BROWSER_STORAGE_MONITOR_TEST_REMOVABLE_DEVICE_NOTIFICATIONS_WINDO
W_WIN_H_ | |
9 #define CHROME_BROWSER_STORAGE_MONITOR_TEST_REMOVABLE_DEVICE_NOTIFICATIONS_WINDO
W_WIN_H_ | |
10 | |
11 #include <windows.h> | |
12 | |
13 #include "base/memory/ref_counted.h" | |
14 #include "chrome/browser/storage_monitor/removable_device_notifications_window_w
in.h" | |
15 | |
16 namespace chrome { | |
17 namespace test { | |
18 | |
19 class TestPortableDeviceWatcherWin; | |
20 class TestVolumeMountWatcherWin; | |
21 | |
22 class TestRemovableDeviceNotificationsWindowWin | |
23 : public RemovableDeviceNotificationsWindowWin { | |
24 public: | |
25 TestRemovableDeviceNotificationsWindowWin( | |
26 TestVolumeMountWatcherWin* volume_mount_watcher, | |
27 TestPortableDeviceWatcherWin* portable_device_watcher); | |
28 | |
29 virtual ~TestRemovableDeviceNotificationsWindowWin(); | |
30 | |
31 void InjectDeviceChange(UINT event_type, DWORD data); | |
32 | |
33 VolumeMountWatcherWin* volume_mount_watcher(); | |
34 | |
35 private: | |
36 DISALLOW_COPY_AND_ASSIGN(TestRemovableDeviceNotificationsWindowWin); | |
37 }; | |
38 | |
39 } // namespace test | |
40 } // namespace chrome | |
41 | |
42 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_REMOVABLE_DEVICE_NOTIFICATIONS_WI
NDOW_WIN_H_ | |
OLD | NEW |