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

Unified Diff: media/base/test_helpers.h

Issue 18414008: Reland r210741 "Separate DemuxerStream and VideoDecoder." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 7 years, 5 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/base/mock_filters.h ('k') | media/base/test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/test_helpers.h
diff --git a/media/base/test_helpers.h b/media/base/test_helpers.h
index a7eb8f53144f381997a727efc9a837615fca73ee..872d08d6f8de2b0ae0247e279c0c3e018879e9dd 100644
--- a/media/base/test_helpers.h
+++ b/media/base/test_helpers.h
@@ -21,6 +21,7 @@ class TimeDelta;
namespace media {
class AudioBuffer;
+class DecoderBuffer;
// Return a callback that expects to be run once.
base::Closure NewExpectedClosure();
@@ -130,6 +131,18 @@ scoped_refptr<AudioBuffer> MakePlanarAudioBuffer(
base::TimeDelta start_time,
base::TimeDelta duration);
+// Create a fake video DecoderBuffer for testing purpose. The buffer contains
+// part of video decoder config info embedded so that the testing code can do
+// some sanity check.
+scoped_refptr<DecoderBuffer> CreateFakeVideoBufferForTest(
+ const VideoDecoderConfig& config,
+ base::TimeDelta timestamp,
+ base::TimeDelta duration);
+
+// Verify if a fake video DecoderBuffer is valid.
+bool VerifyFakeVideoBufferForTest(const scoped_refptr<DecoderBuffer>& buffer,
+ const VideoDecoderConfig& config);
+
} // namespace media
#endif // MEDIA_BASE_TEST_HELPERS_H_
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698