| 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/media_gallery/media_device_notifications_window_win.h" | 5 #include "chrome/browser/system_monitor/media_device_notifications_window_win.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/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/scoped_temp_dir.h" | 15 #include "base/scoped_temp_dir.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.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 "chrome/browser/media_gallery/media_storage_util.h" | 19 #include "chrome/browser/system_monitor/media_storage_util.h" |
| 20 #include "content/public/test/test_browser_thread.h" | 20 #include "content/public/test/test_browser_thread.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 | 27 |
| 28 LRESULT GetVolumeName(LPCWSTR drive, | 28 LRESULT GetVolumeName(LPCWSTR drive, |
| 29 LPWSTR volume_name, | 29 LPWSTR volume_name, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 std::vector<int> device_indices; | 203 std::vector<int> device_indices; |
| 204 device_indices.push_back(0); | 204 device_indices.push_back(0); |
| 205 device_indices.push_back(1); | 205 device_indices.push_back(1); |
| 206 device_indices.push_back(2); | 206 device_indices.push_back(2); |
| 207 device_indices.push_back(3); | 207 device_indices.push_back(3); |
| 208 | 208 |
| 209 DoDevicesDetachedTest(device_indices); | 209 DoDevicesDetachedTest(device_indices); |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace chrome | 212 } // namespace chrome |
| OLD | NEW |