Index: media/base/test_helpers.h |
diff --git a/media/base/test_helpers.h b/media/base/test_helpers.h |
index bc505d43a604f4368f2a29fe385f7eb2a0d4cc04..bb915d8dc46a3c179813b021ea59db871f8ce49c 100644 |
--- a/media/base/test_helpers.h |
+++ b/media/base/test_helpers.h |
@@ -8,16 +8,20 @@ |
#include "base/basictypes.h" |
#include "base/callback.h" |
#include "media/base/pipeline_status.h" |
+#include "media/base/sample_format.h" |
#include "media/base/video_decoder_config.h" |
#include "testing/gmock/include/gmock/gmock.h" |
#include "ui/gfx/size.h" |
namespace base { |
class MessageLoop; |
+class TimeDelta; |
} |
namespace media { |
+class AudioBuffer; |
+ |
// Return a callback that expects to be run once. |
base::Closure NewExpectedClosure(); |
PipelineStatusCB NewExpectedStatusCB(PipelineStatus status); |
@@ -79,6 +83,24 @@ class TestVideoConfig { |
DISALLOW_IMPLICIT_CONSTRUCTORS(TestVideoConfig); |
}; |
+template <class T> |
+scoped_refptr<AudioBuffer> MakeInterleavedAudioBuffer( |
scherkus (not reviewing)
2013/06/20 23:36:24
given these are public methods let's get some docs
jrummell
2013/06/21 01:17:22
Done.
|
+ SampleFormat format, |
+ int channels, |
+ T start, |
+ T increment, |
+ int frames, |
+ const base::TimeDelta start_time); |
scherkus (not reviewing)
2013/06/20 23:36:24
is this supposed to be const-ref?
otherwise you c
jrummell
2013/06/21 01:17:22
Done.
|
+ |
+template <class T> |
+scoped_refptr<AudioBuffer> MakePlanarAudioBuffer( |
+ SampleFormat format, |
+ int channels, |
+ T start, |
+ T increment, |
+ int frames, |
+ const base::TimeDelta start_time); |
scherkus (not reviewing)
2013/06/20 23:36:24
ditto
jrummell
2013/06/21 01:17:22
Done.
|
+ |
} // namespace media |
#endif // MEDIA_BASE_TEST_HELPERS_H_ |