Index: ppapi/tests/test_graphics_2d.cc |
=================================================================== |
--- ppapi/tests/test_graphics_2d.cc (revision 157289) |
+++ ppapi/tests/test_graphics_2d.cc (working copy) |
@@ -307,7 +307,7 @@ |
std::string TestGraphics2D::TestDescribe() { |
const int w = 15, h = 17; |
- const bool always_opaque = ::rand() % 2 ? true : false; |
+ const bool always_opaque = (::rand() % 2 == 1); |
pp::Graphics2D dc(instance_, pp::Size(w, h), always_opaque); |
if (dc.is_null()) |
return "Failure creating a boring device"; |
@@ -651,8 +651,8 @@ |
std::string TestGraphics2D::TestDev() { |
// Tests GetScale/SetScale via the Graphics2D_Dev C++ wrapper |
- const int w=20, h=16; |
- const float scale=1.0f/2.0f; |
+ const int w = 20, h = 16; |
+ const float scale = 1.0f/2.0f; |
pp::Graphics2D dc(instance_, pp::Size(w, h), false); |
if (dc.is_null()) |
return "Failure creating a boring device"; |