| 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..dfff1c008a39e75069caf78b38d15b941de2fe23 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
|
| @@ -19,6 +19,7 @@
|
| #include "chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h"
|
| #include "chrome/browser/storage_monitor/image_capture_device_manager.h"
|
| #include "chrome/browser/storage_monitor/test_storage_monitor.h"
|
| +#include "chrome/test/base/testing_browser_process.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/test/test_browser_thread.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -184,7 +185,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::Create();
|
| + manager_.SetNotifications(monitor->receiver());
|
|
|
| camera_ = [MockMTPICCameraDevice alloc];
|
| id<ICDeviceBrowserDelegate> delegate = manager_.device_browser();
|
| @@ -304,7 +307,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_;
|
|
|
|
|