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

Issue 1780083002: Introduce Platform::setCurrentPlatformForTesting (Closed)

Created:
4 years, 9 months ago by haraken
Modified:
4 years, 9 months ago
Reviewers:
tkent, sof
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce Platform::setCurrentPlatformForTesting In preparation for cleaning up the initialization/shutdown logic of Blink, I need to make Platfrom::initialize() and Platform::shutdown() are balanced (i.e., Platfrom::initialize() and Platform::shutdown() should be called only once respectively.) Currently TestingPlatformSupport violates the contract (i.e., it calls Platfrom::initialize() multiple times). This CL introduces Platform::setCurrentPlatformForTesting and makes sure that Platfrom::initialize() is called only once. BUG=593269 Committed: https://crrev.com/1ec0cea30571de24eb8cc243c867ed346a9205ad Cr-Commit-Position: refs/heads/master@{#380370}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -17 lines) Patch
M third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/Platform.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/RunAllTests.cpp View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
haraken
PTAL
4 years, 9 months ago (2016-03-10 00:18:40 UTC) #2
tkent
Do you need to update ScrollableAreaTest.cpp and CompositorAnimationTestHelper.cpp? https://code.google.com/p/chromium/codesearch#search/&q=Platform%5C:%5C:initialize%20file:WebKit/Source&sq=package:chromium&type=cs
4 years, 9 months ago (2016-03-10 00:24:22 UTC) #3
haraken
On 2016/03/10 00:24:22, tkent wrote: > Do you need to update ScrollableAreaTest.cpp and > CompositorAnimationTestHelper.cpp? ...
4 years, 9 months ago (2016-03-10 00:26:58 UTC) #4
tkent
lgtm
4 years, 9 months ago (2016-03-10 00:32:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1780083002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1780083002/20001
4 years, 9 months ago (2016-03-10 00:36:27 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/194182)
4 years, 9 months ago (2016-03-10 01:54:19 UTC) #9
sof
lgtm https://codereview.chromium.org/1780083002/diff/80001/third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h File third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h (right): https://codereview.chromium.org/1780083002/diff/80001/third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h#newcode140 third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h:140: TestingPlatformSupport m_proxyPlatform; can be removed, i think.
4 years, 9 months ago (2016-03-10 06:09:51 UTC) #10
haraken
> https://codereview.chromium.org/1780083002/diff/80001/third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h > File third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h > (right): > > https://codereview.chromium.org/1780083002/diff/80001/third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h#newcode140 > third_party/WebKit/Source/core/animation/CompositorAnimationsTestHelper.h:140: > TestingPlatformSupport m_proxyPlatform; ...
4 years, 9 months ago (2016-03-10 06:12:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1780083002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1780083002/100001
4 years, 9 months ago (2016-03-10 06:13:03 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-10 07:26:54 UTC) #15
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 07:28:07 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1ec0cea30571de24eb8cc243c867ed346a9205ad
Cr-Commit-Position: refs/heads/master@{#380370}

Powered by Google App Engine
This is Rietveld 408576698