PepperGraphics2DHostTest() : renderer_ppapi_host_(NULL, 12345) {}
- virtual ~PepperGraphics2DHostTest() {
+ ~PepperGraphics2DHostTest() override {
ppapi::ProxyAutoLock proxy_lock;
host_.reset();
}
// Check negative scroll deltas
{10, 10, 20, 20, 5, 5, 10, 10, -6, -4, -3, -2, 0.5, true},
{10, 10, 20, 20, 5, 5, 10, 10, -6, -3, -3, -1, 0.5, false}, };
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
+ for (size_t i = 0; i < arraysize(tests); ++i) {
gfx::Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1);
gfx::Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2);
gfx::Rect orig = r1;