Home | History | Annotate | Download | only in storage_monitor
      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.
      4 //
      5 // TestStorageMonitorWin implementation.
      6 
      7 #include "chrome/browser/storage_monitor/test_storage_monitor_win.h"
      8 
      9 #include "chrome/browser/storage_monitor/test_portable_device_watcher_win.h"
     10 #include "chrome/browser/storage_monitor/test_volume_mount_watcher_win.h"
     11 
     12 namespace chrome {
     13 namespace test {
     14 
     15 TestStorageMonitorWin::TestStorageMonitorWin(
     16     TestVolumeMountWatcherWin* volume_mount_watcher,
     17     TestPortableDeviceWatcherWin* portable_device_watcher)
     18     : StorageMonitorWin(volume_mount_watcher, portable_device_watcher) {
     19   DCHECK(volume_mount_watcher_);
     20   DCHECK(portable_device_watcher);
     21 }
     22 
     23 TestStorageMonitorWin::~TestStorageMonitorWin() {
     24 }
     25 
     26 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, DWORD data) {
     27   OnDeviceChange(event_type, data);
     28 }
     29 
     30 VolumeMountWatcherWin*
     31 TestStorageMonitorWin::volume_mount_watcher() {
     32   return volume_mount_watcher_.get();
     33 }
     34 
     35 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const {
     36   return StorageMonitor::receiver();
     37 }
     38 
     39 }  // namespace test
     40 }  // namespace chrome
     41