Home | History | Annotate | Download | only in storage_monitor
      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.
      6 
      7 #include "components/storage_monitor/test_storage_monitor_win.h"
      8 
      9 #include "components/storage_monitor/test_portable_device_watcher_win.h"
     10 #include "components/storage_monitor/test_volume_mount_watcher_win.h"
     11 
     12 namespace storage_monitor {
     13 
     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);
     20 }
     21 
     22 TestStorageMonitorWin::~TestStorageMonitorWin() {
     23 }
     24 
     25 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, DWORD data) {
     26   OnDeviceChange(event_type, data);
     27 }
     28 
     29 VolumeMountWatcherWin*
     30 TestStorageMonitorWin::volume_mount_watcher() {
     31   return volume_mount_watcher_.get();
     32 }
     33 
     34 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const {
     35   return StorageMonitor::receiver();
     36 }
     37 
     38 }  // namespace storage_monitor
     39