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

Issue 2645733003: Remove STACK_ALLOCATED() from ScopedTestingPlatformSupport (Closed)

Created:
3 years, 11 months ago by Takashi Toyoshima
Modified:
3 years, 11 months ago
Reviewers:
kinuko, haraken
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, sof, eae+blinkwatch, hongchan, blink-reviews-dom_chromium.org, dglazkov+blink, darktears, blink-reviews, kinuko+watch, Eric Willigers, Raymond Toy, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove STACK_ALLOCATED() from ScopedTestingPlatformSupport Since I have seen some use cases where it's beneficial to have ScopedTestingPlatformSupport as a member variable, let's make ScopedTestingPlatformSupport available as a member variable. It's usual that tests need to initialize something after the mocked platform is registered. If we could have the ScopedTestingPlatformSupport as a member, we can have such initialization code in testing::Test::SetUp(). This can remove many boilerplate code from each test definition. Also, some tests need to have a helper methods that access to the ScopedTestingPlatformSupport. In such case, having it as a member makes code much simple. BUG=655920 TEST=webkit_unit_tests TBR=hongchan@chromium.org Review-Url: https://codereview.chromium.org/2645733003 Cr-Commit-Position: refs/heads/master@{#444683} Committed: https://chromium.googlesource.com/chromium/src/+/e13f57fbda95f7260cdfb7c7610fcdeeb36e1991

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -335 lines) Patch
M third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp View 13 chunks +23 lines, -66 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp View 4 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 4 chunks +1 line, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp View 9 chunks +1 line, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/TimerTest.cpp View 27 chunks +83 lines, -244 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (9 generated)
Takashi Toyoshima
Kinuko, can you take a look?
3 years, 11 months ago (2017-01-19 05:28:54 UTC) #5
kinuko
lgtm
3 years, 11 months ago (2017-01-19 05:30:40 UTC) #6
haraken
LGTM, nice.
3 years, 11 months ago (2017-01-19 06:37:16 UTC) #7
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/2645733003/1
3 years, 11 months ago (2017-01-19 08:29:03 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 08:33:54 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e13f57fbda95f7260cdfb7c7610f...

Powered by Google App Engine
This is Rietveld 408576698