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

Side by Side Diff: cc/CCDrawQuadTest.cpp

Issue 10968047: cc_unittests fails on several platforms with 158148 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « cc/CCCheckerboardDrawQuad.cpp ('k') | cc/CCRenderPassTest.cpp » ('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 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 "CCDrawQuad.h" 7 #include "CCDrawQuad.h"
8 8
9 #include "CCCheckerboardDrawQuad.h" 9 #include "CCCheckerboardDrawQuad.h"
10 #include "CCDebugBorderDrawQuad.h" 10 #include "CCDebugBorderDrawQuad.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 OwnPtr<Type> quad(Type::create(sharedState.get(), quadRect, a, b, c, d, e, f , g, h, i)); \ 154 OwnPtr<Type> quad(Type::create(sharedState.get(), quadRect, a, b, c, d, e, f , g, h, i)); \
155 SETUP_AND_COPY_QUAD(Type, quad); 155 SETUP_AND_COPY_QUAD(Type, quad);
156 156
157 #define CREATE_QUAD_10(Type, a, b, c, d, e, f, g, h, i, j) \ 157 #define CREATE_QUAD_10(Type, a, b, c, d, e, f, g, h, i, j) \
158 QUAD_DATA \ 158 QUAD_DATA \
159 OwnPtr<Type> quad(Type::create(sharedState.get(), quadRect, a, b, c, d, e, f , g, h, i, j)); \ 159 OwnPtr<Type> quad(Type::create(sharedState.get(), quadRect, a, b, c, d, e, f , g, h, i, j)); \
160 SETUP_AND_COPY_QUAD(Type, quad); 160 SETUP_AND_COPY_QUAD(Type, quad);
161 161
162 TEST(CCDrawQuadTest, copyCheckerboardDrawQuad) 162 TEST(CCDrawQuadTest, copyCheckerboardDrawQuad)
163 { 163 {
164 SkColor color = 0xfabb0011;
165 CREATE_SHARED_STATE(); 164 CREATE_SHARED_STATE();
166 CREATE_QUAD_1(CCCheckerboardDrawQuad, color); 165 CREATE_QUAD_0(CCCheckerboardDrawQuad);
167 EXPECT_EQ(color, copyQuad->color());
168 } 166 }
169 167
170 TEST(CCDrawQuadTest, copyDebugBorderDrawQuad) 168 TEST(CCDrawQuadTest, copyDebugBorderDrawQuad)
171 { 169 {
172 SkColor color = 0xfabb0011; 170 SkColor color = 0xfabb0011;
173 int width = 99; 171 int width = 99;
174 CREATE_SHARED_STATE(); 172 CREATE_SHARED_STATE();
175 CREATE_QUAD_2(CCDebugBorderDrawQuad, color, width); 173 CREATE_QUAD_2(CCDebugBorderDrawQuad, color, width);
176 EXPECT_EQ(color, copyQuad->color()); 174 EXPECT_EQ(color, copyQuad->color());
177 EXPECT_EQ(width, copyQuad->width()); 175 EXPECT_EQ(width, copyQuad->width());
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 EXPECT_EQ(uPlane.size, copyQuad->uPlane().size); 303 EXPECT_EQ(uPlane.size, copyQuad->uPlane().size);
306 EXPECT_EQ(uPlane.format, copyQuad->uPlane().format); 304 EXPECT_EQ(uPlane.format, copyQuad->uPlane().format);
307 EXPECT_EQ(uPlane.visibleSize, copyQuad->uPlane().visibleSize); 305 EXPECT_EQ(uPlane.visibleSize, copyQuad->uPlane().visibleSize);
308 EXPECT_EQ(vPlane.resourceId, copyQuad->vPlane().resourceId); 306 EXPECT_EQ(vPlane.resourceId, copyQuad->vPlane().resourceId);
309 EXPECT_EQ(vPlane.size, copyQuad->vPlane().size); 307 EXPECT_EQ(vPlane.size, copyQuad->vPlane().size);
310 EXPECT_EQ(vPlane.format, copyQuad->vPlane().format); 308 EXPECT_EQ(vPlane.format, copyQuad->vPlane().format);
311 EXPECT_EQ(vPlane.visibleSize, copyQuad->vPlane().visibleSize); 309 EXPECT_EQ(vPlane.visibleSize, copyQuad->vPlane().visibleSize);
312 } 310 }
313 311
314 } // namespace 312 } // namespace
OLDNEW
« no previous file with comments | « cc/CCCheckerboardDrawQuad.cpp ('k') | cc/CCRenderPassTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698