Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: components/storage_monitor/test_storage_monitor_win.h

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file contains a subclass of StorageMonitorWin to simulate device 5 // This file contains a subclass of StorageMonitorWin to simulate device
6 // changed events for testing. 6 // changed events for testing.
7 7
8 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ 8 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_
9 #define COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ 9 #define COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_
10 10
11 #include <windows.h> 11 #include <windows.h>
12 12
13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "components/storage_monitor/storage_monitor_win.h" 15 #include "components/storage_monitor/storage_monitor_win.h"
15 16
16 namespace storage_monitor { 17 namespace storage_monitor {
17 18
18 class TestPortableDeviceWatcherWin; 19 class TestPortableDeviceWatcherWin;
19 class TestVolumeMountWatcherWin; 20 class TestVolumeMountWatcherWin;
20 21
21 class TestStorageMonitorWin: public StorageMonitorWin { 22 class TestStorageMonitorWin: public StorageMonitorWin {
22 public: 23 public:
23 TestStorageMonitorWin( 24 TestStorageMonitorWin(
24 TestVolumeMountWatcherWin* volume_mount_watcher, 25 TestVolumeMountWatcherWin* volume_mount_watcher,
25 TestPortableDeviceWatcherWin* portable_device_watcher); 26 TestPortableDeviceWatcherWin* portable_device_watcher);
26 27
27 ~TestStorageMonitorWin() override; 28 ~TestStorageMonitorWin() override;
28 29
29 void InjectDeviceChange(UINT event_type, LPARAM data); 30 void InjectDeviceChange(UINT event_type, LPARAM data);
30 31
31 VolumeMountWatcherWin* volume_mount_watcher(); 32 VolumeMountWatcherWin* volume_mount_watcher();
32 33
33 Receiver* receiver() const override; 34 Receiver* receiver() const override;
34 35
35 private: 36 private:
36 DISALLOW_COPY_AND_ASSIGN(TestStorageMonitorWin); 37 DISALLOW_COPY_AND_ASSIGN(TestStorageMonitorWin);
37 }; 38 };
38 39
39 } // namespace storage_monitor 40 } // namespace storage_monitor
40 41
41 #endif // COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_ 42 #endif // COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_
OLDNEW
« no previous file with comments | « components/storage_monitor/test_storage_monitor.cc ('k') | components/storage_monitor/test_volume_mount_watcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698