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

Issue 2271543002: Port context_lost test to new GpuIntegrationTest harness. (Closed)

Created:
4 years, 4 months ago by Ken Russell (switch to Gerrit)
Modified:
4 years, 4 months ago
Reviewers:
nednguyen, eyaich1
CC:
chromium-reviews, jam, darin-cc_chromium.org, piman+watch_chromium.org, Zhenyao Mo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Port context_lost test to new GpuIntegrationTest harness. The main trick here is to get hand-written tests to trampoline through the _RunGpuTest harness, which is where test expectations are implemented. This is done by adopting a convention that the "real" test, like "_GPUProcessCrashesExactlyOnce", is prefixed with an underscore. This is implemented in self-contained fashion in ContextLostIntegrationTest.GenerateGpuTests. If necessary, this will be generalized further into a base class. The waterfalls will be switched to run the new version of the test in a follow-on CL. BUG=352807 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/3aa872b6d1efcc9938ee8e4a205634fc3e9c7918 Cr-Commit-Position: refs/heads/master@{#414279}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressed review feedback from eyaich. #

Total comments: 10

Patch Set 3 : More refactorings suggested by eyaich. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -1 line) Patch
A content/test/gpu/gpu_tests/context_lost_integration_test.py View 1 2 1 chunk +252 lines, -0 lines 0 comments Download
M content/test/gpu/gpu_tests/gpu_integration_test.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (9 generated)
Ken Russell (switch to Gerrit)
Ned, Emily: please review. Thanks. Sorry for this taking so long, but it was difficult ...
4 years, 4 months ago (2016-08-23 02:59:17 UTC) #3
eyaich1
I took a first pass of it, I would like to look closer at context_lost.py ...
4 years, 4 months ago (2016-08-24 01:28:46 UTC) #8
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2271543002/diff/1/content/test/gpu/gpu_tests/context_lost_integration_test.py File content/test/gpu/gpu_tests/context_lost_integration_test.py (right): https://codereview.chromium.org/2271543002/diff/1/content/test/gpu/gpu_tests/context_lost_integration_test.py#newcode34 content/test/gpu/gpu_tests/context_lost_integration_test.py:34: domAutomationController._succeeded = true; On 2016/08/24 01:28:46, eyaich1 wrote: > ...
4 years, 4 months ago (2016-08-24 01:50:25 UTC) #9
eyaich1
lgtm https://codereview.chromium.org/2271543002/diff/20001/content/test/gpu/gpu_tests/context_lost_integration_test.py File content/test/gpu/gpu_tests/context_lost_integration_test.py (right): https://codereview.chromium.org/2271543002/diff/20001/content/test/gpu/gpu_tests/context_lost_integration_test.py#newcode220 content/test/gpu/gpu_tests/context_lost_integration_test.py:220: tab = self.tab remove this line, done in ...
4 years, 4 months ago (2016-08-24 13:28:53 UTC) #10
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2271543002/diff/20001/content/test/gpu/gpu_tests/context_lost_integration_test.py File content/test/gpu/gpu_tests/context_lost_integration_test.py (right): https://codereview.chromium.org/2271543002/diff/20001/content/test/gpu/gpu_tests/context_lost_integration_test.py#newcode220 content/test/gpu/gpu_tests/context_lost_integration_test.py:220: tab = self.tab On 2016/08/24 13:28:53, eyaich1 wrote: > ...
4 years, 4 months ago (2016-08-25 01:41:01 UTC) #11
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/2271543002/40001
4 years, 4 months ago (2016-08-25 01:42:10 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-25 02:57:25 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-25 03:00:58 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3aa872b6d1efcc9938ee8e4a205634fc3e9c7918
Cr-Commit-Position: refs/heads/master@{#414279}

Powered by Google App Engine
This is Rietveld 408576698