| 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 <windows.h> | 5 #include <windows.h> |
| 6 #include <dbt.h> | 6 #include <dbt.h> |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/storage_monitor/media_storage_util.h" | 16 #include "chrome/browser/storage_monitor/media_storage_util.h" |
| 17 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h" | 17 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h" |
| 18 #include "chrome/browser/storage_monitor/portable_device_watcher_win.h" | 18 #include "chrome/browser/storage_monitor/portable_device_watcher_win.h" |
| 19 #include "chrome/browser/storage_monitor/removable_device_constants.h" | 19 #include "chrome/browser/storage_monitor/removable_device_constants.h" |
| 20 #include "chrome/browser/storage_monitor/removable_device_notifications_window_w
in.h" | 20 #include "chrome/browser/storage_monitor/storage_monitor_window_win.h" |
| 21 #include "chrome/browser/storage_monitor/test_portable_device_watcher_win.h" | 21 #include "chrome/browser/storage_monitor/test_portable_device_watcher_win.h" |
| 22 #include "chrome/browser/storage_monitor/test_removable_device_notifications_win
dow_win.h" | 22 #include "chrome/browser/storage_monitor/test_storage_monitor_window_win.h" |
| 23 #include "chrome/browser/storage_monitor/test_volume_mount_watcher_win.h" | 23 #include "chrome/browser/storage_monitor/test_volume_mount_watcher_win.h" |
| 24 #include "chrome/browser/storage_monitor/volume_mount_watcher_win.h" | 24 #include "chrome/browser/storage_monitor/volume_mount_watcher_win.h" |
| 25 #include "content/public/test/test_browser_thread.h" | 25 #include "content/public/test/test_browser_thread.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 | 27 |
| 28 namespace chrome { | 28 namespace chrome { |
| 29 namespace test { | 29 namespace test { |
| 30 | 30 |
| 31 using content::BrowserThread; | 31 using content::BrowserThread; |
| 32 | 32 |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 pnp_device_id); | 514 pnp_device_id); |
| 515 EXPECT_EQ(it->object_persistent_id, | 515 EXPECT_EQ(it->object_persistent_id, |
| 516 TestPortableDeviceWatcherWin::GetMTPStorageUniqueId( | 516 TestPortableDeviceWatcherWin::GetMTPStorageUniqueId( |
| 517 pnp_device_id, storage_object_id)); | 517 pnp_device_id, storage_object_id)); |
| 518 } | 518 } |
| 519 DoMTPDeviceTest(TestPortableDeviceWatcherWin::kMTPDeviceWithValidInfo, false); | 519 DoMTPDeviceTest(TestPortableDeviceWatcherWin::kMTPDeviceWithValidInfo, false); |
| 520 } | 520 } |
| 521 | 521 |
| 522 } // namespace test | 522 } // namespace test |
| 523 } // namespace chrome | 523 } // namespace chrome |
| OLD | NEW |