diff options
author | dalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-30 21:53:48 +0000 |
---|---|---|
committer | dalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-30 21:53:48 +0000 |
commit | c10660540a92b9b9871c123061303b4c1b7118d2 (patch) | |
tree | 7128dcf4b96ad903279161109017410a489257e3 /media/audio/alsa | |
parent | dcd5d4d3c3bc357d98a143a4e91c59257f86f482 (diff) | |
download | chromium_src-c10660540a92b9b9871c123061303b4c1b7118d2.zip chromium_src-c10660540a92b9b9871c123061303b4c1b7118d2.tar.gz chromium_src-c10660540a92b9b9871c123061303b4c1b7118d2.tar.bz2 |
Factorize MockAudioSourceCallback out of many unittests.
BUG=none
TEST=tests still pass.
Review URL: https://codereview.chromium.org/140613007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/alsa')
-rw-r--r-- | media/audio/alsa/alsa_output_unittest.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/media/audio/alsa/alsa_output_unittest.cc b/media/audio/alsa/alsa_output_unittest.cc index da7924f..07ce8ea 100644 --- a/media/audio/alsa/alsa_output_unittest.cc +++ b/media/audio/alsa/alsa_output_unittest.cc @@ -7,6 +7,7 @@ #include "media/audio/alsa/alsa_wrapper.h" #include "media/audio/alsa/audio_manager_alsa.h" #include "media/audio/fake_audio_log_factory.h" +#include "media/audio/mock_audio_source_callback.h" #include "media/base/data_buffer.h" #include "media/base/seekable_buffer.h" #include "testing/gmock/include/gmock/gmock.h" @@ -66,16 +67,6 @@ class MockAlsaWrapper : public AlsaWrapper { MOCK_METHOD1(StrError, const char*(int errnum)); }; -class MockAudioSourceCallback : public AudioOutputStream::AudioSourceCallback { - public: - MOCK_METHOD2(OnMoreData, int(AudioBus* audio_bus, - AudioBuffersState buffers_state)); - MOCK_METHOD3(OnMoreIOData, int(AudioBus* source, - AudioBus* dest, - AudioBuffersState buffers_state)); - MOCK_METHOD1(OnError, void(AudioOutputStream* stream)); -}; - class MockAudioManagerAlsa : public AudioManagerAlsa { public: MockAudioManagerAlsa() : AudioManagerAlsa(&fake_audio_log_factory_) {} |