OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // TestRemovableDeviceNotificationsWindowWin implementation. | 5 // TestStorageMonitorWin implementation. |
6 | 6 |
7 #include "chrome/browser/storage_monitor/test_removable_device_notifications_win
dow_win.h" | 7 #include "chrome/browser/storage_monitor/test_storage_monitor_win.h" |
8 | 8 |
9 #include "chrome/browser/storage_monitor/test_portable_device_watcher_win.h" | 9 #include "chrome/browser/storage_monitor/test_portable_device_watcher_win.h" |
10 #include "chrome/browser/storage_monitor/test_volume_mount_watcher_win.h" | 10 #include "chrome/browser/storage_monitor/test_volume_mount_watcher_win.h" |
11 | 11 |
12 namespace chrome { | 12 namespace chrome { |
13 namespace test { | 13 namespace test { |
14 | 14 |
15 TestRemovableDeviceNotificationsWindowWin:: | 15 TestStorageMonitorWin::TestStorageMonitorWin( |
16 TestRemovableDeviceNotificationsWindowWin( | |
17 TestVolumeMountWatcherWin* volume_mount_watcher, | 16 TestVolumeMountWatcherWin* volume_mount_watcher, |
18 TestPortableDeviceWatcherWin* portable_device_watcher) | 17 TestPortableDeviceWatcherWin* portable_device_watcher) |
19 : RemovableDeviceNotificationsWindowWin(volume_mount_watcher, | 18 : StorageMonitorWin(volume_mount_watcher, portable_device_watcher) { |
20 portable_device_watcher) { | |
21 DCHECK(volume_mount_watcher_); | 19 DCHECK(volume_mount_watcher_); |
22 DCHECK(portable_device_watcher); | 20 DCHECK(portable_device_watcher); |
23 } | 21 } |
24 | 22 |
25 TestRemovableDeviceNotificationsWindowWin:: | 23 TestStorageMonitorWin::~TestStorageMonitorWin() { |
26 ~TestRemovableDeviceNotificationsWindowWin() { | |
27 } | 24 } |
28 | 25 |
29 void TestRemovableDeviceNotificationsWindowWin::InjectDeviceChange( | 26 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, DWORD data) { |
30 UINT event_type, | |
31 DWORD data) { | |
32 OnDeviceChange(event_type, data); | 27 OnDeviceChange(event_type, data); |
33 } | 28 } |
34 | 29 |
35 VolumeMountWatcherWin* | 30 VolumeMountWatcherWin* |
36 TestRemovableDeviceNotificationsWindowWin::volume_mount_watcher() { | 31 TestStorageMonitorWin::volume_mount_watcher() { |
37 return volume_mount_watcher_.get(); | 32 return volume_mount_watcher_.get(); |
38 } | 33 } |
39 | 34 |
40 } // namespace test | 35 } // namespace test |
41 } // namespace chrome | 36 } // namespace chrome |
OLD | NEW |