OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/system_monitor/removable_device_notifications_window_wi
n.h" | 5 #include "chrome/browser/system_monitor/removable_device_notifications_window_wi
n.h" |
6 | 6 |
7 #include <dbt.h> | 7 #include <dbt.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
16 #include "base/scoped_temp_dir.h" | |
17 #include "base/system_monitor/system_monitor.h" | 17 #include "base/system_monitor/system_monitor.h" |
18 #include "base/test/mock_devices_changed_observer.h" | 18 #include "base/test/mock_devices_changed_observer.h" |
19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
20 #include "chrome/browser/system_monitor/media_storage_util.h" | 20 #include "chrome/browser/system_monitor/media_storage_util.h" |
21 #include "chrome/browser/system_monitor/portable_device_watcher_win.h" | 21 #include "chrome/browser/system_monitor/portable_device_watcher_win.h" |
22 #include "chrome/browser/system_monitor/removable_device_constants.h" | 22 #include "chrome/browser/system_monitor/removable_device_constants.h" |
23 #include "chrome/browser/system_monitor/volume_mount_watcher_win.h" | 23 #include "chrome/browser/system_monitor/volume_mount_watcher_win.h" |
24 #include "content/public/test/test_browser_thread.h" | 24 #include "content/public/test/test_browser_thread.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 | 636 |
637 // Attach a device with two data partitions. Verify that attach/detach | 637 // Attach a device with two data partitions. Verify that attach/detach |
638 // notifications are sent out for each removable storage. | 638 // notifications are sent out for each removable storage. |
639 TEST_F(RemovableDeviceNotificationsWindowWinTest, | 639 TEST_F(RemovableDeviceNotificationsWindowWinTest, |
640 MTPDeviceWithMultipleStorageObjects) { | 640 MTPDeviceWithMultipleStorageObjects) { |
641 DoMTPDeviceTest(kMTPDeviceWithMultipleStorageObjects, true); | 641 DoMTPDeviceTest(kMTPDeviceWithMultipleStorageObjects, true); |
642 DoMTPDeviceTest(kMTPDeviceWithMultipleStorageObjects, false); | 642 DoMTPDeviceTest(kMTPDeviceWithMultipleStorageObjects, false); |
643 } | 643 } |
644 | 644 |
645 } // namespace chrome | 645 } // namespace chrome |
OLD | NEW |