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_mac.h" | 5 #include "components/storage_monitor/storage_monitor_mac.h" |
6 | 6 |
7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "components/storage_monitor/mock_removable_storage_observer.h" | 14 #include "components/storage_monitor/mock_removable_storage_observer.h" |
15 #include "components/storage_monitor/removable_device_constants.h" | 15 #include "components/storage_monitor/removable_device_constants.h" |
16 #include "components/storage_monitor/storage_info.h" | 16 #include "components/storage_monitor/storage_info.h" |
17 #include "components/storage_monitor/test_storage_monitor.h" | 17 #include "components/storage_monitor/test_storage_monitor.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 // Test that mounting a DMG doesn't send a notification. | 162 // Test that mounting a DMG doesn't send a notification. |
163 TEST_F(StorageMonitorMacTest, DMG) { | 163 TEST_F(StorageMonitorMacTest, DMG) { |
164 StorageInfo info = CreateStorageInfo( | 164 StorageInfo info = CreateStorageInfo( |
165 device_id_, "Disk Image", mount_point_, kTestSize); | 165 device_id_, "Disk Image", mount_point_, kTestSize); |
166 UpdateDisk(info, StorageMonitorMac::UPDATE_DEVICE_ADDED); | 166 UpdateDisk(info, StorageMonitorMac::UPDATE_DEVICE_ADDED); |
167 EXPECT_EQ(0, mock_storage_observer_->attach_calls()); | 167 EXPECT_EQ(0, mock_storage_observer_->attach_calls()); |
168 } | 168 } |
169 | 169 |
170 } // namespace storage_monitor | 170 } // namespace storage_monitor |
OLD | NEW |