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

Issue 316343004: Add unittest for OpenTypeSanitizer (Closed)

Created:
6 years, 6 months ago by bashi
Modified:
6 years, 6 months ago
CC:
blink-reviews, jamesr, krit, jbroman, danakj, Rik, Stephen Chennney, pdr., rwlbuis, Kunihiko Sakamoto
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add unittest for OpenTypeSanitizer Since TestingPlatformSupport::unitTestSupport() doesn't implement required methods(webKitRootDir and readFromFile), I needed to put this test in platform_web_unittest_files. BUG=371267 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176593

Patch Set 1 #

Patch Set 2 : PLATFORM_EXPORT for tests #

Total comments: 1

Patch Set 3 : Move to Source/web/tests #

Patch Set 4 : Move back to Source/platform #

Patch Set 5 : Fix compile error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -1 line) Patch
M Source/platform/blink_platform.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/fonts/opentype/OpenTypeSanitizer.h View 1 1 chunk +2 lines, -1 line 0 comments Download
A Source/platform/fonts/opentype/OpenTypeSanitizerTest.cpp View 1 2 3 4 1 chunk +85 lines, -0 lines 1 comment Download

Messages

Total messages: 21 (0 generated)
bashi
Hi darin@, Could you take a look?
6 years, 6 months ago (2014-06-06 08:09:15 UTC) #1
jamesr
not lgtm https://codereview.chromium.org/316343004/diff/20001/Source/platform/TestingPlatformSupport.cpp File Source/platform/TestingPlatformSupport.cpp (right): https://codereview.chromium.org/316343004/diff/20001/Source/platform/TestingPlatformSupport.cpp#newcode35 Source/platform/TestingPlatformSupport.cpp:35: #include <base/file_util.h> <> style includes should only ...
6 years, 6 months ago (2014-06-06 18:56:04 UTC) #2
bashi
On 2014/06/06 18:56:04, jamesr wrote: > not lgtm > > https://codereview.chromium.org/316343004/diff/20001/Source/platform/TestingPlatformSupport.cpp > File Source/platform/TestingPlatformSupport.cpp (right): ...
6 years, 6 months ago (2014-06-13 06:33:26 UTC) #3
bashi
> > We have several test support APIs in the public/ directories already > > ...
6 years, 6 months ago (2014-06-13 07:44:11 UTC) #4
jamesr
I'm confused. How does moving this to Source/web/ help? The functionality you want is exposed ...
6 years, 6 months ago (2014-06-13 20:14:42 UTC) #5
bashi
On 2014/06/13 20:14:42, jamesr wrote: > I'm confused. How does moving this to Source/web/ help? ...
6 years, 6 months ago (2014-06-17 01:04:49 UTC) #6
jamesr
You probably want to be in Source/platform/blink_platform.gypi's platform_web_unittest_files list to have a unit test in ...
6 years, 6 months ago (2014-06-18 05:42:53 UTC) #7
bashi
On 2014/06/18 05:42:53, jamesr wrote: > You probably want to be in Source/platform/blink_platform.gypi's > platform_web_unittest_files ...
6 years, 6 months ago (2014-06-18 08:35:01 UTC) #8
jamesr
thanks, lgtm This situation (and many others) will get better once we merge repos.
6 years, 6 months ago (2014-06-18 16:34:11 UTC) #9
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 6 months ago (2014-06-19 22:47:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/316343004/60001
6 years, 6 months ago (2014-06-19 22:48:00 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_blink_compile_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-20 02:15:23 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 02:33:23 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/12885)
6 years, 6 months ago (2014-06-20 02:33:24 UTC) #14
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 6 months ago (2014-06-20 05:02:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/316343004/80001
6 years, 6 months ago (2014-06-20 05:04:08 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-20 05:38:29 UTC) #17
commit-bot: I haz the power
Change committed as 176593
6 years, 6 months ago (2014-06-20 06:22:31 UTC) #18
jamesr
Unfortunately this test crashes on the android nexus 4 bot: http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Android%20%28Nexus4%29/builds/14989/steps/webkit_unit_tests/logs/stdio [ RUN ] OpenTypeSanitizerTest.TestWOFF ...
6 years, 6 months ago (2014-06-20 19:30:21 UTC) #19
jamesr
https://codereview.chromium.org/316343004/diff/80001/Source/platform/fonts/opentype/OpenTypeSanitizerTest.cpp File Source/platform/fonts/opentype/OpenTypeSanitizerTest.cpp (right): https://codereview.chromium.org/316343004/diff/80001/Source/platform/fonts/opentype/OpenTypeSanitizerTest.cpp#newcode61 Source/platform/fonts/opentype/OpenTypeSanitizerTest.cpp:61: EXPECT_GE(sanitized->size(), 4u); this should probably be an ASSERT_GT() so ...
6 years, 6 months ago (2014-06-20 19:31:40 UTC) #20
jamesr
6 years, 6 months ago (2014-06-20 19:32:31 UTC) #21
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/347173002/ by jamesr@chromium.org.

The reason for reverting is: Crashes on WebKit Android (Nexus4) bot:

http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Android%20%28Ne...

[----------] 1 test from OpenTypeSanitizerTest
[ RUN      ] OpenTypeSanitizerTest.TestWOFF
../../third_party/WebKit/Source/platform/fonts/opentype/OpenTypeSanitizerTest.cpp:54:
Failure
Expected: (buffer->size()) >= (4u), actual: 0 vs 4
[ CRASHED      ].

Powered by Google App Engine
This is Rietveld 408576698