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

Issue 2490473005: Pull up equivalent image decoding tests (Closed)

Created:
4 years, 1 month ago by joostouwerling
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, jzern, skal, urvang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pull up equivalent image decoding tests Besides a small change for GIFImageDecoderTest::testProgressiveDecode (see below), this is just a refactor. No behavior change, no new tests. Pull up equivalent image decoding tests from WEBPImageDecoderTest and GIFImageDecoderTest to ImageDecoderTestHelpers. These are the following tests: - testRandomFrameDecode - testRandomDecodeAfterClearFrameBufferCache - testDecodeAfterReallocatingData - testByteByByteSizeAvailable - testProgressiveDecoding For testProgressiveDecoding, a small change has been made. The tests for repetition count before and after the progressive while loop are removed. Therefore, an extra test is added in verifyRepetitionCount which tests the repetition count of the same image. Committed: https://crrev.com/5465208debdeb2e6f5e898c9d08768d0a833db02 Cr-Commit-Position: refs/heads/master@{#431568}

Patch Set 1 #

Patch Set 2 : Add repetition count test for radient.gif #

Total comments: 12

Patch Set 3 : Fixed feedback on patch 1 and ran WebKit formnatting #

Total comments: 2

Patch Set 4 : Separate API for file and dir + file #

Total comments: 6

Patch Set 5 : Removed unnecessary header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -299 lines) Patch
M third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.h View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp View 1 2 3 3 chunks +280 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp View 1 2 3 4 4 chunks +26 lines, -121 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp View 1 2 6 chunks +18 lines, -166 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
joostouwerling
4 years, 1 month ago (2016-11-09 00:32:26 UTC) #4
joostouwerling
https://codereview.chromium.org/2490473005/diff/40001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp (right): https://codereview.chromium.org/2490473005/diff/40001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp#newcode54 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp:54: void testRepetitionCount(const char *dir, const char* file, An extra ...
4 years, 1 month ago (2016-11-09 14:25:08 UTC) #5
scroggo_chromium
https://codereview.chromium.org/2490473005/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp File third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp (right): https://codereview.chromium.org/2490473005/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp#newcode20 third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp:20: std::string dirStr(dir); Elsewhere in the file, we use String. ...
4 years, 1 month ago (2016-11-09 14:38:37 UTC) #6
urvang
lgtm LGTM after any comments from scroggo@
4 years, 1 month ago (2016-11-09 22:33:57 UTC) #7
joostouwerling
https://codereview.chromium.org/2490473005/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp File third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp (right): https://codereview.chromium.org/2490473005/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp#newcode20 third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.cpp:20: std::string dirStr(dir); On 2016/11/09 14:38:37, scroggo_chromium wrote: > Elsewhere ...
4 years, 1 month ago (2016-11-10 17:15:13 UTC) #8
scroggo_chromium
https://codereview.chromium.org/2490473005/diff/60001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp (right): https://codereview.chromium.org/2490473005/diff/60001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp#newcode52 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp:52: return reinterpret_cast<const char*>(filePath.characters8()); I missed this in patch set ...
4 years, 1 month ago (2016-11-10 17:34:39 UTC) #9
joostouwerling
https://codereview.chromium.org/2490473005/diff/60001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp (right): https://codereview.chromium.org/2490473005/diff/60001/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp#newcode52 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp:52: return reinterpret_cast<const char*>(filePath.characters8()); On 2016/11/10 17:34:39, scroggo_chromium wrote: > ...
4 years, 1 month ago (2016-11-10 23:47:18 UTC) #12
scroggo_chromium
A couple of nits, mostly around parameters where we always use the defaults. It doesn't ...
4 years, 1 month ago (2016-11-11 13:18:43 UTC) #17
joostouwerling
https://codereview.chromium.org/2490473005/diff/120001/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.h File third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.h (right): https://codereview.chromium.org/2490473005/diff/120001/third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.h#newcode41 third_party/WebKit/Source/platform/image-decoders/ImageDecoderTestHelpers.h:41: size_t skippingStep = 5); On 2016/11/11 13:18:42, scroggo_chromium wrote: ...
4 years, 1 month ago (2016-11-11 14:43:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2490473005/140001
4 years, 1 month ago (2016-11-11 14:44:10 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 1 month ago (2016-11-11 15:50:28 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 15:54:30 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5465208debdeb2e6f5e898c9d08768d0a833db02
Cr-Commit-Position: refs/heads/master@{#431568}

Powered by Google App Engine
This is Rietveld 408576698