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

Issue 2708923003: Use base::test::ScopedAsyncTaskScheduler in GLImageTest. (Closed)

Created:
3 years, 10 months ago by fdoray
Modified:
3 years, 10 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use base::test::ScopedAsyncTaskScheduler in GLImageTest. GLImageTest registers a TaskScheduler by calling base::test::CreateAndSetSimpleTaskScheduler, but never unregisters it. The second GLImageTest running in fails because there is already a registered TaskScheduler. This CL replaces the call to base::test::CreateAndSetSimpleTaskScheduler with a base::test::ScopedAsyncTaskScheduler member which takes care of registering a TaskScheduler at the beginning of the test and unregistering it at the end of the test. BUG=693203 Review-Url: https://codereview.chromium.org/2708923003 Cr-Commit-Position: refs/heads/master@{#451842} Committed: https://chromium.googlesource.com/chromium/src/+/8a9cc7e7dc99a62392c3a8fd02ac4c3a56415240

Patch Set 1 #

Patch Set 2 : fix build error #

Patch Set 3 : add dependency #

Patch Set 4 : fix dependency #

Patch Set 5 : fix dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -5 lines) Patch
M ui/gl/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/test/gl_image_test_template.h View 1 3 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (28 generated)
fdoray
PTAL
3 years, 10 months ago (2017-02-21 18:13:59 UTC) #20
Daniele Castagna
LGTM, thanks!
3 years, 10 months ago (2017-02-21 18:42:40 UTC) #22
Ken Russell (switch to Gerrit)
Thanks for the fix! LGTM too.
3 years, 10 months ago (2017-02-21 18:50:14 UTC) #26
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/2708923003/80001
3 years, 10 months ago (2017-02-21 19:04:16 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-21 21:06:49 UTC) #30
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/2708923003/80001
3 years, 10 months ago (2017-02-21 21:16:10 UTC) #32
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 21:53:59 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/8a9cc7e7dc99a62392c3a8fd02ac...

Powered by Google App Engine
This is Rietveld 408576698