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

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

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Thread checks. 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
Index: content/public/test/mock_render_process_host.h
diff --git a/content/public/test/mock_render_process_host.h b/content/public/test/mock_render_process_host.h
index 358a26728d5916455882f5e8fe960c54140b6455..b9c61b8824ea44762a0cbcd3af450cc7889b8831 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -147,6 +147,10 @@ class MockRenderProcessHost : public RenderProcessHost {
remote_interfaces_ = std::move(remote_interfaces);
}
+ void SetAudioStateChangedCallback(base::Closure closure) {
+ audio_state_changed_callback_ = closure;
+ }
+
private:
// Stores IPC messages that would have been sent to the renderer.
IPC::TestSink sink_;
@@ -169,6 +173,7 @@ class MockRenderProcessHost : public RenderProcessHost {
std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_;
std::unique_ptr<mojo::AssociatedInterfacePtr<mojom::Renderer>>
renderer_interface_;
+ base::Closure audio_state_changed_callback_;
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost);
};

Powered by Google App Engine
This is Rietveld 408576698