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

Issue 2863773005: Shape Detection: Face detection junit tests (Closed)

Created:
3 years, 7 months ago by mcasas
Modified:
3 years, 7 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, junwei, nasko+codewatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Shape Detection: Face detection junit tests This CL adds two robolectric Junit tests: - one for SharedBufferUtils, which tests error conditions such as unmappable buffer, wrong dimensions, or wrong map()ped size - one for Face Detection, that verifies that the given callback is called with the appropriate arguments in a series of cases. This test is parameterized with a boolean indicating fast-mode or not. Added alongside the (relatively new) service_junit_tests. BUG=722931 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2863773005 Cr-Commit-Position: refs/heads/master@{#472679} Committed: https://chromium.googlesource.com/chromium/src/+/5bd36b1f586432d4b127d956a4b3c355e19a9f3d

Patch Set 1 #

Total comments: 4

Patch Set 2 : scheib@ comments #

Patch Set 3 : Increase timeout, because linux_android_rel_ng can be very slow #

Patch Set 4 : setFaceDetector() should be a static method (from findBugs) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -3 lines) Patch
M services/BUILD.gn View 1 chunk +12 lines, -1 line 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/FaceDetectionImpl.java View 1 2 3 5 chunks +16 lines, -2 lines 0 comments Download
A services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java View 1 2 3 1 chunk +222 lines, -0 lines 0 comments Download
A services/shape_detection/android/junit/src/org/chromium/shape_detection/SharedBufferUtilsTest.java View 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (24 generated)
mcasas
scheib@ PTAL
3 years, 7 months ago (2017-05-16 18:16:24 UTC) #11
scheib
LGTM, some thoughts: https://codereview.chromium.org/2863773005/diff/120001/services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java File services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java (right): https://codereview.chromium.org/2863773005/diff/120001/services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java#newcode77 services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java:77: public void testConstruction() { Just testing ...
3 years, 7 months ago (2017-05-17 00:55:39 UTC) #12
mcasas
rockot@ RS plz (will address scheib@ concerns later on)
3 years, 7 months ago (2017-05-17 01:09:43 UTC) #14
Ken Rockot(use gerrit already)
rs lgtm
3 years, 7 months ago (2017-05-17 15:59:14 UTC) #15
mcasas
https://codereview.chromium.org/2863773005/diff/120001/services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java File services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java (right): https://codereview.chromium.org/2863773005/diff/120001/services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java#newcode77 services/shape_detection/android/junit/src/org/chromium/shape_detection/FaceDetectionImplTest.java:77: public void testConstruction() { On 2017/05/17 00:55:39, scheib wrote: ...
3 years, 7 months ago (2017-05-17 16:54:03 UTC) #16
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/2863773005/160001
3 years, 7 months ago (2017-05-17 19:05:28 UTC) #23
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/2863773005/180001
3 years, 7 months ago (2017-05-17 20:11:38 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/217583)
3 years, 7 months ago (2017-05-17 21:07:45 UTC) #29
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/2863773005/180001
3 years, 7 months ago (2017-05-17 21:13:42 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:180001) as https://chromium.googlesource.com/chromium/src/+/5bd36b1f586432d4b127d956a4b3c355e19a9f3d
3 years, 7 months ago (2017-05-18 05:16:06 UTC) #34
Marc Treib
3 years, 7 months ago (2017-05-18 09:05:40 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:180001) has been created in
https://codereview.chromium.org/2886943008/ by treib@chromium.org.

The reason for reverting is: The news tests are flaky, they've failed in 3 out
of 4 runs right now:
https://build.chromium.org/p/chromium.linux/builders/Android%20Tests.

Powered by Google App Engine
This is Rietveld 408576698