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

Unified Diff: content/common/gpu/media/h264_parser.h

Issue 10834071: Add unittest for H264BitReader. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove MultiFileStreamParser and empty ctor/dtor. Created 8 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
Index: content/common/gpu/media/h264_parser.h
diff --git a/content/common/gpu/media/h264_parser.h b/content/common/gpu/media/h264_parser.h
index e64b1f307290c7667bff28efc985dd7e297c72a8..b60e1c6d954f9172bb2adab23b68d410185a4462 100644
--- a/content/common/gpu/media/h264_parser.h
+++ b/content/common/gpu/media/h264_parser.h
@@ -14,6 +14,8 @@
#include "base/basictypes.h"
#include "content/common/content_export.h"
+class H264BitReaderTest;
+
namespace content {
// For explanations of each struct and its members, see H.264 specification
@@ -301,11 +303,12 @@ class CONTENT_EXPORT H264Parser {
Result ParseSEI(H264SEIMessage* sei_msg);
private:
+ friend class ::H264BitReaderTest;
+
// A class to provide bit-granularity reading of H.264 streams.
// This is not a generic bit reader class, as it takes into account
// H.264 stream-specific constraints, such as skipping emulation-prevention
// bytes and stop bits. See spec for more details.
- // TODO(posciak): need separate unittests for this class.
class H264BitReader {
public:
H264BitReader();
« no previous file with comments | « no previous file | content/common/gpu/media/h264_parser_unittest.cc » ('j') | content/common/gpu/media/h264_parser_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698