Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5198)

Unified Diff: chrome/browser/storage_monitor/image_capture_device_manager_unittest.mm

Issue 15988011: Refine StorageMonitor storage device getter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix SystemInfoStorageApiTest failures in browser_tests Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/storage_monitor/image_capture_device_manager_unittest.mm
diff --git a/chrome/browser/storage_monitor/image_capture_device_manager_unittest.mm b/chrome/browser/storage_monitor/image_capture_device_manager_unittest.mm
index cd7f18f25b7ae23ec1c82c8968185dbe1a724b22..2b3a16ad0f4d47ea385a9930498cfaa1196844ef 100644
--- a/chrome/browser/storage_monitor/image_capture_device_manager_unittest.mm
+++ b/chrome/browser/storage_monitor/image_capture_device_manager_unittest.mm
@@ -286,13 +286,14 @@ TEST_F(ImageCaptureDeviceManagerTest, TestAttachDetach) {
chrome::ImageCaptureDeviceManager manager;
manager.SetNotifications(monitor_.receiver());
ICCameraDevice* device = AttachDevice(&manager);
- std::vector<chrome::StorageInfo> devices = monitor_.GetAttachedStorage();
+ std::vector<chrome::StorageInfo> devices =
+ monitor_.GetAllAvailableStorages();
ASSERT_EQ(1U, devices.size());
EXPECT_EQ(std::string("ic:") + kDeviceId, devices[0].device_id());
DetachDevice(&manager, device);
- devices = monitor_.GetAttachedStorage();
+ devices = monitor_.GetAllAvailableStorages();
ASSERT_EQ(0U, devices.size());
};

Powered by Google App Engine
This is Rietveld 408576698