Adds method to provide custom AudioManager at runtime.
commit8e273264c96562ee35f60b03a1ef4e32ef8f7fcf
authorslan <slan@chromium.org>
Thu, 23 Apr 2015 19:26:10 +0000 (23 12:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 19:26:17 +0000 (23 19:26 +0000)
treee814e58fb0e3cd30c038b3970026acde72193a1b
parentf321c39a2f0c7d749f0ce311fa08681e0f835d47
Adds method to provide custom AudioManager at runtime.

Adds a static SetFactory method to media::AudioManager which allows a
caller to pass an AudioManagerFactory to the AudioMananger. The static
instance of AudioManager will be obtained from this factory.

Also adds an implementation for Cast, to be used on third party
platforms, with associated tests.

BUG=none

Review URL: https://codereview.chromium.org/1104583002

Cr-Commit-Position: refs/heads/master@{#326604}
media/audio/BUILD.gn
media/audio/audio_manager.cc
media/audio/audio_manager.h
media/audio/audio_manager_factory.h [new file with mode: 0644]
media/audio/audio_manager_factory_unittest.cc [new file with mode: 0644]
media/media.gyp