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

Issue 2869333002: Initialize test configuration to a default value. (Closed)

Created:
3 years, 7 months ago by Jia
Modified:
3 years, 7 months ago
Reviewers:
Sam McNally, Mike West
CC:
chromium-reviews, darin-cc_chromium.org, einbinder+watch-test-runner_chromium.org, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize test configuration to a default value. BlinkTestRunner::OnSetTestConfiguration should be called to init test_config_ before any method using test_config_ is run. However, this is not always enforced by the test runner/controller as discovered by clusterfuzz (see bug below). Hence this cl initializes test_config_ to a default value to ensure it is never a null ptr. BUG=714028 Review-Url: https://codereview.chromium.org/2869333002 Cr-Commit-Position: refs/heads/master@{#470913} Committed: https://chromium.googlesource.com/chromium/src/+/4d916411aa57de16c95e693cf9dd33d7e3bf65ee

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add a comment to explain with default value of test_config's enable_pixel_dumping is true. #

Patch Set 3 : Change default value of enable_pixel_dumping to true. #

Patch Set 4 : Run cl format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M content/shell/common/layout_test.mojom View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (25 generated)
Jia
3 years, 7 months ago (2017-05-10 05:44:06 UTC) #5
Sam McNally
LGTM. Please format your description to fit in 72 columns, starting with a one-line summary ...
3 years, 7 months ago (2017-05-10 07:55:45 UTC) #10
Jia
Thanks a lot! All done. PTAL. https://codereview.chromium.org/2869333002/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2869333002/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc#newcode259 content/shell/renderer/layout_test/blink_test_runner.cc:259: test_config_->enable_pixel_dumping = true; ...
3 years, 7 months ago (2017-05-10 22:55:29 UTC) #15
Sam McNally
https://codereview.chromium.org/2869333002/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2869333002/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc#newcode259 content/shell/renderer/layout_test/blink_test_runner.cc:259: test_config_->enable_pixel_dumping = true; On 2017/05/10 22:55:29, Jia wrote: > ...
3 years, 7 months ago (2017-05-10 23:37:13 UTC) #17
Jia
https://codereview.chromium.org/2869333002/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2869333002/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc#newcode259 content/shell/renderer/layout_test/blink_test_runner.cc:259: test_config_->enable_pixel_dumping = true; On 2017/05/10 23:37:13, Sam McNally wrote: ...
3 years, 7 months ago (2017-05-11 00:42:02 UTC) #18
Jia
Since we set the default value in the mojom file, we won't need the override ...
3 years, 7 months ago (2017-05-11 00:46:19 UTC) #19
Sam McNally
lgtm
3 years, 7 months ago (2017-05-11 00:55:25 UTC) #22
Jia
mkwst@chromium.org: Please review changes in
3 years, 7 months ago (2017-05-11 01:20:07 UTC) #24
Mike West
LGTM.
3 years, 7 months ago (2017-05-11 07:47:11 UTC) #31
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/2869333002/60001
3 years, 7 months ago (2017-05-11 10:51:19 UTC) #33
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 10:56:29 UTC) #36
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/4d916411aa57de16c95e693cf9dd...

Powered by Google App Engine
This is Rietveld 408576698