| OLD | NEW |
| 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 #include <windows.h> | 5 #include <windows.h> |
| 6 #include <dbt.h> | 6 #include <dbt.h> |
| 7 #include <stddef.h> |
| 7 | 8 |
| 8 #include <string> | 9 #include <string> |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 12 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
| 16 #include "components/storage_monitor/mock_removable_storage_observer.h" | 18 #include "components/storage_monitor/mock_removable_storage_observer.h" |
| 17 #include "components/storage_monitor/portable_device_watcher_win.h" | 19 #include "components/storage_monitor/portable_device_watcher_win.h" |
| 18 #include "components/storage_monitor/removable_device_constants.h" | 20 #include "components/storage_monitor/removable_device_constants.h" |
| 19 #include "components/storage_monitor/storage_info.h" | 21 #include "components/storage_monitor/storage_info.h" |
| 20 #include "components/storage_monitor/storage_monitor_win.h" | 22 #include "components/storage_monitor/storage_monitor_win.h" |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 TestPortableDeviceWatcherWin::kMTPDeviceWithValidInfo); | 541 TestPortableDeviceWatcherWin::kMTPDeviceWithValidInfo); |
| 540 EXPECT_EQ(expected, pnp_device_id); | 542 EXPECT_EQ(expected, pnp_device_id); |
| 541 EXPECT_EQ(it->object_persistent_id, | 543 EXPECT_EQ(it->object_persistent_id, |
| 542 TestPortableDeviceWatcherWin::GetMTPStorageUniqueId( | 544 TestPortableDeviceWatcherWin::GetMTPStorageUniqueId( |
| 543 pnp_device_id, storage_object_id)); | 545 pnp_device_id, storage_object_id)); |
| 544 } | 546 } |
| 545 DoMTPDeviceTest(TestPortableDeviceWatcherWin::kMTPDeviceWithValidInfo, false); | 547 DoMTPDeviceTest(TestPortableDeviceWatcherWin::kMTPDeviceWithValidInfo, false); |
| 546 } | 548 } |
| 547 | 549 |
| 548 } // namespace storage_monitor | 550 } // namespace storage_monitor |
| OLD | NEW |