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

Issue 2419273002: Shape Detection: Add two content browser tests for face detection (Closed)

Created:
4 years, 2 months ago by xianglu
Modified:
4 years, 2 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

This CL adds two content browser tests for face detection. It also includes a single-face image for testing. BUG=646083 TEST=content/test/data/media/face_detection_test.html Committed: https://crrev.com/6ba9555c974b3d4c458fa8921b7ac5f681bc145c Cr-Commit-Position: refs/heads/master@{#426653}

Patch Set 1 : Two browsertests for zero-face-photo and one-face-photo #

Total comments: 1

Patch Set 2 : reillyg@ comments #

Total comments: 19

Patch Set 3 : Approximate comparisons #

Total comments: 11

Patch Set 4 : mcasas@ and reillyg@ comments #

Total comments: 2

Patch Set 5 : Move MAYBE_ to the test fixture class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -0 lines) Patch
A content/browser/shapedetection/shapedetection_browsertest.cc View 1 2 3 4 1 chunk +89 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/media/face_detection_test.html View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A content/test/data/single_face.jpg View 1 Binary file 0 comments Download

Messages

Total messages: 51 (35 generated)
xianglu
ptal.
4 years, 2 months ago (2016-10-18 00:16:46 UTC) #8
xianglu
ptal.
4 years, 2 months ago (2016-10-18 00:18:06 UTC) #10
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2419273002/diff/40001/content/browser/shapedetection/shapedetection_browsertest.cc File content/browser/shapedetection/shapedetection_browsertest.cc (right): https://codereview.chromium.org/2419273002/diff/40001/content/browser/shapedetection/shapedetection_browsertest.cc#newcode15 content/browser/shapedetection/shapedetection_browsertest.cc:15: const char faceDetectionTestHtml[] = "/media/face_detection_test.html"; kFaceDetectionTestHtml
4 years, 2 months ago (2016-10-18 00:28:14 UTC) #11
xianglu
ptal.
4 years, 2 months ago (2016-10-18 20:58:52 UTC) #17
mcasas
looking good, I have a bunch of small comments. https://codereview.chromium.org/2419273002/diff/60001/content/browser/shapedetection/shapedetection_browsertest.cc File content/browser/shapedetection/shapedetection_browsertest.cc (right): https://codereview.chromium.org/2419273002/diff/60001/content/browser/shapedetection/shapedetection_browsertest.cc#newcode20 content/browser/shapedetection/shapedetection_browsertest.cc:20: ...
4 years, 2 months ago (2016-10-18 23:15:14 UTC) #21
xianglu
mcasas@ ptal. https://codereview.chromium.org/2419273002/diff/60001/content/browser/shapedetection/shapedetection_browsertest.cc File content/browser/shapedetection/shapedetection_browsertest.cc (right): https://codereview.chromium.org/2419273002/diff/60001/content/browser/shapedetection/shapedetection_browsertest.cc#newcode20 content/browser/shapedetection/shapedetection_browsertest.cc:20: // allows for generating bounding boxes of ...
4 years, 2 months ago (2016-10-19 23:26:10 UTC) #24
mcasas
Couple of nits. https://codereview.chromium.org/2419273002/diff/60001/content/test/data/media/face_detection_test.html File content/test/data/media/face_detection_test.html (right): https://codereview.chromium.org/2419273002/diff/60001/content/test/data/media/face_detection_test.html#newcode13 content/test/data/media/face_detection_test.html:13: function detectFacesOnImageUrl(url) { On 2016/10/19 23:26:10, ...
4 years, 2 months ago (2016-10-19 23:41:11 UTC) #25
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2419273002/diff/80001/content/browser/shapedetection/shapedetection_browsertest.cc File content/browser/shapedetection/shapedetection_browsertest.cc (right): https://codereview.chromium.org/2419273002/diff/80001/content/browser/shapedetection/shapedetection_browsertest.cc#newcode73 content/browser/shapedetection/shapedetection_browsertest.cc:73: EXPECT_FLOAT_EQ(expected_result[pram_idx], result[pram_idx]); Tip: Add << " at index " ...
4 years, 2 months ago (2016-10-19 23:48:40 UTC) #26
xianglu
ptal:) https://codereview.chromium.org/2419273002/diff/80001/content/browser/shapedetection/shapedetection_browsertest.cc File content/browser/shapedetection/shapedetection_browsertest.cc (right): https://codereview.chromium.org/2419273002/diff/80001/content/browser/shapedetection/shapedetection_browsertest.cc#newcode62 content/browser/shapedetection/shapedetection_browsertest.cc:62: } On 2016/10/19 23:41:11, mcasas wrote: > nit: ...
4 years, 2 months ago (2016-10-20 17:58:48 UTC) #34
mcasas
lgtm with a nit. https://codereview.chromium.org/2419273002/diff/120001/content/browser/shapedetection/shapedetection_browsertest.cc File content/browser/shapedetection/shapedetection_browsertest.cc (right): https://codereview.chromium.org/2419273002/diff/120001/content/browser/shapedetection/shapedetection_browsertest.cc#newcode86 content/browser/shapedetection/shapedetection_browsertest.cc:86: 171.5625}; Nit: indent. (run `git ...
4 years, 2 months ago (2016-10-20 18:27:40 UTC) #35
Reilly Grant (use Gerrit)
lgtm
4 years, 2 months ago (2016-10-20 20:53:18 UTC) #38
xianglu
nick@ RS ptal.
4 years, 2 months ago (2016-10-20 21:01:51 UTC) #40
ncarter (slow)
lgtm with one idea. https://codereview.chromium.org/2419273002/diff/120001/content/browser/shapedetection/shapedetection_browsertest.cc File content/browser/shapedetection/shapedetection_browsertest.cc (right): https://codereview.chromium.org/2419273002/diff/120001/content/browser/shapedetection/shapedetection_browsertest.cc#newcode20 content/browser/shapedetection/shapedetection_browsertest.cc:20: #define MAYBE_DetectFacesOnImageWithOneFace DISABLED_DetectFacesOnImageWithOneFace Might be ...
4 years, 2 months ago (2016-10-20 21:39:32 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/2419273002/140001
4 years, 2 months ago (2016-10-20 22:28:09 UTC) #47
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 2 months ago (2016-10-20 23:57:20 UTC) #49
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:24:46 UTC) #51
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6ba9555c974b3d4c458fa8921b7ac5f681bc145c
Cr-Commit-Position: refs/heads/master@{#426653}

Powered by Google App Engine
This is Rietveld 408576698