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

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

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Add missing EXPECT_TRUE. Created 4 years 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 e246dc7d7755276ba68bc1efe6a402b6bc782606..e20b805b57c49a2404ede2f55902a1cda1ff7d20 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -145,6 +145,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_;
@@ -167,6 +171,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