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

Unified Diff: chrome/browser/storage_monitor/test_storage_monitor_win.h

Issue 12382005: Rename RemovableDeviceNotifications=>StorageMonitor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more indentation issues. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/storage_monitor/test_storage_monitor_win.h
diff --git a/chrome/browser/storage_monitor/test_storage_monitor_win.h b/chrome/browser/storage_monitor/test_storage_monitor_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..7945e75164f9cc531eee934d4bc9b042e5119d0c
--- /dev/null
+++ b/chrome/browser/storage_monitor/test_storage_monitor_win.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
vandebo (ex-Chrome) 2013/03/02 00:23:37 This file is no longer detected as copied. Use th
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// This file contains a subclass of StorageMonitorWin to
+// simulate device changed events for testing.
vandebo (ex-Chrome) 2013/03/02 00:23:37 re-line wrap
+
+#ifndef CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_
+#define CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_
+
+#include <windows.h>
+
+#include "base/memory/ref_counted.h"
+#include "chrome/browser/storage_monitor/storage_monitor_win.h"
+
+namespace chrome {
+namespace test {
+
+class TestPortableDeviceWatcherWin;
+class TestVolumeMountWatcherWin;
+
+class TestStorageMonitorWin: public StorageMonitorWin {
+ public:
+ TestStorageMonitorWin(
+ TestVolumeMountWatcherWin* volume_mount_watcher,
+ TestPortableDeviceWatcherWin* portable_device_watcher);
+
+ virtual ~TestStorageMonitorWin();
+
+ void InjectDeviceChange(UINT event_type, DWORD data);
+
+ VolumeMountWatcherWin* volume_mount_watcher();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestStorageMonitorWin);
+};
+
+} // namespace test
+} // namespace chrome
+
+#endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698