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

Unified Diff: ui/views/style/mac/dialog_button_border_mac_unittest.cc

Issue 1340683002: Remove base's implicit_cast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implicitcast: numericstest Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/page_transition_types.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/mac/dialog_button_border_mac_unittest.cc
diff --git a/ui/views/style/mac/dialog_button_border_mac_unittest.cc b/ui/views/style/mac/dialog_button_border_mac_unittest.cc
index 43747887a2c19b174786a7d2c2b638020ffd326a..3b8b30e883b7f4f21f588fa983de90de9495aab3 100644
--- a/ui/views/style/mac/dialog_button_border_mac_unittest.cc
+++ b/ui/views/style/mac/dialog_button_border_mac_unittest.cc
@@ -63,7 +63,7 @@ SkColor TestPaint(View* view) {
bitmap.allocN32Pixels(1, 1);
EXPECT_TRUE(sk_canvas->readPixels(&bitmap, center.x(), center.y()));
initial_pixel = bitmap.getColor(0, 0);
- EXPECT_EQ(implicit_cast<SkColor>(SK_ColorTRANSPARENT), initial_pixel);
+ EXPECT_EQ(static_cast<SkColor>(SK_ColorTRANSPARENT), initial_pixel);
view->Paint(ui::CanvasPainter(&canvas, 1.f).context());
@@ -83,7 +83,7 @@ void TestPaintAllStates(CustomButton* button, bool verify) {
button->SetState(state);
SkColor color = TestPaint(button);
if (verify)
- EXPECT_NE(implicit_cast<SkColor>(SK_ColorTRANSPARENT), color);
+ EXPECT_NE(static_cast<SkColor>(SK_ColorTRANSPARENT), color);
}
}
« no previous file with comments | « ui/base/page_transition_types.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698