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

Unified Diff: chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm

Issue 16703025: [StorageMonitor] Move StorageMonitor ownership to BrowserProcessImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Catch up to SystemInfoStorage eject test Created 7 years, 5 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/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm
diff --git a/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm b/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm
index 7e71717039abecef34060ba44bf035995f1c484f..dcdbdd021a7f86a207a83dcef0b16c8da567e285 100644
--- a/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm
+++ b/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm
@@ -184,7 +184,9 @@ class MTPDeviceDelegateImplMacTest : public testing::Test {
content::BrowserThread::IO));
ASSERT_TRUE(io_thread_->Start());
- manager_.SetNotifications(monitor_.receiver());
+ chrome::test::TestStorageMonitor* monitor =
+ chrome::test::TestStorageMonitor::CreateAndInstall();
+ manager_.SetNotifications(monitor->receiver());
camera_ = [MockMTPICCameraDevice alloc];
id<ICDeviceBrowserDelegate> delegate = manager_.device_browser();
@@ -304,7 +306,6 @@ class MTPDeviceDelegateImplMacTest : public testing::Test {
scoped_ptr<content::TestBrowserThread> file_thread_;
scoped_ptr<content::TestBrowserThread> io_thread_;
base::ScopedTempDir temp_dir_;
- chrome::test::TestStorageMonitor monitor_;
chrome::ImageCaptureDeviceManager manager_;
MockMTPICCameraDevice* camera_;

Powered by Google App Engine
This is Rietveld 408576698