|
Move test-only ContextFactory implementations out of production targets
This moves (Test|Default)ContextFactory and associated setup out of the
production compositor target into the test-only compositor_test_support library.
This removes the need for us to link in fake/mock classes into the prod build
and cleans up several pieces of confusing static state. Code that wants to use
one of the test ContextFactory implementations now has to call either
ui::InitializeContextFactoryForTests() or, if it's depending on content and
using aura, content::ImageTransportFactory::InitializeForUnitTests() and pass
in a ContextFactory implementation. Content-based tests get the latter for free
through content::BrowserTestBase.
R=piman,sky
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231867
Total comments: 2
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+424 lines, -342 lines) |
Patch |
 |
M |
ash/test/ash_test_helper.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_shell_delegate.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/notifications/desktop_notifications_unittest.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/view_event_test_base.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/aura/image_transport_factory.h
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/aura/image_transport_factory.cc
|
View
|
|
2 chunks |
+12 lines, -35 lines |
0 comments
|
Download
|
 |
M |
content/browser/aura/no_transport_image_transport_factory.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/aura/no_transport_image_transport_factory.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/aura/software_output_device_ozone_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/content_tests.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/common/content_switches.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/public/common/content_switches.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/public/test/browser_test_base.cc
|
View
|
1
2
3
4
|
2 chunks |
+19 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/aura/aura.gyp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/aura/bench/bench_main.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/aura/demo/demo_main.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/aura/test/aura_test_helper.cc
|
View
|
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor.h
|
View
|
1
2
3
|
3 chunks |
+0 lines, -71 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+0 lines, -193 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor.gyp
|
View
|
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/compositor/layer_unittest.cc
|
View
|
1
2
3
|
5 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/reflector.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -3 lines |
1 comment
|
Download
|
 |
A |
ui/compositor/test/context_factories_for_test.h
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/compositor/test/context_factories_for_test.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/compositor/test/default_context_factory.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/compositor/test/default_context_factory.cc
|
View
|
|
1 chunk |
+100 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/compositor/test/test_context_factory.h
|
View
|
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/compositor/test/test_context_factory.cc
|
View
|
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|