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

Side by Side Diff: cc/test/layer_tree_host_common_test.h

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor Created 4 years, 5 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
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_
6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ 6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
11 11
12 #include "cc/layers/layer_collections.h" 12 #include "cc/layers/layer_collections.h"
13 #include "cc/test/fake_layer_tree_host_client.h"
14 #include "cc/test/layer_test_common.h" 13 #include "cc/test/layer_test_common.h"
15 #include "cc/test/test_task_graph_runner.h" 14 #include "cc/test/test_task_graph_runner.h"
16 #include "cc/trees/layer_tree_settings.h" 15 #include "cc/trees/layer_tree_settings.h"
17 #include "cc/trees/property_tree.h" 16 #include "cc/trees/property_tree.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 18
20 namespace gfx { 19 namespace gfx {
21 class PointF; 20 class PointF;
22 class Point3F; 21 class Point3F;
23 class Size; 22 class Size;
24 class Transform; 23 class Transform;
25 } 24 }
26 25
27 namespace cc { 26 namespace cc {
28 27
29 class FakeLayerTreeHost;
30 class Layer; 28 class Layer;
31 class LayerImpl; 29 class LayerImpl;
32 30
33 class LayerTreeHostCommonTestBase : public LayerTestCommon::LayerImplTest { 31 class LayerTreeHostCommonTestBase : public LayerTestCommon::LayerImplTest {
34 protected: 32 protected:
35 explicit LayerTreeHostCommonTestBase(const LayerTreeSettings& settings); 33 explicit LayerTreeHostCommonTestBase(const LayerTreeSettings& settings);
36 virtual ~LayerTreeHostCommonTestBase(); 34 virtual ~LayerTreeHostCommonTestBase();
37 35
38 template <typename LayerType> 36 template <typename LayerType>
39 void SetLayerPropertiesForTestingInternal( 37 void SetLayerPropertiesForTestingInternal(
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ->property_trees() 154 ->property_trees()
157 ->GetAnimationScales(layer_impl->transform_tree_index(), 155 ->GetAnimationScales(layer_impl->transform_tree_index(),
158 layer_impl->layer_tree_impl()) 156 layer_impl->layer_tree_impl())
159 .starting_animation_scale; 157 .starting_animation_scale;
160 } 158 }
161 }; 159 };
162 160
163 } // namespace cc 161 } // namespace cc
164 162
165 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ 163 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698