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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_window_win_unittest.cc

Issue 11573048: [Media Galleries] Move RemovableStorageInfo notifications to chrome namespace (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make singleton pointer live in base class. Created 7 years, 11 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/system_monitor/removable_device_notifications_window_win_unittest.cc
diff --git a/chrome/browser/system_monitor/removable_device_notifications_window_win_unittest.cc b/chrome/browser/system_monitor/removable_device_notifications_window_win_unittest.cc
index 88f770c69458a02377a1a64dee826ab81b5be791..22eff6132067e13d82181e7978cf96704df2794d 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_window_win_unittest.cc
+++ b/chrome/browser/system_monitor/removable_device_notifications_window_win_unittest.cc
@@ -14,10 +14,9 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
-#include "base/system_monitor/system_monitor.h"
-#include "base/test/mock_devices_changed_observer.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/system_monitor/media_storage_util.h"
+#include "chrome/browser/system_monitor/mock_removable_storage_observer.h"
#include "chrome/browser/system_monitor/portable_device_watcher_win.h"
#include "chrome/browser/system_monitor/removable_device_constants.h"
#include "chrome/browser/system_monitor/volume_mount_watcher_win.h"
@@ -330,8 +329,7 @@ class RemovableDeviceNotificationsWindowWinTest : public testing::Test {
content::TestBrowserThread ui_thread_;
content::TestBrowserThread file_thread_;
- base::SystemMonitor system_monitor_;
- base::MockDevicesChangedObserver observer_;
+ MockRemovableStorageObserver observer_;
scoped_ptr<TestRemovableDeviceNotificationsWindowWin> window_;
scoped_refptr<TestVolumeMountWatcherWin> volume_mount_watcher_;
};
@@ -353,12 +351,12 @@ void RemovableDeviceNotificationsWindowWinTest::SetUp() {
volume_mount_watcher_.get(), new TestPortableDeviceWatcherWin));
window_->InitWithTestData(false);
RunUntilIdle();
- system_monitor_.AddDevicesChangedObserver(&observer_);
+ window_->AddObserver(&observer_);
}
void RemovableDeviceNotificationsWindowWinTest::TearDown() {
RunUntilIdle();
- system_monitor_.RemoveDevicesChangedObserver(&observer_);
+ window_->RemoveObserver(&observer_);
}
void RemovableDeviceNotificationsWindowWinTest::
@@ -591,7 +589,7 @@ TEST_F(RemovableDeviceNotificationsWindowWinTest, DISABLED_DeviceInfoForPath) {
// A connected removable device.
FilePath removable_device(L"F:\\");
- base::SystemMonitor::RemovableStorageInfo device_info;
+ RemovableStorageNotifications::StorageInfo device_info;
EXPECT_TRUE(window_->GetDeviceInfoForPath(removable_device, &device_info));
std::string unique_id;

Powered by Google App Engine
This is Rietveld 408576698