Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / storage_monitor / test_storage_monitor_win.cc
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 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);
18 }
19
20 TestStorageMonitorWin::~TestStorageMonitorWin() {
21 }
22
23 void TestStorageMonitorWin::InjectDeviceChange(UINT event_type, DWORD data) {
24   OnDeviceChange(event_type, data);
25 }
26
27 VolumeMountWatcherWin*
28 TestStorageMonitorWin::volume_mount_watcher() {
29   return volume_mount_watcher_.get();
30 }
31
32 StorageMonitor::Receiver* TestStorageMonitorWin::receiver() const {
33   return StorageMonitor::receiver();
34 }