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

Unified Diff: content/browser/renderer_host/media/media_stream_manager_unittest.cc

Issue 2326623003: Make SystemMonitor report all audio device changes instead of just audio capture. (Closed)
Patch Set: Created 4 years, 3 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: content/browser/renderer_host/media/media_stream_manager_unittest.cc
diff --git a/content/browser/renderer_host/media/media_stream_manager_unittest.cc b/content/browser/renderer_host/media/media_stream_manager_unittest.cc
index b7bc6b89135304f72903519f285a9bc26dc69c57..8741484a9f6b78e0e010b5ea753d88952dfbd8b2 100644
--- a/content/browser/renderer_host/media/media_stream_manager_unittest.cc
+++ b/content/browser/renderer_host/media/media_stream_manager_unittest.cc
@@ -389,8 +389,7 @@ TEST_F(MediaStreamManagerTest, NotifyDeviceChanges) {
// Simulate device change
EXPECT_CALL(requester, MockDevicesChanged(_));
audio_manager_->SetNumAudioInputDevices(3);
- media_stream_manager_->OnDevicesChanged(
- base::SystemMonitor::DEVTYPE_AUDIO_CAPTURE);
+ media_stream_manager_->OnDevicesChanged(base::SystemMonitor::DEVTYPE_AUDIO);
run_loop_device_change.Run();
}
@@ -405,8 +404,7 @@ TEST_F(MediaStreamManagerTest, NotifyDeviceChanges) {
// Bogus OnDeviceChange, as devices have not changed. Should not trigger
// notification.
EXPECT_CALL(requester, MockDevicesChanged(_)).Times(0);
- media_stream_manager_->OnDevicesChanged(
- base::SystemMonitor::DEVTYPE_AUDIO_CAPTURE);
+ media_stream_manager_->OnDevicesChanged(base::SystemMonitor::DEVTYPE_AUDIO);
// Do enumeration to be able to quit the RunLoop.
EXPECT_CALL(requester,
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | media/audio/win/audio_device_listener_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698