|
cc: Clean up LayerTreeTest and TestHooks in cc_unittests.
While working on new SwapBuffers test hooks for OutputSurface vs
CompositorFrameSink, it became apparent that these two APIs have grown
much bigger than they need to be. So I spent some time cleaning them
up.
1) All TestHooks are steps on LayerTreeHost/LayerTreeHostImpl. No steps
on the proxy exist anymore. I changed tests to use LTHI hooks instead
where needed, and had to add one method on LTHI for TestHooks to
override.
2) All TestHooks on the compositor thread are (mostly) named __OnThread()
and they all take a LayerTreeHostImpl* as a parameter.
3) I deleted the Proxy{Main,Impl}ForTests and friends classes. I had to
rewrite the activation-blocked tests to not need to get access to the
ProxyImpl* directly, and the rest mostly fell out of point 1 above.
4) I deleted remote_channel_unittest.cc and threaded_channel_unittest.cc
as these were not testing logic, just checking that posttask works more
or less. I believe the correct way to test the proxies is to test that
the LayerTreeHost API behaves as you'd expect, which is what our other
tests do.
R=enne
BUG= 606056
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel
Committed: https://crrev.com/94b7e4fcc1fb51a468d3df292c622905c67405c5
Cr-Commit-Position: refs/heads/master@{#406450}
Total comments: 1
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+470 lines, -1886 lines) |
Patch |
 |
M |
cc/BUILD.gn
|
View
|
1
2
|
3 chunks |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cc/cc_tests.gyp
|
View
|
1
2
|
3 chunks |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_test.h
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+4 lines, -18 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_test.cc
|
View
|
1
2
3
4
5
6
7
|
12 chunks |
+58 lines, -154 lines |
0 comments
|
Download
|
 |
D |
cc/test/proxy_impl_for_test.h
|
View
|
|
1 chunk |
+0 lines, -74 lines |
0 comments
|
Download
|
 |
D |
cc/test/proxy_impl_for_test.cc
|
View
|
|
1 chunk |
+0 lines, -152 lines |
0 comments
|
Download
|
 |
D |
cc/test/proxy_main_for_test.h
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
 |
D |
cc/test/proxy_main_for_test.cc
|
View
|
|
1 chunk |
+0 lines, -108 lines |
0 comments
|
Download
|
 |
D |
cc/test/remote_channel_impl_for_test.h
|
View
|
|
1 chunk |
+0 lines, -43 lines |
0 comments
|
Download
|
 |
D |
cc/test/remote_channel_impl_for_test.cc
|
View
|
|
1 chunk |
+0 lines, -44 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_hooks.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+4 lines, -48 lines |
0 comments
|
Download
|
 |
M |
cc/test/threaded_channel_for_test.h
|
View
|
1
2
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
 |
M |
cc/test/threaded_channel_for_test.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
 |
M |
cc/trees/channel_main.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
17 chunks |
+84 lines, -118 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_animation.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_context.cc
|
View
|
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_proxy.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+212 lines, -204 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_scroll.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_serialization.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy_impl.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+21 lines, -36 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy_impl.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+12 lines, -25 lines |
0 comments
|
Download
|
 |
D |
cc/trees/proxy_impl_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -60 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy_main.h
|
View
|
|
1 chunk |
+11 lines, -14 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy_main.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/trees/remote_channel_impl.h
|
View
|
|
1 chunk |
+1 line, -8 lines |
0 comments
|
Download
|
 |
M |
cc/trees/remote_channel_impl.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+6 lines, -13 lines |
0 comments
|
Download
|
 |
M |
cc/trees/remote_channel_main.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/trees/remote_channel_main.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
D |
cc/trees/remote_channel_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -257 lines |
0 comments
|
Download
|
 |
M |
cc/trees/single_thread_proxy.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/task_runner_provider.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/threaded_channel.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/trees/threaded_channel.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
 |
D |
cc/trees/threaded_channel_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -297 lines |
0 comments
|
Download
|
Total messages: 53 (38 generated)
|