Chromium Code Reviews
DescriptionRemove 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 #
Messages
Total messages: 14 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||