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

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

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
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..85ec3628a0cff0e6174893e59f6d1b33aa57f9ef 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -7,7 +7,9 @@
#include <stddef.h>
#include <stdint.h>
+
#include <memory>
+#include <string>
#include <utility>
#include "base/macros.h"
@@ -147,6 +149,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 +175,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);
};
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698