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

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

Issue 2350693002: Remove device enumeration, caching and monitoring from MediaStreamManager. (Closed)
Patch Set: latest hta@ comments 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 8741484a9f6b78e0e010b5ea753d88952dfbd8b2..c2f0c11d64de1757fe54e4830c1702c489b3a402 100644
--- a/content/browser/renderer_host/media/media_stream_manager_unittest.cc
+++ b/content/browser/renderer_host/media/media_stream_manager_unittest.cc
@@ -389,7 +389,8 @@ TEST_F(MediaStreamManagerTest, NotifyDeviceChanges) {
// Simulate device change
EXPECT_CALL(requester, MockDevicesChanged(_));
audio_manager_->SetNumAudioInputDevices(3);
- media_stream_manager_->OnDevicesChanged(base::SystemMonitor::DEVTYPE_AUDIO);
+ media_stream_manager_->media_devices_manager()->OnDevicesChanged(
+ base::SystemMonitor::DEVTYPE_AUDIO);
run_loop_device_change.Run();
}
@@ -404,7 +405,8 @@ 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);
+ media_stream_manager_->media_devices_manager()->OnDevicesChanged(
+ base::SystemMonitor::DEVTYPE_AUDIO);
// Do enumeration to be able to quit the RunLoop.
EXPECT_CALL(requester,

Powered by Google App Engine
This is Rietveld 408576698