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.
5 // TestStorageMonitorWin implementation.
7 #include "chrome/browser/storage_monitor/test_storage_monitor_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"
12 TestStorageMonitorWin::TestStorageMonitorWin(
13 TestVolumeMountWatcherWin* volume_mount_watcher,
14 TestPortableDeviceWatcherWin* portable_device_watcher)
15 : StorageMonitorWin(volume_mount_watcher, portable_device_watcher) {
16 DCHECK(volume_mount_watcher_);
17 DCHECK(portable_device_watcher);
20 TestStorageMonitorWin::~TestStorageMonitorWin() {
23 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, DWORD data) {
24 OnDeviceChange(event_type, data);
27 VolumeMountWatcherWin*
28 TestStorageMonitorWin::volume_mount_watcher() {
29 return volume_mount_watcher_.get();
32 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const {
33 return StorageMonitor::receiver();