| 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 "components/storage_monitor/storage_monitor_chromeos.h" | 5 #include "components/storage_monitor/storage_monitor_chromeos.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/message_loop/message_loop.h" |
| 16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 18 #include "chromeos/disks/mock_disk_mount_manager.h" | 19 #include "chromeos/disks/mock_disk_mount_manager.h" |
| 19 #include "components/storage_monitor/mock_removable_storage_observer.h" | 20 #include "components/storage_monitor/mock_removable_storage_observer.h" |
| 20 #include "components/storage_monitor/removable_device_constants.h" | 21 #include "components/storage_monitor/removable_device_constants.h" |
| 21 #include "components/storage_monitor/storage_info.h" | 22 #include "components/storage_monitor/storage_info.h" |
| 22 #include "components/storage_monitor/test_media_transfer_protocol_manager_chrome
os.h" | 23 #include "components/storage_monitor/test_media_transfer_protocol_manager_chrome
os.h" |
| 23 #include "components/storage_monitor/test_storage_monitor.h" | 24 #include "components/storage_monitor/test_storage_monitor.h" |
| 24 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
| 25 #include "content/public/test/test_browser_thread_bundle.h" | 26 #include "content/public/test/test_browser_thread_bundle.h" |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 base::Bind(&StorageMonitorCrosTest::EjectNotify, | 551 base::Bind(&StorageMonitorCrosTest::EjectNotify, |
| 551 base::Unretained(this))); | 552 base::Unretained(this))); |
| 552 base::RunLoop().RunUntilIdle(); | 553 base::RunLoop().RunUntilIdle(); |
| 553 | 554 |
| 554 EXPECT_EQ(StorageMonitor::EJECT_OK, status_); | 555 EXPECT_EQ(StorageMonitor::EJECT_OK, status_); |
| 555 } | 556 } |
| 556 | 557 |
| 557 } // namespace | 558 } // namespace |
| 558 | 559 |
| 559 } // namespace storage_monitor | 560 } // namespace storage_monitor |
| OLD | NEW |