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

Issue 8395043: Fix up compositor mocking. (Closed)

Created:
9 years, 1 month ago by jonathan.backer
Modified:
9 years, 1 month ago
Reviewers:
sky, piman
CC:
chromium-reviews, jonathan.backer, Ian Vollick, tfarina, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., piman+watch_chromium.org, dhollowa
Visibility:
Public.

Description

Fix up compositor mocking. Two changes: a) detangle the mock compositor from compositor_test_support a) pull in compositor when using a mock compositor Rationale: a) this target was meant to support using use_webkit_compositor=1 when WK isn't initialized; sometimes we will want to use the mock compositor when WK is initialized b) we can imagine scenarios where we want to switch between mock and real compositors in the same executable, and it's one less target to update BUG=101477 TEST=bots stay green Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107563 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=107564 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107574

Patch Set 1 #

Patch Set 2 : "" #

Total comments: 6

Patch Set 3 : "" #

Patch Set 4 : Only depend on compositor as necessary. #

Patch Set 5 : Only depend on compositor as necessary. #

Patch Set 6 : Deeper down the rabbit hole. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -61 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/chrome_test_suite.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_plugin.gypi View 1 chunk +7 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/test/content_test_suite.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 5 4 chunks +3 lines, -5 lines 0 comments Download
M ui/aura/demo/demo_main.cc View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M ui/aura/test/test_suite.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ui/aura_shell/aura_shell.gyp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/aura_shell/test_suite.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ui/gfx/compositor/compositor.gyp View 1 2 3 4 5 5 chunks +26 lines, -18 lines 0 comments Download
M ui/gfx/compositor/compositor_test_support.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/gfx/compositor/compositor_test_support.cc View 2 chunks +0 lines, -20 lines 0 comments Download
A ui/gfx/test/gfx_test_utils.h View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A ui/gfx/test/gfx_test_utils.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M views/run_all_unittests.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M views/views.gyp View 1 2 3 4 5 2 chunks +1 line, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jonathan.backer
9 years, 1 month ago (2011-10-26 14:50:08 UTC) #1
sky
http://codereview.chromium.org/8395043/diff/2002/ui/aura/test/test_suite.cc File ui/aura/test/test_suite.cc (right): http://codereview.chromium.org/8395043/diff/2002/ui/aura/test/test_suite.cc#newcode33 ui/aura/test/test_suite.cc:33: ui::TestCompositor::SetupTestCompositor(); It is possible to only have one initialize/setup ...
9 years, 1 month ago (2011-10-26 15:36:14 UTC) #2
jonathan.backer
http://codereview.chromium.org/8395043/diff/2002/ui/aura/test/test_suite.cc File ui/aura/test/test_suite.cc (right): http://codereview.chromium.org/8395043/diff/2002/ui/aura/test/test_suite.cc#newcode33 ui/aura/test/test_suite.cc:33: ui::TestCompositor::SetupTestCompositor(); On 2011/10/26 15:36:15, sky wrote: > It is ...
9 years, 1 month ago (2011-10-26 15:58:33 UTC) #3
sky
On Wed, Oct 26, 2011 at 8:58 AM, <backer@chromium.org> wrote: > > http://codereview.chromium.org/8395043/diff/2002/ui/aura/test/test_suite.cc > File ...
9 years, 1 month ago (2011-10-26 16:17:35 UTC) #4
piman
LGTM. thanks for the cleanup.
9 years, 1 month ago (2011-10-26 16:46:52 UTC) #5
jonathan.backer
Addressing reviewer comments.
9 years, 1 month ago (2011-10-26 17:58:05 UTC) #6
piman
lgtm http://codereview.chromium.org/8395043/diff/2002/ui/aura/aura.gyp File ui/aura/aura.gyp (right): http://codereview.chromium.org/8395043/diff/2002/ui/aura/aura.gyp#newcode1 ui/aura/aura.gyp:1: # Copyright (c) 2011 The Chromium Authors. All ...
9 years, 1 month ago (2011-10-26 18:24:09 UTC) #7
jonathan.backer
One last time (fingers crossed). We've got three targets: - compositor - compositor_test_support - test_compositor ...
9 years, 1 month ago (2011-10-26 21:31:01 UTC) #8
sky
9 years, 1 month ago (2011-10-26 21:40:46 UTC) #9
LGTM I hope this one passes.

Powered by Google App Engine
This is Rietveld 408576698