Chromium Code Reviews| 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 // TestStorageMonitorWindowWin 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 TestStorageMonitorWindowWin:: |
| 16 TestRemovableDeviceNotificationsWindowWin( | 16 TestStorageMonitorWindowWin( |
|
vandebo (ex-Chrome)
2013/03/01 19:47:39
nit: line wrap.
| |
| 17 TestVolumeMountWatcherWin* volume_mount_watcher, | 17 TestVolumeMountWatcherWin* volume_mount_watcher, |
| 18 TestPortableDeviceWatcherWin* portable_device_watcher) | 18 TestPortableDeviceWatcherWin* portable_device_watcher) |
| 19 : RemovableDeviceNotificationsWindowWin(volume_mount_watcher, | 19 : StorageMonitorWin(volume_mount_watcher, |
| 20 portable_device_watcher) { | 20 portable_device_watcher) { |
| 21 DCHECK(volume_mount_watcher_); | 21 DCHECK(volume_mount_watcher_); |
| 22 DCHECK(portable_device_watcher); | 22 DCHECK(portable_device_watcher); |
| 23 } | 23 } |
| 24 | 24 |
| 25 TestRemovableDeviceNotificationsWindowWin:: | 25 TestStorageMonitorWindowWin:: |
| 26 ~TestRemovableDeviceNotificationsWindowWin() { | 26 ~TestStorageMonitorWindowWin() { |
|
vandebo (ex-Chrome)
2013/03/01 19:47:39
nit: line wrap.
| |
| 27 } | 27 } |
| 28 | 28 |
| 29 void TestRemovableDeviceNotificationsWindowWin::InjectDeviceChange( | 29 void TestStorageMonitorWindowWin::InjectDeviceChange( |
| 30 UINT event_type, | 30 UINT event_type, |
| 31 DWORD data) { | 31 DWORD data) { |
| 32 OnDeviceChange(event_type, data); | 32 OnDeviceChange(event_type, data); |
| 33 } | 33 } |
| 34 | 34 |
| 35 VolumeMountWatcherWin* | 35 VolumeMountWatcherWin* |
| 36 TestRemovableDeviceNotificationsWindowWin::volume_mount_watcher() { | 36 TestStorageMonitorWindowWin::volume_mount_watcher() { |
| 37 return volume_mount_watcher_.get(); | 37 return volume_mount_watcher_.get(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace test | 40 } // namespace test |
| 41 } // namespace chrome | 41 } // namespace chrome |
| OLD | NEW |