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

Issue 2818563006: ShapeDetection: Holding all of mock service to prevent GC (Closed)

Created:
3 years, 8 months ago by junwei
Modified:
3 years, 6 months ago
CC:
blink-reviews, chromium-reviews, Timothy Loh
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ShapeDetection: Make sure tests are running serially There could be more than one MockFaceDetection association with the same MockFaceDetectionProvider, the first mock service is random Gcd in same context, so ensure these tests run serially. BUG=707689 Review-Url: https://codereview.chromium.org/2818563006 Cr-Commit-Position: refs/heads/master@{#475335} Committed: https://chromium.googlesource.com/chromium/src/+/3324464e62044d7d8cfdac18bac1fcb2835cc6ff

Patch Set 1 : ShapeDetection: Enable shapedetection/detection-HTMLCanvasElement.html #

Patch Set 2 : ShapeDetection: Holding the MockFaceDetection to prevent Binding Object to be GCd #

Total comments: 4

Patch Set 3 : ShapeDetection: Holding the MockFaceDetection to prevent Binding Object to be GCd #

Total comments: 1

Patch Set 4 : Retrun buffer data of current FaceDetection #

Total comments: 1

Patch Set 5 : ShapeDetection: Make sure tests are running serially #

Patch Set 6 : ShapeDetection: Make sure tests are running serially #

Total comments: 1

Patch Set 7 : ShapeDetection: Make sure tests are running serially #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -16 lines) Patch
M third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html View 1 2 3 4 5 2 chunks +25 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 59 (28 generated)
junwei
3 years, 8 months ago (2017-04-14 07:37:24 UTC) #3
mcasas
lgtm if rockot@ is happy with it
3 years, 8 months ago (2017-04-14 18:06:35 UTC) #6
Timothy Loh
Thanks for fixing; generally no need to send test fixes to the sheriff who added ...
3 years, 8 months ago (2017-04-18 01:26:06 UTC) #10
Ken Rockot(use gerrit already)
Not LGTM. This definitely does not look correct to me. I've already fixed the bug ...
3 years, 8 months ago (2017-04-18 22:05:15 UTC) #11
junwei
On 2017/04/18 22:05:15, Ken Rockot wrote: > Not LGTM. This definitely does not look correct ...
3 years, 8 months ago (2017-04-19 12:00:53 UTC) #14
junwei
Refined the CL, rockot@ mcasas@ PTAL.
3 years, 7 months ago (2017-05-03 08:31:46 UTC) #19
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2818563006/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js File third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js (right): https://codereview.chromium.org/2818563006/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js#newcode21 third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js:21: this.serviceArray_ = []; nit: how about "mockServiceInstances_" instead of ...
3 years, 7 months ago (2017-05-03 16:48:54 UTC) #20
junwei
On 2017/05/03 16:48:54, Ken Rockot wrote: > https://codereview.chromium.org/2818563006/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > File > third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > (right): > ...
3 years, 7 months ago (2017-05-04 02:44:20 UTC) #21
junwei
> https://codereview.chromium.org/2818563006/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js#newcode34 > third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js:34: > return this.buffer_data_; > nit: While you're here, please fix the ...
3 years, 7 months ago (2017-05-04 02:54:39 UTC) #24
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2818563006/diff/140001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js File third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js (right): https://codereview.chromium.org/2818563006/diff/140001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js#newcode28 third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js:28: getFrameData(index) { It seems index is always 0, so ...
3 years, 7 months ago (2017-05-04 08:22:42 UTC) #25
junwei
On 2017/05/04 08:22:42, Ken Rockot wrote: > https://codereview.chromium.org/2818563006/diff/140001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > File > third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > (right): > ...
3 years, 7 months ago (2017-05-07 13:46:44 UTC) #26
Ken Rockot(use gerrit already)
On May 7, 2017 6:46 AM, <junwei.fu@intel.com> wrote: On 2017/05/04 08:22:42, Ken Rockot wrote: > ...
3 years, 7 months ago (2017-05-07 15:14:48 UTC) #27
Ken Rockot(use gerrit already)
On May 7, 2017 6:46 AM, <junwei.fu@intel.com> wrote: On 2017/05/04 08:22:42, Ken Rockot wrote: > ...
3 years, 7 months ago (2017-05-07 15:14:49 UTC) #28
junwei
On 2017/05/07 15:14:49, Ken Rockot wrote: > On May 7, 2017 6:46 AM, <mailto:junwei.fu@intel.com> wrote: ...
3 years, 7 months ago (2017-05-08 03:13:37 UTC) #29
junwei
Refined the CL, rockot@ PTAL thanks.
3 years, 7 months ago (2017-05-12 01:01:06 UTC) #30
junwei
rockot@ PTAL.
3 years, 7 months ago (2017-05-17 05:52:30 UTC) #32
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2818563006/diff/180001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js File third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js (right): https://codereview.chromium.org/2818563006/diff/180001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js#newcode26 third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js:26: this.index = this.mockServiceInstances_.length -1; You established in your previous ...
3 years, 7 months ago (2017-05-17 15:29:24 UTC) #33
junwei
On 2017/05/17 15:29:24, Ken Rockot wrote: > https://codereview.chromium.org/2818563006/diff/180001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > File > third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > (right): > ...
3 years, 7 months ago (2017-05-18 00:55:33 UTC) #34
Ken Rockot(use gerrit already)
On 2017/05/18 at 00:55:33, junwei.fu wrote: > On 2017/05/17 15:29:24, Ken Rockot wrote: > > ...
3 years, 7 months ago (2017-05-18 01:43:17 UTC) #35
junwei
On 2017/05/18 01:43:17, Ken Rockot(use gerrit already) wrote: > On 2017/05/18 at 00:55:33, junwei.fu wrote: ...
3 years, 7 months ago (2017-05-25 07:16:56 UTC) #36
Ken Rockot(use gerrit already)
As I discovered just recently, you can use promise_test instead of async_test, and this will ...
3 years, 7 months ago (2017-05-27 06:23:52 UTC) #38
junwei
On 2017/05/27 06:23:52, Ken Rockot(use gerrit already) wrote: > As I discovered just recently, you ...
3 years, 7 months ago (2017-05-27 07:37:00 UTC) #39
Ken Rockot(use gerrit already)
On 2017/05/27 at 07:37:00, junwei.fu wrote: > On 2017/05/27 06:23:52, Ken Rockot(use gerrit already) wrote: ...
3 years, 7 months ago (2017-05-27 07:52:01 UTC) #40
junwei
On 2017/05/27 07:52:01, Ken Rockot(use gerrit already) wrote: > On 2017/05/27 at 07:37:00, junwei.fu wrote: ...
3 years, 7 months ago (2017-05-27 08:13:21 UTC) #41
Ken Rockot(use gerrit already)
Quoting from that link: Unlike Asynchronous Tests, Promise Tests don’t start running until after the ...
3 years, 6 months ago (2017-05-27 16:45:51 UTC) #42
Ken Rockot(use gerrit already)
Quoting from that link: Unlike Asynchronous Tests, Promise Tests don’t start running until after the ...
3 years, 6 months ago (2017-05-27 16:45:53 UTC) #43
junwei
On 2017/05/27 16:45:53, Ken Rockot(use gerrit already) wrote: > Quoting from that link: > > ...
3 years, 6 months ago (2017-05-29 05:43:46 UTC) #44
Ken Rockot(use gerrit already)
Tentatively LGTM if the tests pass. Thanks and sorry about the need for all the ...
3 years, 6 months ago (2017-05-29 06:12:55 UTC) #45
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/2818563006/260001
3 years, 6 months ago (2017-05-29 11:05:42 UTC) #55
commit-bot: I haz the power
Committed patchset #7 (id:260001) as https://chromium.googlesource.com/chromium/src/+/3324464e62044d7d8cfdac18bac1fcb2835cc6ff
3 years, 6 months ago (2017-05-29 11:10:07 UTC) #58
junwei
3 years, 6 months ago (2017-05-29 11:13:58 UTC) #59
Message was sent while issue was closed.
On 2017/05/29 06:12:55, Ken Rockot(use gerrit already) wrote:
> Tentatively LGTM if the tests pass. Thanks and sorry about the need for all
the
> back-and-forth.
> 
> This can be simplified further once we have the new bindings ready for use
(very
> soon).
I'm pleasure to do anythings, please let me know if you need.

>
https://codereview.chromium.org/2818563006/diff/220001/third_party/WebKit/Lay...
> File
> third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js
> (right):
> 
>
https://codereview.chromium.org/2818563006/diff/220001/third_party/WebKit/Lay...
>
third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js:23:
> this.mock_service_ = new MockFaceDetection(request, options);
> nit: mockService_?
Done.

Powered by Google App Engine
This is Rietveld 408576698