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

Issue 8805033: Makes tests either use mock compositor or mock WebGraphicsContext3D (Closed)

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

Description

Makes tests either use mock compositor or mock WebGraphicsContext3D depending upon which compositor we're running. This is needed to enable ui tests on the bots. BUG=104360 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113470

Patch Set 1 #

Patch Set 2 : Tweaks #

Total comments: 1

Patch Set 3 : Make work with both compositors #

Patch Set 4 : Tweaks #

Total comments: 4

Patch Set 5 : Incorporate review feedback and tweaks for win_aura #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -35 lines) Patch
M build/all.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_aura.cc View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_test_suite.cc View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M content/test/content_test_suite.cc View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 4 chunks +16 lines, -2 lines 0 comments Download
M ui/aura/test/test_suite.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M ui/aura_shell/aura_shell.gyp View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M ui/aura_shell/test_suite.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M ui/gfx/compositor/compositor.gyp View 1 2 3 4 chunks +7 lines, -1 line 0 comments Download
M ui/gfx/compositor/compositor_cc.h View 2 chunks +0 lines, -7 lines 0 comments Download
M ui/gfx/compositor/compositor_cc.cc View 1 2 3 5 chunks +17 lines, -10 lines 0 comments Download
A ui/gfx/compositor/compositor_setup.h View 1 chunk +28 lines, -0 lines 0 comments Download
M ui/gfx/compositor/compositor_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/compositor/compositor_switches.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/compositor/layer_unittest.cc View 1 2 5 chunks +18 lines, -6 lines 0 comments Download
M ui/views/run_all_unittests.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M ui/views/views.gyp View 1 2 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
sky
This isn't ready for review yet as it's gated by enabling the WebKit compositor, but ...
9 years ago (2011-12-06 01:25:41 UTC) #1
jonathan.backer
On 2011/12/06 01:25:41, sky wrote: > This isn't ready for review yet as it's gated ...
9 years ago (2011-12-06 14:06:28 UTC) #2
jonathan.backer
http://codereview.chromium.org/8805033/diff/2001/chrome/common/chrome_switches.h File chrome/common/chrome_switches.h (right): http://codereview.chromium.org/8805033/diff/2001/chrome/common/chrome_switches.h#newcode378 chrome/common/chrome_switches.h:378: extern const char kTestCompositor[]; I think that we've been ...
9 years ago (2011-12-06 14:06:43 UTC) #3
sky
GAH! I assumed we were nuking it all. I'll get this to work with both ...
9 years ago (2011-12-06 19:12:20 UTC) #4
sky
On Tue, Dec 6, 2011 at 6:06 AM, <backer@chromium.org> wrote: > > http://codereview.chromium.org/8805033/diff/2001/chrome/common/chrome_switches.h > File ...
9 years ago (2011-12-06 19:12:44 UTC) #5
sky
Updated so that ui_tests work with either compositor. I went with #ifdefs every where as ...
9 years ago (2011-12-06 23:04:08 UTC) #6
jonathan.backer
Just nits. LGTM. http://codereview.chromium.org/8805033/diff/9025/content/content_tests.gypi File content/content_tests.gypi (right): http://codereview.chromium.org/8805033/diff/9025/content/content_tests.gypi#newcode123 content/content_tests.gypi:123: ['views_compositor==1 and use_webkit_compositor==1', { why views_compositor==1? ...
9 years ago (2011-12-07 16:57:20 UTC) #7
sky
Thanks. I incorporated all feedback except the following. http://codereview.chromium.org/8805033/diff/9025/ui/gfx/compositor/compositor_setup.h File ui/gfx/compositor/compositor_setup.h (right): http://codereview.chromium.org/8805033/diff/9025/ui/gfx/compositor/compositor_setup.h#newcode23 ui/gfx/compositor/compositor_setup.h:23: COMPOSITOR_EXPORT ...
9 years ago (2011-12-07 17:18:05 UTC) #8
Ben Goodger (Google)
9 years ago (2011-12-07 17:21:14 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698