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

Unified Diff: base/system_monitor/system_monitor_unittest.cc

Issue 10836004: add device type as an argument in OnDevicesChanged. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: change DeviceType prefix to DEVTYPE Created 8 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: base/system_monitor/system_monitor_unittest.cc
===================================================================
--- base/system_monitor/system_monitor_unittest.cc (revision 148913)
+++ base/system_monitor/system_monitor_unittest.cc (working copy)
@@ -118,7 +118,8 @@
for (int index = 0; index < kObservers; ++index) {
system_monitor_->AddDevicesChangedObserver(&observers[index]);
- EXPECT_CALL(observers[index], OnDevicesChanged())
+ EXPECT_CALL(observers[index],
+ OnDevicesChanged(base::SystemMonitor::DEVTYPE_UNKNOWN))
.Times(3)
.InSequence(mock_sequencer[index]);
EXPECT_CALL(observers[index],
@@ -133,11 +134,11 @@
.InSequence(mock_sequencer[index]);
}
- system_monitor_->ProcessDevicesChanged();
+ system_monitor_->ProcessDevicesChanged(base::SystemMonitor::DEVTYPE_UNKNOWN);
message_loop_.RunAllPending();
- system_monitor_->ProcessDevicesChanged();
- system_monitor_->ProcessDevicesChanged();
+ system_monitor_->ProcessDevicesChanged(base::SystemMonitor::DEVTYPE_UNKNOWN);
+ system_monitor_->ProcessDevicesChanged(base::SystemMonitor::DEVTYPE_UNKNOWN);
message_loop_.RunAllPending();
system_monitor_->ProcessMediaDeviceAttached(

Powered by Google App Engine
This is Rietveld 408576698