Use multiline attribute to check for IA2_STATE_MULTILINE.
[chromium-blink-merge.git] / components / storage_monitor / test_storage_monitor_win.h
blob60660ae693187fb72ba552231a645ec86cf10e63
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 // This file contains a subclass of StorageMonitorWin to simulate device
6 // changed events for testing.
8 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_
9 #define COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_
11 #include <windows.h>
13 #include "base/memory/ref_counted.h"
14 #include "components/storage_monitor/storage_monitor_win.h"
16 namespace storage_monitor {
18 class TestPortableDeviceWatcherWin;
19 class TestVolumeMountWatcherWin;
21 class TestStorageMonitorWin: public StorageMonitorWin {
22 public:
23 TestStorageMonitorWin(
24 TestVolumeMountWatcherWin* volume_mount_watcher,
25 TestPortableDeviceWatcherWin* portable_device_watcher);
27 virtual ~TestStorageMonitorWin();
29 void InjectDeviceChange(UINT event_type, DWORD data);
31 VolumeMountWatcherWin* volume_mount_watcher();
33 virtual Receiver* receiver() const override;
35 private:
36 DISALLOW_COPY_AND_ASSIGN(TestStorageMonitorWin);
39 } // namespace storage_monitor
41 #endif // COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_