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 // TestRemovableDeviceNotificationsWindowWin implementation. | |
6 | |
7 #include "chrome/browser/storage_monitor/test_removable_device_notifications_win
dow_win.h" | |
8 | |
9 #include "chrome/browser/storage_monitor/test_portable_device_watcher_win.h" | |
10 #include "chrome/browser/storage_monitor/test_volume_mount_watcher_win.h" | |
11 | |
12 namespace chrome { | |
13 namespace test { | |
14 | |
15 TestRemovableDeviceNotificationsWindowWin:: | |
16 TestRemovableDeviceNotificationsWindowWin( | |
17 TestVolumeMountWatcherWin* volume_mount_watcher, | |
18 TestPortableDeviceWatcherWin* portable_device_watcher) | |
19 : RemovableDeviceNotificationsWindowWin(volume_mount_watcher, | |
20 portable_device_watcher) { | |
21 DCHECK(volume_mount_watcher_); | |
22 DCHECK(portable_device_watcher); | |
23 } | |
24 | |
25 TestRemovableDeviceNotificationsWindowWin:: | |
26 ~TestRemovableDeviceNotificationsWindowWin() { | |
27 } | |
28 | |
29 void TestRemovableDeviceNotificationsWindowWin::InjectDeviceChange( | |
30 UINT event_type, | |
31 DWORD data) { | |
32 OnDeviceChange(event_type, data); | |
33 } | |
34 | |
35 VolumeMountWatcherWin* | |
36 TestRemovableDeviceNotificationsWindowWin::volume_mount_watcher() { | |
37 return volume_mount_watcher_.get(); | |
38 } | |
39 | |
40 } // namespace test | |
41 } // namespace chrome | |
OLD | NEW |