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

Unified Diff: cc/paint/paint_op_buffer_unittest.cc

Issue 2899483002: cc: Audit and static_assert the types in PaintOpBuffer can be moved.
Patch Set: check-copy better-better-comment Created 3 years, 7 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
« cc/paint/paint_image.h ('K') | « cc/paint/paint_op_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_op_buffer_unittest.cc
diff --git a/cc/paint/paint_op_buffer_unittest.cc b/cc/paint/paint_op_buffer_unittest.cc
index 2afcdeda27c5fd73b831f45ddb9acb0775ea96c4..dbd7d28de4e755b09d6fcfabf0ec069ed18038af 100644
--- a/cc/paint/paint_op_buffer_unittest.cc
+++ b/cc/paint/paint_op_buffer_unittest.cc
@@ -63,8 +63,8 @@ TEST(PaintOpBufferTest, SimpleAppend) {
ASSERT_EQ(iter->GetType(), PaintOpType::DrawColor);
DrawColorOp* op = static_cast<DrawColorOp*>(*iter);
- EXPECT_EQ(op->color, draw_color);
- EXPECT_EQ(op->mode, blend);
+ EXPECT_EQ(static_cast<SkColor>(op->color), draw_color);
+ EXPECT_EQ(static_cast<SkBlendMode>(op->mode), blend);
++iter;
ASSERT_EQ(iter->GetType(), PaintOpType::Restore);
« cc/paint/paint_image.h ('K') | « cc/paint/paint_op_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698