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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "ui/gfx/geometry/vector2d_conversions.h" 63 #include "ui/gfx/geometry/vector2d_conversions.h"
64 64
65 using testing::_; 65 using testing::_;
66 using testing::AnyNumber; 66 using testing::AnyNumber;
67 using testing::AtLeast; 67 using testing::AtLeast;
68 using testing::Mock; 68 using testing::Mock;
69 69
70 namespace cc { 70 namespace cc {
71 namespace { 71 namespace {
72 72
73 class LayerTreeHostTest : public LayerTreeTest {}; 73 class LayerTreeHostTest : public LayerTreeTest {
74 public:
75 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.
76 return &layer_impl->layer_tree_impl()->property_trees()->scroll_tree;
77 }
78 };
74 79
75 class LayerTreeHostTestHasImplThreadTest : public LayerTreeHostTest { 80 class LayerTreeHostTestHasImplThreadTest : public LayerTreeHostTest {
76 public: 81 public:
77 LayerTreeHostTestHasImplThreadTest() : threaded_(false) {} 82 LayerTreeHostTestHasImplThreadTest() : threaded_(false) {}
78 83
79 void RunTest(CompositorMode mode, bool delegating_renderer) override { 84 void RunTest(CompositorMode mode, bool delegating_renderer) override {
80 threaded_ = mode == CompositorMode::THREADED; 85 threaded_ = mode == CompositorMode::THREADED;
81 LayerTreeHostTest::RunTest(mode, delegating_renderer); 86 LayerTreeHostTest::RunTest(mode, delegating_renderer);
82 } 87 }
83 88
(...skipping 6586 matching lines...) Expand 10 before | Expand all | Expand 10 after
6670 EndTest(); 6675 EndTest();
6671 } 6676 }
6672 6677
6673 void AfterTest() override {} 6678 void AfterTest() override {}
6674 }; 6679 };
6675 6680
6676 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); 6681 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor);
6677 6682
6678 } // namespace 6683 } // namespace
6679 } // namespace cc 6684 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698