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

Issue 2456093003: Enable more layer_tree_host_unittest for LayerTreeHostRemote. (Closed)

Created:
4 years, 1 month ago by xingliu
Modified:
4 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable more cc unit tests for LayerTreeHostRemote test. We have added test classes for LayerTreeHostRemote for Blimp and would like to reuse cc unit tests to test the following flow: Engine cc ==> Client cc main thread ==> Client cc impl thread. This CL goes through about 50 unit test cases in layer_tree_host_unittest.cc. BUG=653371 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/3c9b4cc4fe631cec765af7dca9ce4c4c2b7e064d Cr-Commit-Position: refs/heads/master@{#429396}

Patch Set 1 #

Total comments: 2

Patch Set 2 : PushPropertiesCountingLayer refactored for remote test. #

Total comments: 2

Patch Set 3 : Added unit test case in LTH remote unittest. #

Total comments: 5

Patch Set 4 : Works on feedback. #

Total comments: 4

Patch Set 5 : Minor polish on refactored test class. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -136 lines) Patch
M cc/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/blimp/compositor_state_deserializer.cc View 1 4 chunks +20 lines, -9 lines 0 comments Download
M cc/blimp/layer_factory.h View 1 2 chunks +8 lines, -4 lines 0 comments Download
M cc/blimp/layer_tree_host_remote.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M cc/blimp/layer_tree_host_remote_unittest.cc View 1 2 3 4 4 chunks +59 lines, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/layer_proto_converter.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/proto/layer.proto View 1 1 chunk +1 line, -0 lines 0 comments Download
A cc/test/push_properties_counting_layer.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A cc/test/push_properties_counting_layer.cc View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
A cc/test/push_properties_counting_layer_impl.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A cc/test/push_properties_counting_layer_impl.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M cc/test/remote_client_layer_factory.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M cc/test/remote_client_layer_factory.cc View 1 3 chunks +19 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 48 chunks +71 lines, -107 lines 0 comments Download

Messages

Total messages: 46 (31 generated)
xingliu
Please help take a look, more unit tests for LTH remote.
4 years, 1 month ago (2016-10-27 18:07:29 UTC) #8
Khushal
https://codereview.chromium.org/2456093003/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/2456093003/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode3317 cc/trees/layer_tree_host_unittest.cc:3317: class PushPropertiesCountingLayer : public Layer { The tests which ...
4 years, 1 month ago (2016-10-27 18:37:52 UTC) #10
ajuma
https://codereview.chromium.org/2456093003/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/2456093003/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode3317 cc/trees/layer_tree_host_unittest.cc:3317: class PushPropertiesCountingLayer : public Layer { On 2016/10/27 18:37:52, ...
4 years, 1 month ago (2016-10-27 19:40:03 UTC) #11
xingliu
Thanks for the review, did some modification on PushPropertiesCountingLayer related tests.
4 years, 1 month ago (2016-10-28 20:05:03 UTC) #14
Khushal
https://codereview.chromium.org/2456093003/diff/20001/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2456093003/diff/20001/cc/blimp/layer_tree_host_remote.cc#newcode492 cc/blimp/layer_tree_host_remote.cc:492: layer_tree_->LayersThatShouldPushProperties()); Do you mind adding a small test for ...
4 years, 1 month ago (2016-10-28 23:11:51 UTC) #21
xingliu
Added a unit test in layer_tree_host_remote_unittest.cc. Please help take a look. https://codereview.chromium.org/2456093003/diff/20001/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): ...
4 years, 1 month ago (2016-10-31 18:48:06 UTC) #24
Khushal
https://codereview.chromium.org/2456093003/diff/40001/cc/blimp/layer_tree_host_remote_unittest.cc File cc/blimp/layer_tree_host_remote_unittest.cc (right): https://codereview.chromium.org/2456093003/diff/40001/cc/blimp/layer_tree_host_remote_unittest.cc#newcode57 cc/blimp/layer_tree_host_remote_unittest.cc:57: compositor_proto_state_ = std::move(compositor_proto_state); This looks perfect. Thanks! :) https://codereview.chromium.org/2456093003/diff/40001/cc/blimp/layer_tree_host_remote_unittest.cc#newcode432 ...
4 years, 1 month ago (2016-10-31 23:43:27 UTC) #27
xingliu
Tweak on the unit tests, thanks for the feedback. https://codereview.chromium.org/2456093003/diff/40001/cc/blimp/layer_tree_host_remote_unittest.cc File cc/blimp/layer_tree_host_remote_unittest.cc (right): https://codereview.chromium.org/2456093003/diff/40001/cc/blimp/layer_tree_host_remote_unittest.cc#newcode432 cc/blimp/layer_tree_host_remote_unittest.cc:432: ...
4 years, 1 month ago (2016-11-01 01:31:13 UTC) #30
Khushal
lgtm. Thanks! https://codereview.chromium.org/2456093003/diff/60001/cc/blimp/layer_tree_host_remote_unittest.cc File cc/blimp/layer_tree_host_remote_unittest.cc (right): https://codereview.chromium.org/2456093003/diff/60001/cc/blimp/layer_tree_host_remote_unittest.cc#newcode56 cc/blimp/layer_tree_host_remote_unittest.cc:56: // Cache the proto here for verification. ...
4 years, 1 month ago (2016-11-01 03:26:50 UTC) #33
ajuma
lgtm too
4 years, 1 month ago (2016-11-01 13:51:55 UTC) #34
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/2456093003/diff/60001/cc/test/push_properties_counting_layer.cc File cc/test/push_properties_counting_layer.cc (right): https://codereview.chromium.org/2456093003/diff/60001/cc/test/push_properties_counting_layer.cc#newcode51 cc/test/push_properties_counting_layer.cc:51: SetIsDrawable(draws_content); This method feels unnecessary, but it looks ...
4 years, 1 month ago (2016-11-02 17:00:04 UTC) #35
xingliu
Some minor polish, start to put it into CQ. https://codereview.chromium.org/2456093003/diff/60001/cc/blimp/layer_tree_host_remote_unittest.cc File cc/blimp/layer_tree_host_remote_unittest.cc (right): https://codereview.chromium.org/2456093003/diff/60001/cc/blimp/layer_tree_host_remote_unittest.cc#newcode56 cc/blimp/layer_tree_host_remote_unittest.cc:56: ...
4 years, 1 month ago (2016-11-02 17:33:53 UTC) #37
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/2456093003/80001
4 years, 1 month ago (2016-11-02 20:45:17 UTC) #43
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-02 20:53:31 UTC) #44
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 20:56:21 UTC) #46
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3c9b4cc4fe631cec765af7dca9ce4c4c2b7e064d
Cr-Commit-Position: refs/heads/master@{#429396}

Powered by Google App Engine
This is Rietveld 408576698