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

Issue 2711893003: Shape detection: moar content_browsertests (face, qr/barcode) (Closed)

Created:
3 years, 10 months ago by mcasas
Modified:
3 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shape detection: moar content_browsertests (face, qr/barcode) In the spirit of "if it can be tested, it ought to be tested", this CL cleans up and expands the a few tests related to Shape Detection. - the current content_browsertest, which on ToT is extended to work on Mac and cleaned up (generalized and parameterized, variable names clarified). - the test face is changed to a smaller, public domain one of size 6182B (~1.4K smaller). - Also corrected names: s/shapedetection/shape_detection/ - QR/barcode and text detection in Android is based on coreGMS, so need to be tested under chrome/. A new ShapeDetectionTest.java is added for that. To use coreGMS, we have to guarantee that StrictMode.allowThreadDiskWrites(). BUG=665150, 676124 Review-Url: https://codereview.chromium.org/2711893003 Cr-Commit-Position: refs/heads/master@{#453818} Committed: https://chromium.googlesource.com/chromium/src/+/04e8ca70316308763a6f51d1ee11960819887f7e

Patch Set 1 #

Total comments: 10

Patch Set 2 : reillyg@s comments #

Total comments: 11

Patch Set 3 : mariakhomenko@ comments and follow-up reillyg@s comment #

Patch Set 4 : Make initialization of std::vector<std::vector<float>> explicit to avoid 'error: chosen constructor… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -176 lines) Patch
M chrome/android/java_sources.gni View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java View 1 2 1 chunk +115 lines, -0 lines 0 comments Download
A chrome/test/data/android/barcode_detection.html View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/test/data/android/text_detection.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A + content/browser/shape_detection/shape_detection_browsertest.cc View 1 2 3 1 chunk +65 lines, -40 lines 0 comments Download
M content/browser/shapedetection/shapedetection_browsertest.cc View 1 chunk +0 lines, -93 lines 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
D content/test/data/media/face_detection_test.html View 1 chunk +0 lines, -35 lines 0 comments Download
A + content/test/data/media/shape_detection_test.html View 1 2 chunks +10 lines, -7 lines 0 comments Download
M content/test/data/single_face.jpg View Binary file 0 comments Download

Messages

Total messages: 46 (29 generated)
mcasas
mariakhomenko@ PTAL at the chrome/ android tests reillyg@ PTAL at content/ test changes
3 years, 9 months ago (2017-02-27 23:45:58 UTC) #14
Reilly Grant (use Gerrit)
lgtm with nits https://codereview.chromium.org/2711893003/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java (right): https://codereview.chromium.org/2711893003/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java#newcode25 chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java:25: * Testing of the Shape Detection ...
3 years, 9 months ago (2017-02-28 00:35:11 UTC) #15
mcasas
https://codereview.chromium.org/2711893003/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java (right): https://codereview.chromium.org/2711893003/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java#newcode25 chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java:25: * Testing of the Shape Detection API. This API ...
3 years, 9 months ago (2017-02-28 18:10:18 UTC) #18
mcasas
https://codereview.chromium.org/2711893003/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java (right): https://codereview.chromium.org/2711893003/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java#newcode25 chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java:25: * Testing of the Shape Detection API. This API ...
3 years, 9 months ago (2017-02-28 18:10:18 UTC) #19
mcasas
Too fast clicking! :-) avi@ please RS cnotent/ changes mariakhomenko@ ping PTAL
3 years, 9 months ago (2017-02-28 18:11:08 UTC) #20
whywhat
javatests lgtm
3 years, 9 months ago (2017-02-28 18:34:52 UTC) #22
Maria
https://codereview.chromium.org/2711893003/diff/180001/chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java (right): https://codereview.chromium.org/2711893003/diff/180001/chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java#newcode42 chrome/android/javatests/src/org/chromium/chrome/browser/shape_detection/ShapeDetectionTest.java:42: @MediumTest I think this is actually a large test ...
3 years, 9 months ago (2017-02-28 18:40:56 UTC) #23
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2711893003/diff/160001/content/browser/shape_detection/shape_detection_browsertest.cc File content/browser/shape_detection/shape_detection_browsertest.cc (right): https://codereview.chromium.org/2711893003/diff/160001/content/browser/shape_detection/shape_detection_browsertest.cc#newcode75 content/browser/shape_detection/shape_detection_browsertest.cc:75: std::vector<std::vector<float>> detected_bounding_boxes = {}; On 2017/02/28 18:10:18, mcasas wrote: ...
3 years, 9 months ago (2017-02-28 18:49:14 UTC) #24
mcasas
PTAL folks https://codereview.chromium.org/2711893003/diff/160001/content/browser/shape_detection/shape_detection_browsertest.cc File content/browser/shape_detection/shape_detection_browsertest.cc (right): https://codereview.chromium.org/2711893003/diff/160001/content/browser/shape_detection/shape_detection_browsertest.cc#newcode75 content/browser/shape_detection/shape_detection_browsertest.cc:75: std::vector<std::vector<float>> detected_bounding_boxes = {}; On 2017/02/28 18:49:13, ...
3 years, 9 months ago (2017-02-28 21:06:57 UTC) #25
Maria
lgtm for java
3 years, 9 months ago (2017-02-28 22:21:46 UTC) #30
ncarter (slow)
rs lgtm
3 years, 9 months ago (2017-02-28 23:29:05 UTC) #32
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/2711893003/220001
3 years, 9 months ago (2017-02-28 23:40:57 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/399740)
3 years, 9 months ago (2017-03-01 00:47:22 UTC) #37
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/2711893003/220001
3 years, 9 months ago (2017-03-01 01:06:53 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/374290)
3 years, 9 months ago (2017-03-01 01:52:49 UTC) #41
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/2711893003/220001
3 years, 9 months ago (2017-03-01 01:59:17 UTC) #43
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 03:20:04 UTC) #46
Message was sent while issue was closed.
Committed patchset #4 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/04e8ca70316308763a6f51d1ee11...

Powered by Google App Engine
This is Rietveld 408576698