Removing WTL from content runner.
[chromium-blink-merge.git] / components / storage_monitor / test_storage_monitor_win.cc
blob63dec3d82f8e25eb74d60d7e6db5d2a5bfc2a923
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
3 // found in the LICENSE file.
4 //
5 // TestStorageMonitorWin implementation.
7 #include "components/storage_monitor/test_storage_monitor_win.h"
9 #include "components/storage_monitor/test_portable_device_watcher_win.h"
10 #include "components/storage_monitor/test_volume_mount_watcher_win.h"
12 namespace storage_monitor {
14 TestStorageMonitorWin::TestStorageMonitorWin(
15 TestVolumeMountWatcherWin* volume_mount_watcher,
16 TestPortableDeviceWatcherWin* portable_device_watcher)
17 : StorageMonitorWin(volume_mount_watcher, portable_device_watcher) {
18 DCHECK(volume_mount_watcher_);
19 DCHECK(portable_device_watcher);
22 TestStorageMonitorWin::~TestStorageMonitorWin() {
25 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, DWORD data) {
26 OnDeviceChange(event_type, data);
29 VolumeMountWatcherWin*
30 TestStorageMonitorWin::volume_mount_watcher() {
31 return volume_mount_watcher_.get();
34 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const {
35 return StorageMonitor::receiver();
38 } // namespace storage_monitor