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/storage_monitor/removable_device_notifications_mac.h" | 5 #include "chrome/browser/storage_monitor/storage_monitor_mac.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/mac/foundation_util.h" | 9 #include "base/mac/foundation_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/storage_monitor/media_storage_util.h" | 13 #include "chrome/browser/storage_monitor/media_storage_util.h" |
14 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h" | 14 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h" |
15 #include "chrome/browser/storage_monitor/removable_device_constants.h" | 15 #include "chrome/browser/storage_monitor/removable_device_constants.h" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 TEST_F(RemovableDeviceNotificationsMacTest, DMG) { | 201 TEST_F(RemovableDeviceNotificationsMacTest, DMG) { |
202 DiskInfoMac info = CreateDiskInfoMac( | 202 DiskInfoMac info = CreateDiskInfoMac( |
203 unique_id_, "Disk Image", display_name_, mount_point_, kTestSize); | 203 unique_id_, "Disk Image", display_name_, mount_point_, kTestSize); |
204 notifications_->UpdateDisk( | 204 notifications_->UpdateDisk( |
205 info, RemovableDeviceNotificationsMac::UPDATE_DEVICE_ADDED); | 205 info, RemovableDeviceNotificationsMac::UPDATE_DEVICE_ADDED); |
206 message_loop_.RunUntilIdle(); | 206 message_loop_.RunUntilIdle(); |
207 EXPECT_EQ(0, mock_storage_observer_->attach_calls()); | 207 EXPECT_EQ(0, mock_storage_observer_->attach_calls()); |
208 } | 208 } |
209 | 209 |
210 } // namespace chrome | 210 } // namespace chrome |
OLD | NEW |