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

Unified Diff: content/public/test/mock_render_process_host.cc

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Remove active audio tracking from ARH to see what tests break. Created 3 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
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_process_host.cc
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc
index d0af148fad74c82c5396c4aadde60099e63f91dc..0c2c4069baabd51dcffbf716e2e645ca0bcf5392 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -143,7 +143,10 @@ int MockRenderProcessHost::VisibleWidgetCount() const {
return 1;
}
-void MockRenderProcessHost::AudioStateChanged() {}
+void MockRenderProcessHost::AudioStateChanged() {
+ if (!audio_state_changed_callback_.is_null())
+ audio_state_changed_callback_.Run();
+}
bool MockRenderProcessHost::IsForGuestsOnly() const {
return is_for_guests_only_;
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698