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

Issue 1130433002: Adding task runner/ message loop to tests that use IsolateHolder. (Closed)

Created:
5 years, 7 months ago by ssid
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding task runner/ message loop to tests that use IsolateHolder. For adding v8 heap memory dump provider, the gin::IsolateHolder needs to have a task runner at initialization. The tests which don't initiallize task runner when initialization are changed in this CL to have either the message loop initializaed earlier or a dummy task runner. Refer crrev.com/1088683003 for the dump provider. BUG=476013 Committed: https://crrev.com/54d19441b064ae06604c6a26c3863a091a8bb8bb Cr-Commit-Position: refs/heads/master@{#328531}

Patch Set 1 #

Patch Set 2 : #

Total comments: 20

Patch Set 3 : Addressed comments. #

Total comments: 1

Patch Set 4 : Removing comment. #

Patch Set 5 : Fixing mac build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -15 lines) Patch
M content/test/test_blink_web_unit_test_support.cc View 1 2 3 3 chunks +50 lines, -0 lines 0 comments Download
M gin/converter_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M gin/modules/module_registry_unittest.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M gin/modules/timer_unittest.cc View 1 2 6 chunks +11 lines, -11 lines 0 comments Download
M gin/shell_runner_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M gin/test/v8_test.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
ssid
PTAL, fixing the tests.
5 years, 7 months ago (2015-05-05 10:19:47 UTC) #2
Sami
Thanks, some comments below. https://codereview.chromium.org/1130433002/diff/20001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): https://codereview.chromium.org/1130433002/diff/20001/content/test/test_blink_web_unit_test_support.cc#newcode10 content/test/test_blink_web_unit_test_support.cc:10: #include "base/message_loop/message_loop.h" Do you need ...
5 years, 7 months ago (2015-05-05 13:55:54 UTC) #3
Primiano Tucci (use gerrit)
Just some another couple of comments on top of Sami's ones. https://codereview.chromium.org/1130433002/diff/20001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): ...
5 years, 7 months ago (2015-05-05 14:26:51 UTC) #4
Sami
https://codereview.chromium.org/1130433002/diff/20001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): https://codereview.chromium.org/1130433002/diff/20001/content/test/test_blink_web_unit_test_support.cc#newcode111 content/test/test_blink_web_unit_test_support.cc:111: if (dummy_task_runner.get()) { On 2015/05/05 14:26:51, Primiano Tucci wrote: ...
5 years, 7 months ago (2015-05-05 14:35:46 UTC) #5
Sami
https://codereview.chromium.org/1130433002/diff/20001/gin/test/v8_test.h File gin/test/v8_test.h (right): https://codereview.chromium.org/1130433002/diff/20001/gin/test/v8_test.h#newcode32 gin/test/v8_test.h:32: base::MessageLoop message_loop; Please move this first since I'm guess ...
5 years, 7 months ago (2015-05-05 15:10:26 UTC) #6
ssid
Made changes, PTAL. https://codereview.chromium.org/1130433002/diff/20001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): https://codereview.chromium.org/1130433002/diff/20001/content/test/test_blink_web_unit_test_support.cc#newcode10 content/test/test_blink_web_unit_test_support.cc:10: #include "base/message_loop/message_loop.h" On 2015/05/05 13:55:54, Sami ...
5 years, 7 months ago (2015-05-05 16:00:06 UTC) #7
Primiano Tucci (use gerrit)
Non-owner LGTM. +jochen
5 years, 7 months ago (2015-05-05 16:08:36 UTC) #9
Sami
Thanks, lgtm with a nit. https://codereview.chromium.org/1130433002/diff/40001/content/test/test_blink_web_unit_test_support.cc File content/test/test_blink_web_unit_test_support.cc (right): https://codereview.chromium.org/1130433002/diff/40001/content/test/test_blink_web_unit_test_support.cc#newcode67 content/test/test_blink_web_unit_test_support.cc:67: // Always returns true ...
5 years, 7 months ago (2015-05-05 17:12:30 UTC) #10
jochen (gone - plz use gerrit)
lgtm
5 years, 7 months ago (2015-05-06 12:47:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130433002/60001
5 years, 7 months ago (2015-05-06 13:09:46 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-06 14:42:14 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/54d19441b064ae06604c6a26c3863a091a8bb8bb Cr-Commit-Position: refs/heads/master@{#328531}
5 years, 7 months ago (2015-05-06 14:43:50 UTC) #16
jochen (gone - plz use gerrit)
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1129863002/ by jochen@chromium.org. ...
5 years, 7 months ago (2015-05-06 15:09:06 UTC) #17
Primiano Tucci (use gerrit)
On 2015/05/06 15:09:06, jochen wrote: > A revert of this CL (patchset #4 id:60001) has ...
5 years, 7 months ago (2015-05-06 17:17:22 UTC) #18
ssid
On 2015/05/06 17:17:22, Primiano Tucci wrote: > On 2015/05/06 15:09:06, jochen wrote: > > A ...
5 years, 7 months ago (2015-05-06 18:41:14 UTC) #19
Primiano Tucci (use gerrit)
> Moved the using statements, PTAL. We don't re-use the same CL issue for multiple ...
5 years, 7 months ago (2015-05-07 08:22:16 UTC) #20
ssid
On 2015/05/07 08:22:16, Primiano Tucci wrote: > > Moved the using statements, PTAL. > > ...
5 years, 7 months ago (2015-05-07 08:38:02 UTC) #21
Primiano Tucci (use gerrit)
> Sami told me I could use the same cl, so I reopened this. There ...
5 years, 7 months ago (2015-05-07 09:21:28 UTC) #22
Sami
5 years, 7 months ago (2015-05-07 13:26:22 UTC) #23
Message was sent while issue was closed.
On 2015/05/07 09:21:28, Primiano Tucci wrote:
> > Sami told me I could use the same cl, so I reopened this.
> 
> There was some prior discussion on chromium-dev in [1] and [2]
> 
> The short version is that is not forbidden to recycle the CL, but might be
> tricky to get it right. Starting a new CL is IMHO, conceptually, simpler.
> 
> [1]
>
https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/reusin...
> [2]
>
https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/reusin...

My feeling is that reusing CLs is better because it shows you the history of a
patch more easily. But, as was also apparent in the linked thread, people have
different opinions and both ways are acceptable.

Powered by Google App Engine
This is Rietveld 408576698