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

Side by Side Diff: cc/layer_iterator_unittest.cc

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "config.h" 5 #include "config.h"
6 6
7 #include "CCLayerIterator.h" 7 #include "CCLayerIterator.h"
8 8
9 #include "CCLayerTreeHostCommon.h" 9 #include "CCLayerTreeHostCommon.h"
10 #include "cc/layer.h" 10 #include "cc/layer.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include <public/WebTransformationMatrix.h> 13 #include <public/WebTransformationMatrix.h>
14 14
15 using namespace cc; 15 using namespace cc;
16 using WebKit::WebTransformationMatrix; 16 using WebKit::WebTransformationMatrix;
17 using ::testing::Mock; 17 using ::testing::Mock;
18 using ::testing::_; 18 using ::testing::_;
19 using ::testing::AtLeast; 19 using ::testing::AtLeast;
20 using ::testing::AnyNumber; 20 using ::testing::AnyNumber;
21 21
22 namespace { 22 namespace {
23 23
24 class TestLayerChromium : public LayerChromium { 24 class TestLayer : public Layer {
25 public: 25 public:
26 static scoped_refptr<TestLayerChromium> create() { return make_scoped_refptr (new TestLayerChromium()); } 26 static scoped_refptr<TestLayer> create() { return make_scoped_refptr(new Tes tLayer()); }
27 27
28 int m_countRepresentingTargetSurface; 28 int m_countRepresentingTargetSurface;
29 int m_countRepresentingContributingSurface; 29 int m_countRepresentingContributingSurface;
30 int m_countRepresentingItself; 30 int m_countRepresentingItself;
31 31
32 virtual bool drawsContent() const OVERRIDE { return m_drawsContent; } 32 virtual bool drawsContent() const OVERRIDE { return m_drawsContent; }
33 void setDrawsContent(bool drawsContent) { m_drawsContent = drawsContent; } 33 void setDrawsContent(bool drawsContent) { m_drawsContent = drawsContent; }
34 34
35 private: 35 private:
36 TestLayerChromium() 36 TestLayer()
37 : LayerChromium() 37 : Layer()
38 , m_drawsContent(true) 38 , m_drawsContent(true)
39 { 39 {
40 setBounds(IntSize(100, 100)); 40 setBounds(IntSize(100, 100));
41 setPosition(IntPoint()); 41 setPosition(IntPoint());
42 setAnchorPoint(IntPoint()); 42 setAnchorPoint(IntPoint());
43 } 43 }
44 virtual ~TestLayerChromium() 44 virtual ~TestLayer()
45 { 45 {
46 } 46 }
47 47
48 bool m_drawsContent; 48 bool m_drawsContent;
49 }; 49 };
50 50
51 #define EXPECT_COUNT(layer, target, contrib, itself) \ 51 #define EXPECT_COUNT(layer, target, contrib, itself) \
52 EXPECT_EQ(target, layer->m_countRepresentingTargetSurface); \ 52 EXPECT_EQ(target, layer->m_countRepresentingTargetSurface); \
53 EXPECT_EQ(contrib, layer->m_countRepresentingContributingSurface); \ 53 EXPECT_EQ(contrib, layer->m_countRepresentingContributingSurface); \
54 EXPECT_EQ(itself, layer->m_countRepresentingItself); 54 EXPECT_EQ(itself, layer->m_countRepresentingItself);
55 55
56 typedef CCLayerIterator<LayerChromium, std::vector<scoped_refptr<LayerChromium> >, RenderSurfaceChromium, CCLayerIteratorActions::FrontToBack> FrontToBack; 56 typedef LayerIterator<Layer, std::vector<scoped_refptr<Layer> >, RenderSurface, LayerIteratorActions::FrontToBack> FrontToBack;
57 typedef CCLayerIterator<LayerChromium, std::vector<scoped_refptr<LayerChromium> >, RenderSurfaceChromium, CCLayerIteratorActions::BackToFront> BackToFront; 57 typedef LayerIterator<Layer, std::vector<scoped_refptr<Layer> >, RenderSurface, LayerIteratorActions::BackToFront> BackToFront;
58 58
59 void resetCounts(std::vector<scoped_refptr<LayerChromium> >& renderSurfaceLayerL ist) 59 void resetCounts(std::vector<scoped_refptr<Layer> >& renderSurfaceLayerList)
60 { 60 {
61 for (unsigned surfaceIndex = 0; surfaceIndex < renderSurfaceLayerList.size() ; ++surfaceIndex) { 61 for (unsigned surfaceIndex = 0; surfaceIndex < renderSurfaceLayerList.size() ; ++surfaceIndex) {
62 TestLayerChromium* renderSurfaceLayer = static_cast<TestLayerChromium*>( renderSurfaceLayerList[surfaceIndex].get()); 62 TestLayer* renderSurfaceLayer = static_cast<TestLayer*>(renderSurfaceLay erList[surfaceIndex].get());
63 RenderSurfaceChromium* renderSurface = renderSurfaceLayer->renderSurface (); 63 RenderSurface* renderSurface = renderSurfaceLayer->renderSurface();
64 64
65 renderSurfaceLayer->m_countRepresentingTargetSurface = -1; 65 renderSurfaceLayer->m_countRepresentingTargetSurface = -1;
66 renderSurfaceLayer->m_countRepresentingContributingSurface = -1; 66 renderSurfaceLayer->m_countRepresentingContributingSurface = -1;
67 renderSurfaceLayer->m_countRepresentingItself = -1; 67 renderSurfaceLayer->m_countRepresentingItself = -1;
68 68
69 for (unsigned layerIndex = 0; layerIndex < renderSurface->layerList().si ze(); ++layerIndex) { 69 for (unsigned layerIndex = 0; layerIndex < renderSurface->layerList().si ze(); ++layerIndex) {
70 TestLayerChromium* layer = static_cast<TestLayerChromium*>(renderSur face->layerList()[layerIndex].get()); 70 TestLayer* layer = static_cast<TestLayer*>(renderSurface->layerList( )[layerIndex].get());
71 71
72 layer->m_countRepresentingTargetSurface = -1; 72 layer->m_countRepresentingTargetSurface = -1;
73 layer->m_countRepresentingContributingSurface = -1; 73 layer->m_countRepresentingContributingSurface = -1;
74 layer->m_countRepresentingItself = -1; 74 layer->m_countRepresentingItself = -1;
75 } 75 }
76 } 76 }
77 } 77 }
78 78
79 void iterateFrontToBack(std::vector<scoped_refptr<LayerChromium> >* renderSurfac eLayerList) 79 void iterateFrontToBack(std::vector<scoped_refptr<Layer> >* renderSurfaceLayerLi st)
80 { 80 {
81 resetCounts(*renderSurfaceLayerList); 81 resetCounts(*renderSurfaceLayerList);
82 int count = 0; 82 int count = 0;
83 for (FrontToBack it = FrontToBack::begin(renderSurfaceLayerList); it != Fron tToBack::end(renderSurfaceLayerList); ++it, ++count) { 83 for (FrontToBack it = FrontToBack::begin(renderSurfaceLayerList); it != Fron tToBack::end(renderSurfaceLayerList); ++it, ++count) {
84 TestLayerChromium* layer = static_cast<TestLayerChromium*>(*it); 84 TestLayer* layer = static_cast<TestLayer*>(*it);
85 if (it.representsTargetRenderSurface()) 85 if (it.representsTargetRenderSurface())
86 layer->m_countRepresentingTargetSurface = count; 86 layer->m_countRepresentingTargetSurface = count;
87 if (it.representsContributingRenderSurface()) 87 if (it.representsContributingRenderSurface())
88 layer->m_countRepresentingContributingSurface = count; 88 layer->m_countRepresentingContributingSurface = count;
89 if (it.representsItself()) 89 if (it.representsItself())
90 layer->m_countRepresentingItself = count; 90 layer->m_countRepresentingItself = count;
91 } 91 }
92 } 92 }
93 93
94 void iterateBackToFront(std::vector<scoped_refptr<LayerChromium> >* renderSurfac eLayerList) 94 void iterateBackToFront(std::vector<scoped_refptr<Layer> >* renderSurfaceLayerLi st)
95 { 95 {
96 resetCounts(*renderSurfaceLayerList); 96 resetCounts(*renderSurfaceLayerList);
97 int count = 0; 97 int count = 0;
98 for (BackToFront it = BackToFront::begin(renderSurfaceLayerList); it != Back ToFront::end(renderSurfaceLayerList); ++it, ++count) { 98 for (BackToFront it = BackToFront::begin(renderSurfaceLayerList); it != Back ToFront::end(renderSurfaceLayerList); ++it, ++count) {
99 TestLayerChromium* layer = static_cast<TestLayerChromium*>(*it); 99 TestLayer* layer = static_cast<TestLayer*>(*it);
100 if (it.representsTargetRenderSurface()) 100 if (it.representsTargetRenderSurface())
101 layer->m_countRepresentingTargetSurface = count; 101 layer->m_countRepresentingTargetSurface = count;
102 if (it.representsContributingRenderSurface()) 102 if (it.representsContributingRenderSurface())
103 layer->m_countRepresentingContributingSurface = count; 103 layer->m_countRepresentingContributingSurface = count;
104 if (it.representsItself()) 104 if (it.representsItself())
105 layer->m_countRepresentingItself = count; 105 layer->m_countRepresentingItself = count;
106 } 106 }
107 } 107 }
108 108
109 TEST(CCLayerIteratorTest, emptyTree) 109 TEST(LayerIteratorTest, emptyTree)
110 { 110 {
111 std::vector<scoped_refptr<LayerChromium> > renderSurfaceLayerList; 111 std::vector<scoped_refptr<Layer> > renderSurfaceLayerList;
112 112
113 iterateBackToFront(&renderSurfaceLayerList); 113 iterateBackToFront(&renderSurfaceLayerList);
114 iterateFrontToBack(&renderSurfaceLayerList); 114 iterateFrontToBack(&renderSurfaceLayerList);
115 } 115 }
116 116
117 TEST(CCLayerIteratorTest, simpleTree) 117 TEST(LayerIteratorTest, simpleTree)
118 { 118 {
119 scoped_refptr<TestLayerChromium> rootLayer = TestLayerChromium::create(); 119 scoped_refptr<TestLayer> rootLayer = TestLayer::create();
120 scoped_refptr<TestLayerChromium> first = TestLayerChromium::create(); 120 scoped_refptr<TestLayer> first = TestLayer::create();
121 scoped_refptr<TestLayerChromium> second = TestLayerChromium::create(); 121 scoped_refptr<TestLayer> second = TestLayer::create();
122 scoped_refptr<TestLayerChromium> third = TestLayerChromium::create(); 122 scoped_refptr<TestLayer> third = TestLayer::create();
123 scoped_refptr<TestLayerChromium> fourth = TestLayerChromium::create(); 123 scoped_refptr<TestLayer> fourth = TestLayer::create();
124 124
125 rootLayer->createRenderSurface(); 125 rootLayer->createRenderSurface();
126 126
127 rootLayer->addChild(first); 127 rootLayer->addChild(first);
128 rootLayer->addChild(second); 128 rootLayer->addChild(second);
129 rootLayer->addChild(third); 129 rootLayer->addChild(third);
130 rootLayer->addChild(fourth); 130 rootLayer->addChild(fourth);
131 131
132 std::vector<scoped_refptr<LayerChromium> > renderSurfaceLayerList; 132 std::vector<scoped_refptr<Layer> > renderSurfaceLayerList;
133 CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->b ounds(), 1, 256, renderSurfaceLayerList); 133 LayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->bou nds(), 1, 256, renderSurfaceLayerList);
134 134
135 iterateBackToFront(&renderSurfaceLayerList); 135 iterateBackToFront(&renderSurfaceLayerList);
136 EXPECT_COUNT(rootLayer, 0, -1, 1); 136 EXPECT_COUNT(rootLayer, 0, -1, 1);
137 EXPECT_COUNT(first, -1, -1, 2); 137 EXPECT_COUNT(first, -1, -1, 2);
138 EXPECT_COUNT(second, -1, -1, 3); 138 EXPECT_COUNT(second, -1, -1, 3);
139 EXPECT_COUNT(third, -1, -1, 4); 139 EXPECT_COUNT(third, -1, -1, 4);
140 EXPECT_COUNT(fourth, -1, -1, 5); 140 EXPECT_COUNT(fourth, -1, -1, 5);
141 141
142 iterateFrontToBack(&renderSurfaceLayerList); 142 iterateFrontToBack(&renderSurfaceLayerList);
143 EXPECT_COUNT(rootLayer, 5, -1, 4); 143 EXPECT_COUNT(rootLayer, 5, -1, 4);
144 EXPECT_COUNT(first, -1, -1, 3); 144 EXPECT_COUNT(first, -1, -1, 3);
145 EXPECT_COUNT(second, -1, -1, 2); 145 EXPECT_COUNT(second, -1, -1, 2);
146 EXPECT_COUNT(third, -1, -1, 1); 146 EXPECT_COUNT(third, -1, -1, 1);
147 EXPECT_COUNT(fourth, -1, -1, 0); 147 EXPECT_COUNT(fourth, -1, -1, 0);
148 148
149 } 149 }
150 150
151 TEST(CCLayerIteratorTest, complexTree) 151 TEST(LayerIteratorTest, complexTree)
152 { 152 {
153 scoped_refptr<TestLayerChromium> rootLayer = TestLayerChromium::create(); 153 scoped_refptr<TestLayer> rootLayer = TestLayer::create();
154 scoped_refptr<TestLayerChromium> root1 = TestLayerChromium::create(); 154 scoped_refptr<TestLayer> root1 = TestLayer::create();
155 scoped_refptr<TestLayerChromium> root2 = TestLayerChromium::create(); 155 scoped_refptr<TestLayer> root2 = TestLayer::create();
156 scoped_refptr<TestLayerChromium> root3 = TestLayerChromium::create(); 156 scoped_refptr<TestLayer> root3 = TestLayer::create();
157 scoped_refptr<TestLayerChromium> root21 = TestLayerChromium::create(); 157 scoped_refptr<TestLayer> root21 = TestLayer::create();
158 scoped_refptr<TestLayerChromium> root22 = TestLayerChromium::create(); 158 scoped_refptr<TestLayer> root22 = TestLayer::create();
159 scoped_refptr<TestLayerChromium> root23 = TestLayerChromium::create(); 159 scoped_refptr<TestLayer> root23 = TestLayer::create();
160 scoped_refptr<TestLayerChromium> root221 = TestLayerChromium::create(); 160 scoped_refptr<TestLayer> root221 = TestLayer::create();
161 scoped_refptr<TestLayerChromium> root231 = TestLayerChromium::create(); 161 scoped_refptr<TestLayer> root231 = TestLayer::create();
162 162
163 rootLayer->createRenderSurface(); 163 rootLayer->createRenderSurface();
164 164
165 rootLayer->addChild(root1); 165 rootLayer->addChild(root1);
166 rootLayer->addChild(root2); 166 rootLayer->addChild(root2);
167 rootLayer->addChild(root3); 167 rootLayer->addChild(root3);
168 root2->addChild(root21); 168 root2->addChild(root21);
169 root2->addChild(root22); 169 root2->addChild(root22);
170 root2->addChild(root23); 170 root2->addChild(root23);
171 root22->addChild(root221); 171 root22->addChild(root221);
172 root23->addChild(root231); 172 root23->addChild(root231);
173 173
174 std::vector<scoped_refptr<LayerChromium> > renderSurfaceLayerList; 174 std::vector<scoped_refptr<Layer> > renderSurfaceLayerList;
175 CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->b ounds(), 1, 256, renderSurfaceLayerList); 175 LayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->bou nds(), 1, 256, renderSurfaceLayerList);
176 176
177 iterateBackToFront(&renderSurfaceLayerList); 177 iterateBackToFront(&renderSurfaceLayerList);
178 EXPECT_COUNT(rootLayer, 0, -1, 1); 178 EXPECT_COUNT(rootLayer, 0, -1, 1);
179 EXPECT_COUNT(root1, -1, -1, 2); 179 EXPECT_COUNT(root1, -1, -1, 2);
180 EXPECT_COUNT(root2, -1, -1, 3); 180 EXPECT_COUNT(root2, -1, -1, 3);
181 EXPECT_COUNT(root21, -1, -1, 4); 181 EXPECT_COUNT(root21, -1, -1, 4);
182 EXPECT_COUNT(root22, -1, -1, 5); 182 EXPECT_COUNT(root22, -1, -1, 5);
183 EXPECT_COUNT(root221, -1, -1, 6); 183 EXPECT_COUNT(root221, -1, -1, 6);
184 EXPECT_COUNT(root23, -1, -1, 7); 184 EXPECT_COUNT(root23, -1, -1, 7);
185 EXPECT_COUNT(root231, -1, -1, 8); 185 EXPECT_COUNT(root231, -1, -1, 8);
186 EXPECT_COUNT(root3, -1, -1, 9); 186 EXPECT_COUNT(root3, -1, -1, 9);
187 187
188 iterateFrontToBack(&renderSurfaceLayerList); 188 iterateFrontToBack(&renderSurfaceLayerList);
189 EXPECT_COUNT(rootLayer, 9, -1, 8); 189 EXPECT_COUNT(rootLayer, 9, -1, 8);
190 EXPECT_COUNT(root1, -1, -1, 7); 190 EXPECT_COUNT(root1, -1, -1, 7);
191 EXPECT_COUNT(root2, -1, -1, 6); 191 EXPECT_COUNT(root2, -1, -1, 6);
192 EXPECT_COUNT(root21, -1, -1, 5); 192 EXPECT_COUNT(root21, -1, -1, 5);
193 EXPECT_COUNT(root22, -1, -1, 4); 193 EXPECT_COUNT(root22, -1, -1, 4);
194 EXPECT_COUNT(root221, -1, -1, 3); 194 EXPECT_COUNT(root221, -1, -1, 3);
195 EXPECT_COUNT(root23, -1, -1, 2); 195 EXPECT_COUNT(root23, -1, -1, 2);
196 EXPECT_COUNT(root231, -1, -1, 1); 196 EXPECT_COUNT(root231, -1, -1, 1);
197 EXPECT_COUNT(root3, -1, -1, 0); 197 EXPECT_COUNT(root3, -1, -1, 0);
198 198
199 } 199 }
200 200
201 TEST(CCLayerIteratorTest, complexTreeMultiSurface) 201 TEST(LayerIteratorTest, complexTreeMultiSurface)
202 { 202 {
203 scoped_refptr<TestLayerChromium> rootLayer = TestLayerChromium::create(); 203 scoped_refptr<TestLayer> rootLayer = TestLayer::create();
204 scoped_refptr<TestLayerChromium> root1 = TestLayerChromium::create(); 204 scoped_refptr<TestLayer> root1 = TestLayer::create();
205 scoped_refptr<TestLayerChromium> root2 = TestLayerChromium::create(); 205 scoped_refptr<TestLayer> root2 = TestLayer::create();
206 scoped_refptr<TestLayerChromium> root3 = TestLayerChromium::create(); 206 scoped_refptr<TestLayer> root3 = TestLayer::create();
207 scoped_refptr<TestLayerChromium> root21 = TestLayerChromium::create(); 207 scoped_refptr<TestLayer> root21 = TestLayer::create();
208 scoped_refptr<TestLayerChromium> root22 = TestLayerChromium::create(); 208 scoped_refptr<TestLayer> root22 = TestLayer::create();
209 scoped_refptr<TestLayerChromium> root23 = TestLayerChromium::create(); 209 scoped_refptr<TestLayer> root23 = TestLayer::create();
210 scoped_refptr<TestLayerChromium> root221 = TestLayerChromium::create(); 210 scoped_refptr<TestLayer> root221 = TestLayer::create();
211 scoped_refptr<TestLayerChromium> root231 = TestLayerChromium::create(); 211 scoped_refptr<TestLayer> root231 = TestLayer::create();
212 212
213 rootLayer->createRenderSurface(); 213 rootLayer->createRenderSurface();
214 rootLayer->renderSurface()->setContentRect(IntRect(IntPoint(), rootLayer->bo unds())); 214 rootLayer->renderSurface()->setContentRect(IntRect(IntPoint(), rootLayer->bo unds()));
215 215
216 rootLayer->addChild(root1); 216 rootLayer->addChild(root1);
217 rootLayer->addChild(root2); 217 rootLayer->addChild(root2);
218 rootLayer->addChild(root3); 218 rootLayer->addChild(root3);
219 root2->setDrawsContent(false); 219 root2->setDrawsContent(false);
220 root2->setOpacity(0.5); // Force the layer to own a new surface. 220 root2->setOpacity(0.5); // Force the layer to own a new surface.
221 root2->addChild(root21); 221 root2->addChild(root21);
222 root2->addChild(root22); 222 root2->addChild(root22);
223 root2->addChild(root23); 223 root2->addChild(root23);
224 root22->setOpacity(0.5); 224 root22->setOpacity(0.5);
225 root22->addChild(root221); 225 root22->addChild(root221);
226 root23->setOpacity(0.5); 226 root23->setOpacity(0.5);
227 root23->addChild(root231); 227 root23->addChild(root231);
228 228
229 std::vector<scoped_refptr<LayerChromium> > renderSurfaceLayerList; 229 std::vector<scoped_refptr<Layer> > renderSurfaceLayerList;
230 CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->b ounds(), 1, 256, renderSurfaceLayerList); 230 LayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->bou nds(), 1, 256, renderSurfaceLayerList);
231 231
232 iterateBackToFront(&renderSurfaceLayerList); 232 iterateBackToFront(&renderSurfaceLayerList);
233 EXPECT_COUNT(rootLayer, 0, -1, 1); 233 EXPECT_COUNT(rootLayer, 0, -1, 1);
234 EXPECT_COUNT(root1, -1, -1, 2); 234 EXPECT_COUNT(root1, -1, -1, 2);
235 EXPECT_COUNT(root2, 4, 3, -1); 235 EXPECT_COUNT(root2, 4, 3, -1);
236 EXPECT_COUNT(root21, -1, -1, 5); 236 EXPECT_COUNT(root21, -1, -1, 5);
237 EXPECT_COUNT(root22, 7, 6, 8); 237 EXPECT_COUNT(root22, 7, 6, 8);
238 EXPECT_COUNT(root221, -1, -1, 9); 238 EXPECT_COUNT(root221, -1, -1, 9);
239 EXPECT_COUNT(root23, 11, 10, 12); 239 EXPECT_COUNT(root23, 11, 10, 12);
240 EXPECT_COUNT(root231, -1, -1, 13); 240 EXPECT_COUNT(root231, -1, -1, 13);
241 EXPECT_COUNT(root3, -1, -1, 14); 241 EXPECT_COUNT(root3, -1, -1, 14);
242 242
243 iterateFrontToBack(&renderSurfaceLayerList); 243 iterateFrontToBack(&renderSurfaceLayerList);
244 EXPECT_COUNT(rootLayer, 14, -1, 13); 244 EXPECT_COUNT(rootLayer, 14, -1, 13);
245 EXPECT_COUNT(root1, -1, -1, 12); 245 EXPECT_COUNT(root1, -1, -1, 12);
246 EXPECT_COUNT(root2, 10, 11, -1); 246 EXPECT_COUNT(root2, 10, 11, -1);
247 EXPECT_COUNT(root21, -1, -1, 9); 247 EXPECT_COUNT(root21, -1, -1, 9);
248 EXPECT_COUNT(root22, 7, 8, 6); 248 EXPECT_COUNT(root22, 7, 8, 6);
249 EXPECT_COUNT(root221, -1, -1, 5); 249 EXPECT_COUNT(root221, -1, -1, 5);
250 EXPECT_COUNT(root23, 3, 4, 2); 250 EXPECT_COUNT(root23, 3, 4, 2);
251 EXPECT_COUNT(root231, -1, -1, 1); 251 EXPECT_COUNT(root231, -1, -1, 1);
252 EXPECT_COUNT(root3, -1, -1, 0); 252 EXPECT_COUNT(root3, -1, -1, 0);
253 } 253 }
254 254
255 } // namespace 255 } // namespace
OLDNEW
« cc/active_animation.h ('K') | « cc/layer_iterator.cc ('k') | cc/layer_painter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698