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

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

Issue 1214883004: Fixed the audio backgrounding bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added method to get mach port Created 5 years, 4 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/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 b988309d1519e42b6e99f9c31e559a8e4441bb5a..044527fe98de6b530bf97f4ede4f0213d85eedad 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -138,6 +138,8 @@ int MockRenderProcessHost::VisibleWidgetCount() const {
return 1;
}
+void MockRenderProcessHost::AudioStateChanged() {}
+
bool MockRenderProcessHost::IsForGuestsOnly() const {
return is_for_guests_only_;
}
@@ -282,6 +284,13 @@ media::BrowserCdm* MockRenderProcessHost::GetBrowserCdm(int render_frame_id,
}
#endif
+#if defined(OS_MACOSX)
+mach_port_t MockRenderProcessHost::GetMachTaskPortForTesting() const {
+ mach_port_t port = 0;
+ return port;
Robert Sesek 2015/08/24 21:44:48 return MACH_PORT_NULL;
sebsg 2015/08/25 01:35:59 Done.
+}
+#endif
+
void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
}

Powered by Google App Engine
This is Rietveld 408576698