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

Unified Diff: media/audio/test_audio_input_controller_factory.h

Issue 2624403002: Refactor AudioInputController and related interfaces. (Closed)
Patch Set: Address comments 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 | « media/audio/audio_io.h ('k') | media/audio/test_audio_input_controller_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/test_audio_input_controller_factory.h
diff --git a/media/audio/test_audio_input_controller_factory.h b/media/audio/test_audio_input_controller_factory.h
index 4a04d36e61387bbd7469ebc0bd60ec156909fa50..90f81b7f7b490f70185c638ce26fdfe13baf62fb 100644
--- a/media/audio/test_audio_input_controller_factory.h
+++ b/media/audio/test_audio_input_controller_factory.h
@@ -65,6 +65,9 @@ class TestAudioInputController : public AudioInputController {
// Returns the event handler installed on the AudioInputController.
EventHandler* event_handler() const { return event_handler_; }
+ // Returns a pointer to the audio callback for the AudioInputController.
+ SyncWriter* sync_writer() const { return sync_writer_; }
+
// Notifies the TestAudioControllerOpened() event to the delegate (if any).
void Record() override;
@@ -84,7 +87,8 @@ class TestAudioInputController : public AudioInputController {
// These are not owned by us and expected to be valid for this object's
// lifetime.
TestAudioInputControllerFactory* factory_;
- EventHandler* event_handler_;
+ EventHandler* const event_handler_;
+ SyncWriter* const sync_writer_;
DISALLOW_COPY_AND_ASSIGN(TestAudioInputController);
};
« no previous file with comments | « media/audio/audio_io.h ('k') | media/audio/test_audio_input_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698