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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 1766053002: Clean LayerImpl's scroll offset callers in unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index a4fff259e61692dd4a1c3f7868aeff1509f0db78..95b13dea9772b487f9ff8643cad60087ca9e0b58 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -70,7 +70,12 @@ using testing::Mock;
namespace cc {
namespace {
-class LayerTreeHostTest : public LayerTreeTest {};
+class LayerTreeHostTest : public LayerTreeTest {
+ public:
+ ScrollTree* scroll_tree(LayerImpl* layer_impl) {
ajuma 2016/03/07 19:10:19 Is this called anywhere?
sunxd 2016/03/09 01:51:20 Done.
+ return &layer_impl->layer_tree_impl()->property_trees()->scroll_tree;
+ }
+};
class LayerTreeHostTestHasImplThreadTest : public LayerTreeHostTest {
public:

Powered by Google App Engine
This is Rietveld 408576698