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

Issue 10834071: Add unittest for H264BitReader. (Closed)

Created:
8 years, 4 months ago by xiaomings
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Use FileEnumerator with explicit namespace. #

Total comments: 4

Patch Set 3 : Remove MultiFileStreamParser and empty ctor/dtor. #

Total comments: 3

Patch Set 4 : Move H264BitReader into its own files. #

Patch Set 5 : Add empty line between common and specific headers. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -153 lines) Patch
A content/common/gpu/media/h264_bit_reader.h View 1 2 3 1 chunk +73 lines, -0 lines 1 comment Download
A content/common/gpu/media/h264_bit_reader.cc View 1 2 3 1 chunk +104 lines, -0 lines 0 comments Download
A content/common/gpu/media/h264_bit_reader_unittest.cc View 1 2 3 4 1 chunk +148 lines, -0 lines 6 comments Download
M content/common/gpu/media/h264_parser.h View 1 2 3 2 chunks +1 line, -55 lines 0 comments Download
M content/common/gpu/media/h264_parser.cc View 1 2 3 1 chunk +0 lines, -97 lines 0 comments Download
M content/common/gpu/media/h264_parser_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
xiaomings
Added unittest to H264BitReader. I also added a MultiStreamFileParsing into H264ParserTest, this briefly enumerate through ...
8 years, 4 months ago (2012-07-30 20:51:24 UTC) #1
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10834071/diff/2003/content/common/gpu/media/h264_parser_unittest.cc File content/common/gpu/media/h264_parser_unittest.cc (right): https://chromiumcodereview.appspot.com/10834071/diff/2003/content/common/gpu/media/h264_parser_unittest.cc#newcode21 content/common/gpu/media/h264_parser_unittest.cc:21: TEST(H264ParserTest, StreamFileParsing) { Is there any reason for this ...
8 years, 4 months ago (2012-07-30 23:32:32 UTC) #2
xiaomings
Removed the newly added MutliFileStreamParser. Remove the empty ctor/dtor. https://chromiumcodereview.appspot.com/10834071/diff/2003/content/common/gpu/media/h264_parser_unittest.cc File content/common/gpu/media/h264_parser_unittest.cc (right): https://chromiumcodereview.appspot.com/10834071/diff/2003/content/common/gpu/media/h264_parser_unittest.cc#newcode21 content/common/gpu/media/h264_parser_unittest.cc:21: ...
8 years, 4 months ago (2012-07-30 23:59:34 UTC) #3
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10834071/diff/5004/content/common/gpu/media/h264_parser_unittest.cc File content/common/gpu/media/h264_parser_unittest.cc (right): https://chromiumcodereview.appspot.com/10834071/diff/5004/content/common/gpu/media/h264_parser_unittest.cc#newcode75 content/common/gpu/media/h264_parser_unittest.cc:75: class H264BitReaderTest : public ::testing::Test { AFAICT this class's ...
8 years, 4 months ago (2012-07-31 17:24:14 UTC) #4
Ami GONE FROM CHROMIUM
BTW I'm not familiar w/ the vagaries of RBSP so I'm going to leave verifying ...
8 years, 4 months ago (2012-07-31 17:24:47 UTC) #5
xiaomings
https://chromiumcodereview.appspot.com/10834071/diff/5004/content/common/gpu/media/h264_parser_unittest.cc File content/common/gpu/media/h264_parser_unittest.cc (right): https://chromiumcodereview.appspot.com/10834071/diff/5004/content/common/gpu/media/h264_parser_unittest.cc#newcode75 content/common/gpu/media/h264_parser_unittest.cc:75: class H264BitReaderTest : public ::testing::Test { The class H264BitReader ...
8 years, 4 months ago (2012-07-31 19:24:32 UTC) #6
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10834071/diff/5004/content/common/gpu/media/h264_parser_unittest.cc File content/common/gpu/media/h264_parser_unittest.cc (right): https://chromiumcodereview.appspot.com/10834071/diff/5004/content/common/gpu/media/h264_parser_unittest.cc#newcode75 content/common/gpu/media/h264_parser_unittest.cc:75: class H264BitReaderTest : public ::testing::Test { On 2012/07/31 19:24:32, ...
8 years, 4 months ago (2012-07-31 20:30:25 UTC) #7
xiaomings
Moved H264BitReader into separate files. Add jam@ for the gypi file.
8 years, 4 months ago (2012-07-31 22:52:32 UTC) #8
Ami GONE FROM CHROMIUM
LGTM, still modulo posciak's LGTM on the tests. You can TBR=jam@chromium.org for the gypi changes ...
8 years, 4 months ago (2012-07-31 23:22:12 UTC) #9
Pawel Osciak
https://chromiumcodereview.appspot.com/10834071/diff/5016/content/common/gpu/media/h264_bit_reader_unittest.cc File content/common/gpu/media/h264_bit_reader_unittest.cc (right): https://chromiumcodereview.appspot.com/10834071/diff/5016/content/common/gpu/media/h264_bit_reader_unittest.cc#newcode49 content/common/gpu/media/h264_bit_reader_unittest.cc:49: EXPECT_FALSE(reader.Initialize(rbsp, 1)); Why should this be false? https://chromiumcodereview.appspot.com/10834071/diff/5016/content/common/gpu/media/h264_bit_reader_unittest.cc#newcode50 content/common/gpu/media/h264_bit_reader_unittest.cc:50: ...
8 years, 4 months ago (2012-08-01 02:04:37 UTC) #10
Pawel Osciak
lgtm after some clarification in chat. We might modify Initialize() to strip trailing zero bytes.
8 years, 4 months ago (2012-08-01 03:59:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiaomings@google.com/10834071/5016
8 years, 4 months ago (2012-08-01 06:09:49 UTC) #12
commit-bot: I haz the power
Presubmit check for 10834071-5016 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-01 06:09:53 UTC) #13
xiaomings
TBR=jam@chromium.org
8 years, 4 months ago (2012-08-01 06:12:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiaomings@google.com/10834071/5016
8 years, 4 months ago (2012-08-01 06:12:19 UTC) #15
commit-bot: I haz the power
Presubmit check for 10834071-5016 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-01 06:12:23 UTC) #16
Ami GONE FROM CHROMIUM
TBR belongs in cl description, not reviewlog.
8 years, 4 months ago (2012-08-01 14:50:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiaomings@google.com/10834071/5016
8 years, 4 months ago (2012-08-01 18:08:45 UTC) #18
commit-bot: I haz the power
Change committed as 149463
8 years, 4 months ago (2012-08-01 19:34:10 UTC) #19
Ami GONE FROM CHROMIUM
8 years, 3 months ago (2012-09-01 13:32:45 UTC) #20
https://chromiumcodereview.appspot.com/10834071/diff/5016/content/common/gpu/...
File content/common/gpu/media/h264_bit_reader_unittest.cc (right):

https://chromiumcodereview.appspot.com/10834071/diff/5016/content/common/gpu/...
content/common/gpu/media/h264_bit_reader_unittest.cc:49:
EXPECT_FALSE(reader.Initialize(rbsp, 1));
How did this test ever pass??  AFAICT from this CL (and to 154058, at least),
Initialize doesn't strip trailing zeros of any sort.  

Were these tests committed too soon?  Should they be reverted for now?

Powered by Google App Engine
This is Rietveld 408576698