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

Issue 1164753004: Tidy up CompositorWorkerManager unit tests. (Closed)

Created:
5 years, 6 months ago by sof
Modified:
5 years, 6 months ago
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, kinuko+worker_chromium.org, horo+watch_chromium.org, kinuko+fileapi
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Tidy up CompositorWorkerManager unit tests. Allow WorkerGlobalScopes to be created without a non-null WorkerClients; the creation context for the new worker may not offer any 'clients', hence supplying none (rather than an empty one) is simpler. It also avoids creating a cross-thread heap object with Oilpan enabled. To solidify the CompositorWorkerManagerTest's WorkerObjectProxy handling, provide a test implementation of WorkerObjectProxy which do not forward any of the notifications out of the worker context, but ignores. All that is needed for these tests. R=haraken,kinuko BUG=436932 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196949

Patch Set 1 #

Patch Set 2 : compile fix #

Total comments: 13

Patch Set 3 : review improvements #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -27 lines) Patch
M Source/core/workers/WorkerGlobalScope.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/workers/WorkerObjectProxy.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/workers/WorkerObjectProxy.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/workers/WorkerThreadStartupData.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/workers/WorkerThreadTest.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M Source/modules/compositorworker/CompositorWorker.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/compositorworker/CompositorWorkerManagerTest.cpp View 1 5 chunks +30 lines, -3 lines 0 comments Download
M Source/modules/compositorworker/CompositorWorkerMessagingProxy.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/LocalFileSystem.cpp View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp View 1 2 1 chunk +3 lines, -8 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (7 generated)
sof
please take a look. Addresses ToT webkit_unit_tests failures (Oilpan.)
5 years, 6 months ago (2015-06-07 20:32:22 UTC) #2
haraken
LGTM https://codereview.chromium.org/1164753004/diff/20001/Source/core/workers/WorkerThreadTest.cpp File Source/core/workers/WorkerThreadTest.cpp (right): https://codereview.chromium.org/1164753004/diff/20001/Source/core/workers/WorkerThreadTest.cpp#newcode188 Source/core/workers/WorkerThreadTest.cpp:188: clients.release(), Can we just use 'nullptr'? https://codereview.chromium.org/1164753004/diff/20001/Source/modules/compositorworker/CompositorWorkerManagerTest.cpp File ...
5 years, 6 months ago (2015-06-07 23:37:11 UTC) #4
sadrul
Thank you very much taking care of the problem!
5 years, 6 months ago (2015-06-08 02:04:12 UTC) #5
kinuko
Thanks, lgtm with a few nits. The reason the test didn't crash with nullptr WorkerObjectProxy ...
5 years, 6 months ago (2015-06-08 04:36:59 UTC) #6
sof
Thanks for the reviews, landing right away. https://codereview.chromium.org/1164753004/diff/20001/Source/core/workers/WorkerObjectProxy.h File Source/core/workers/WorkerObjectProxy.h (right): https://codereview.chromium.org/1164753004/diff/20001/Source/core/workers/WorkerObjectProxy.h#newcode52 Source/core/workers/WorkerObjectProxy.h:52: // Used ...
5 years, 6 months ago (2015-06-08 08:18:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164753004/40001
5 years, 6 months ago (2015-06-08 08:19:02 UTC) #10
sof
Holding off on this one due to http://crrev.com/1168073002 revert.
5 years, 6 months ago (2015-06-08 08:40:15 UTC) #12
sof
With https://codereview.chromium.org/1158443008 relanding @ r196944, time for this one to follow.
5 years, 6 months ago (2015-06-11 13:23:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164753004/60001
5 years, 6 months ago (2015-06-11 13:23:50 UTC) #16
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 14:17:11 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196949

Powered by Google App Engine
This is Rietveld 408576698