OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // TestStorageMonitorWin implementation. | 5 // TestStorageMonitorWin implementation. |
6 | 6 |
7 #include "components/storage_monitor/test_storage_monitor_win.h" | 7 #include "components/storage_monitor/test_storage_monitor_win.h" |
8 | 8 |
9 #include "components/storage_monitor/test_portable_device_watcher_win.h" | 9 #include "components/storage_monitor/test_portable_device_watcher_win.h" |
10 #include "components/storage_monitor/test_volume_mount_watcher_win.h" | 10 #include "components/storage_monitor/test_volume_mount_watcher_win.h" |
11 | 11 |
12 namespace storage_monitor { | 12 namespace storage_monitor { |
13 | 13 |
14 TestStorageMonitorWin::TestStorageMonitorWin( | 14 TestStorageMonitorWin::TestStorageMonitorWin( |
15 TestVolumeMountWatcherWin* volume_mount_watcher, | 15 TestVolumeMountWatcherWin* volume_mount_watcher, |
16 TestPortableDeviceWatcherWin* portable_device_watcher) | 16 TestPortableDeviceWatcherWin* portable_device_watcher) |
17 : StorageMonitorWin(volume_mount_watcher, portable_device_watcher) { | 17 : StorageMonitorWin(volume_mount_watcher, portable_device_watcher) { |
18 DCHECK(volume_mount_watcher_); | 18 DCHECK(volume_mount_watcher_); |
19 DCHECK(portable_device_watcher); | 19 DCHECK(portable_device_watcher); |
20 } | 20 } |
21 | 21 |
22 TestStorageMonitorWin::~TestStorageMonitorWin() { | 22 TestStorageMonitorWin::~TestStorageMonitorWin() { |
23 } | 23 } |
24 | 24 |
25 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, DWORD data) { | 25 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, LPARAM data) { |
26 OnDeviceChange(event_type, data); | 26 OnDeviceChange(event_type, data); |
27 } | 27 } |
28 | 28 |
29 VolumeMountWatcherWin* | 29 VolumeMountWatcherWin* |
30 TestStorageMonitorWin::volume_mount_watcher() { | 30 TestStorageMonitorWin::volume_mount_watcher() { |
31 return volume_mount_watcher_.get(); | 31 return volume_mount_watcher_.get(); |
32 } | 32 } |
33 | 33 |
34 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const { | 34 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const { |
35 return StorageMonitor::receiver(); | 35 return StorageMonitor::receiver(); |
36 } | 36 } |
37 | 37 |
38 } // namespace storage_monitor | 38 } // namespace storage_monitor |
OLD | NEW |